SA-MP Forums Archive
admin System 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)
+--- Thread: admin System Help (/showthread.php?tid=500727)



admin System Help - alishvasis - 14.03.2014

Hi alls.I Used Kick Cmd On My Admin System.How To Fix It To Example Admin Rank 4 Cant Kick Admin Rank 9 ?
(Admins Cant Kick Higher Rank( Rank 9 And 10)
I Use This But Not Work.Pls Fix It TnX + ReP
Код:
if(Account[player][pAdminlevel]>=8){
  SendClientMessage(playerid, COLOR_RED, "You Cant Kick Rank 9 And 10!");}



Re: admin System Help - LocMax - 14.03.2014

Код:
if(Account[target][Admin] > Account[playerid][ADmin]) return SendClientMessage(playerid, 0xFF0000AA, "You can't kick higher level admin.");



Re: admin System Help - alishvasis - 14.03.2014

Quote:
Originally Posted by LocMax
Посмотреть сообщение
Код:
if(Account[target][Admin] > Account[playerid][ADmin]) return SendClientMessage(playerid, 0xFF0000AA, "You can't kick higher level admin.");
error 017: undefined symbol "target"


Re: admin System Help - Flake. - 14.03.2014

Quote:
Originally Posted by alishvasis
Посмотреть сообщение
error 017: undefined symbol "target"
pawn Код:
new target;



Re : admin System Help - S4t3K - 14.03.2014

pawn Код:
new target, tmp[128];
tmp = strtok(cmdtext, idx);
target = ReturnUser(tmp);
*