RemovePlayerFromVehicle not working
#1

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)