SA-MP Forums Archive
Admin CMD help - 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: Admin CMD help (/showthread.php?tid=243970)



Admin CMD help - Bob_Raw - 25.03.2011

OK, I'm in the middle of Scripting some gates and Teleports and I need to know how to make one of my Commands to a admin command.So if anyone could help me that would be great.
Thanks


Re: Admin CMD help - [NRP]Blade - 25.03.2011

Well depends on your code, do you use dini? Do you use PlayerInfo[playerid][pAdmin]? But if you want them to be just RCON admin, here. Dont forget to search.


Re: Admin CMD help - Sascha - 25.03.2011

if you don't have a login/register system yet, then I'd suggest to download an admin script...


Re: Admin CMD help - Max_Coldheart - 25.03.2011

if you have made admin level like [pLevel]
then its
pawn Код:
if(PlayerInfo[playerid] [pLevel] > 1) return SendClientMessage(playerid, -1, "You are not authorized to use this command.");
{
      //CMD goes here
}



Re: Admin CMD help - Sascha - 25.03.2011

ehm lol... that command would only be able to be used by level 1 and level 0 players = no admin command


Re: Admin CMD help - -Rebel Son- - 25.03.2011

Post the command