18.01.2015, 22:30
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new model = GetVehicleModel(GetPlayerVehicleID(playerid));
if((model == 425) || (model == 432))
{
if(GetPlayerSkin(playerid) != 287))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "This vehicle is for army only!");
}
}
}
return 1;
}