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