SA-MP Forums Archive
[HELP] Makin cars only enterable for admins - 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: [HELP] Makin cars only enterable for admins (/showthread.php?tid=115721)



[HELP] Makin cars only enterable for admins - Evangek - 25.12.2009

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!


Re: Cars - MadeMan - 25.12.2009

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


Re: [HELP] Cars - Evangek - 26.12.2009

But i want it only for Army how do i do this?


Re: [HELP] Cars - Doppeyy - 26.12.2009

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

[Doppeyy


Re: [HELP] Cars - Evangek - 26.12.2009

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.


Re: [HELP] Cars - Grim_ - 26.12.2009

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


Re: [HELP] Cars - Evangek - 26.12.2009

Well , i cant find it..


Re: [HELP] Cars - Grim_ - 26.12.2009

..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;
}



Re: [HELP] Cars - Evangek - 26.12.2009

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


Re: [HELP] Cars - Doppeyy - 26.12.2009

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