06.06.2010, 13:46
Quote:
Originally Posted by ThaKing
I have an admin system installed, and all done. What is the PAWN code, so if someone typed "/adcdms" as atleast level 1 admin, they get a list? I would list all the commands, I just need the code. Thanks
|
Quote:
if(strcmp("/acmds", cmdtext, true, 10) == 0) { if(pAdminLvl[playerid] > 1) { SendClientMessage(playerid, 0xFFFFFFFF, "[ADMINCMD]: /bla /bla /bla"); SendClientMessage(playerid, 0xFFFFFFFF, "[ADMINCMD]: /bla /bla /bla"); SendClientMessage(playerid, 0xFFFFFFFF, "[ADMINCMD]: /bla /bla /bla"); SendClientMessage(playerid, 0xFFFFFFFF, "[ADMINCMD]: /bla /bla /bla"); return 1; } } return SendClientMessage(playerid, 0xFFFFFFFF, "You are not a admin!"); } |