How make admins Vehicle
#5

pawn Код:
if(newstate == PLAYER_STATE_DRIVER) // Means player has got into the drivers seat
{
  if(GetPlayerVehicleID(playerid) == *PUT ID HERE*) // Put the ID (not model) of your admin car here
  {
    if(AdminLevel[playerid] != 1337) //This means if the players admin level is NOT 1337. ie: not admin
    {
      RemovePlayerFromVehicle(playerid); // 0_0
      SendClientMessage(playerid,COLOR_LUL,"Admins Only!"); :D
    }
  }
}
Put that in the OnPlayerStateChange callback
Reply


Messages In This Thread
How make admins Vehicle - by Joe2009 - 16.06.2009, 04:19
Re: How make admins Vehicle - by Moustafa - 16.06.2009, 04:25
Re: How make admins Vehicle - by Joe2009 - 16.06.2009, 04:33
Re: How make admins Vehicle - by Abernethy - 16.06.2009, 05:24
Re: How make admins Vehicle - by BMUK - 16.06.2009, 06:37

Forum Jump:


Users browsing this thread: 1 Guest(s)