How make admins Vehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How make admins Vehicle (
/showthread.php?tid=82096)
How make admins Vehicle -
Joe2009 - 16.06.2009
How I Can Make admin vehicle
Re: How make admins Vehicle -
Moustafa - 16.06.2009
gTeam ?
Re: How make admins Vehicle -
Joe2009 - 16.06.2009
what gTeam you mean? That#define TEAM_RAPIST 16
my admin level is 1337
Re: How make admins Vehicle -
Abernethy - 16.06.2009
Rapist?
LolOlOlOloooLloOlOl.
Re: How make admins Vehicle -
BMUK - 16.06.2009
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