23.07.2010, 00:04
Ok, so I am trying to make it where noone can enter police vehicles, and i mean noone. so, i made this:
but it doesnt remove the player from the police car, nor the rancher! can anyone help?
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == 2)
{
if(GetVehicleModel(596))
{
RemovePlayerFromVehicle(playerid);
}
if(GetVehicleModel(599))
{
RemovePlayerFromVehicle(playerid);
}
return 1;
}
return 1;
}