05.02.2010, 19:00
Try this
UNTESTED
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(newstate == 2 || newstate == 3)
{
if(vehicleid == 476 || vehicleid == 520)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF9900AA, "This vehicle is not allowed!");
}
}
return 1;
}