Admins veichles
#1

How to allow only admins to get in veichles?
Reply
#2

Could you write a better explaination?
Reply
#3

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?
Reply
#4

yes thats it
Reply
#5

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..)
Reply
#6

Top of script

Код:
new AdminCar;
OnGameModeInit

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

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

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

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

lol I use IsServerAdmin(playerid)

custom function obv.. habbit, my bad

edited it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)