Need one function - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need one function (
/showthread.php?tid=292071)
Need one function -
Artie_Scorpion - 22.10.2011
I need when i enter with any skin into car like: infernus to be ejected.
But i need to enter this car with only one skin like id:28
Re: Need one function -
|_ⒾⓇⓄN_ⒹⓄG_| - 22.10.2011
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == infernus_id)
{
if(GetPlayerSkin(playerid) != 28)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF0000FF, "MESSAGE HERE!");
}
}
return 1;
}