a question with my /ban command - 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: a question with my /ban command (
/showthread.php?tid=311185)
a question with my /ban command -
Tanush123 - 15.01.2012
How can i make that an admin cannot ban an admin that is the same admin level as him or over his own admin level, it will show "ERROR: You cannot ban admin's that has a higher admin level than you"
i use
pawn Код:
PlayerData[playerid][AdminLevel]
Re: a question with my /ban command -
JamesC - 15.01.2012
pawn Код:
if(PlayerData[TARGET][AdminLevel] <= PlayerData[playerid][AdminLevel]) { // if the target's AdminLevel is less than or equal to the player's AdminLevel
// Ban the player.
} else {
// Send error
}
Re: a question with my /ban command -
Soumi - 15.01.2012
Show us your /ban cmd code please and i'll add what you want.