a question with my /ban command
#1

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]
Reply
#2

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
}
Reply
#3

Show us your /ban cmd code please and i'll add what you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)