SA-MP Forums Archive
Admins veichles - 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: Admins veichles (/showthread.php?tid=102651)



Admins veichles - Angelo94 - 16.10.2009

How to allow only admins to get in veichles?


Re: Admins veichles - MenaceX^ - 16.10.2009

Could you write a better explaination?


Re: Admins veichles - [XST]O_x - 16.10.2009

Quote:
Originally Posted by MenaceX^
Could you write a better explaination?
He/She meant that He/She wants to make that so only admins could get in vehicles,And if the player isn't an admin,He will be
Ejected.Am i right?



Re: Admins veichles - Angelo94 - 16.10.2009

yes thats it


Re: Admins veichles - [XST]O_x - 16.10.2009

Quote:
Originally Posted by Angelo94
yes thats it
You can use if(IsPlayerAdmin) But it's for RCON Admins only.
Depends what admin system you're using(If you're using one..)


Re: Admins veichles - BMUK - 16.10.2009

Top of script

Код:
new AdminCar;
OnGameModeInit

Код:
AdminCar = Addstaticvehicle....
OnPlayerStateChange

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
  if(GetPlayerVehicleID(playerid) == AdminCar)
  {
    if(!IsPlayerAdmin(playerid))
    {
      RemovePlayerFromVehicle(playerid);
    }
  }
}



Re: Admins veichles - Angelo94 - 16.10.2009

the only thing i know about admins is the admin password in server.cfg and /rcon login password


Re: Admins veichles - MenaceX^ - 16.10.2009

You should connect and you'll be an admin.
By the way BMUK - There is no such thing called IsServerAdmin.


Re: Admins veichles - BMUK - 16.10.2009

lol I use IsServerAdmin(playerid)

custom function obv.. habbit, my bad

edited it