[HELP] Makin cars only enterable for admins
#1

Hey i just added some new cars to my server but, i need help with Locking it for an team or admins can you guys help me?

like , i got an Rhino or an Hunter and i want to that only Army can use it can you guys help me?

Please help ,

thanks!
Reply
#2

http://forum.sa-mp.com/index.php?topic=140592.0
Reply
#3

But i want it only for Army how do i do this?
Reply
#4

You mean teams or only the army skin ?
You need to give more info for us to work with .

[Doppeyy
Reply
#5

Like , Army Skin yes but i saw in some Cops and Robbers server that there were some Cars that ONLY ADMINS could enter it said like: This car is reserved for Team-DRD members only.

How can i add that to my server? can you please help me? im new to scripting .

thanks.
Reply
#6

Search. Too many topics to count on what you're looking for.
Reply
#7

Well , i cant find it..
Reply
#8

..You should try harder.
ANYWAYS - Heres and example of how you would do it..
pawn Код:
new AdmCar;

public OnGameModeInit()
{
  AdmCar = CreateVehicle(400, 0.000, 0.000, 0.000, 0.000, -1, -1, 10000);
  return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid)
{
  if(vehicleid == AdmCar && Admin[playerid] < 1) // replace Admin[playerid] with your variable that stores the players admin level.
  {
   RemovePlayerFromVehicle(playerid);
  }
  return 1;
}
Reply
#9

Thanks , but i got another question..

When i change the rights of the commands (admincommands) like /freeze is Adminlevel 1 , Adminlevel 2 ,3 ,4 ,5 cant use it And when i use Ladmin and i try to login the Ladmin says im logged in but the Server says it doesnt how can i fix this because i cant spawn an skin then because it says i need to login and Ladmin says i AM logged in..

please i need help of it, or should i just copy the commands with another name and change the Adminlevel?

Sorry for doubleposting but i need help
Reply
#10

Quote:
Originally Posted by Evangek
Thanks , but i got another question..

When i change the rights of the commands (admincommands) like /freeze is Adminlevel 1 , Adminlevel 2 ,3 ,4 ,5 cant use it And when i use Ladmin and i try to login the Ladmin says im logged in but the Server says it doesnt how can i fix this because i cant spawn an skin then because it says i need to login and Ladmin says i AM logged in..

please i need help of it, or should i just copy the commands with another name and change the Adminlevel?

Sorry for doubleposting but i need help
Ask in the ladmin topic .

[Doppeyy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)