Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

PlayerState

$
0
0
Heeeeey Guys,
I recently got this problem with playerstate not working On entering Checkpoints.

PHP Code:

public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
    if(
checkpointid == Mall)
    {
        if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT

Now entering the building is fine,but when i enter a car (Change State) and try to enter that checkpoint am now falling from the sky,basicially i just want it to do if your onfoot set your pos somewhere if not you stay there,u cannot enter
So what is the Problem,if i "SCM" it works so i dont get it.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>