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

[Query] OnPlayerStateChange doubt

$
0
0
I made a similar code a long time ago but I lost it, I'm trying to repeat it but it does not work out

When you get into the 425 vehicle, if you are a pilot, you must take it out of the vehicle, but nothing happens with this function that I did, thanks in advance for the help

Code:

if(GetVehicleModel(vehicleid) == 425,playerState == PLAYER_STATE_DRIVER)
{
if(gPilot[playerid] == IS_PILOT) return GameTextForPlayer(playerid, "~r~
You are not a pilot",3000,4),RemovePlayerFromVehicle(playerid);
}
return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



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