03.02.2014, 20:34
So yesterday i asked about it and everything worked today i noticed with my friends that it removes me from all vehicles so i changed it to OnPlayerUpdate cause i saw some people using this method for rp servers and i tryed it to
but it dosent remove me from vehicle at all
but it dosent remove me from vehicle at all
pawn Код:
public OnPlayerUpdate(playerid)
{
new playerState = GetPlayerState(playerid);
if(IsPlayerInVehicle(playerid, 432) && playerState == PLAYER_STATE_DRIVER)
{
if(Engineer[playerid] != 1)
return RemovePlayerFromVehicle(playerid);
}
if(IsPlayerInVehicle(playerid, 520 || 425) && playerState == PLAYER_STATE_DRIVER)
{
if(Pilot[playerid] != 1)
return RemovePlayerFromVehicle(playerid);
}
return 1;
}