Admin car
#4

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;
}
Reply


Messages In This Thread
Admin car - by viosteaua98 - 19.10.2011, 14:49
Re: Admin car - by aRoach - 19.10.2011, 14:52
Re: Admin car - by viosteaua98 - 19.10.2011, 14:53
Re: Admin car - by AeroBlast - 19.10.2011, 14:53
Re: Admin car - by Pharrel - 19.10.2011, 14:54
Re: Admin car - by nilanjay - 19.10.2011, 14:55
Re: Admin car - by aRoach - 19.10.2011, 14:55
Re: Admin car - by viosteaua98 - 19.10.2011, 16:15
Re: Admin car - by viosteaua98 - 19.10.2011, 16:22
Re: Admin car - by grand.Theft.Otto - 19.10.2011, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)