19.10.2011, 14:53
pawn Код:
OnPlayerStateChange(playerid,oldstate,newstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == 579) //Checking if the player is the driver of a Huntley
{
if(!IsPlayerAdmin(playerid)) //Checking if the player isn't an Admin ((Change it with your own variable))
{
RemovePlayerFromVehicle(playerid); //Removing the player from the vehicle
SendClientMessage(playerid,0xFF0000FF,"Admins only!");
}
}
return 1;
}

