Posts: 89
Threads: 26
Joined: Jan 2011
Reputation:
0
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
Posts: 1,495
Threads: 131
Joined: Jul 2009
Reputation:
0
if you don't have a login/register system yet, then I'd suggest to download an admin script...
Max_Coldheart
Unregistered
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
}
Posts: 1,495
Threads: 131
Joined: Jul 2009
Reputation:
0
ehm lol... that command would only be able to be used by level 1 and level 0 players = no admin command