clientcmdadminsuccess() is the one used when you enter the admin password correctly. It simply allows the client to open the Admin GUI (instead of password box) and instantly opens it for the client. When you remove admin they will still be able to access the GUI, unchangable, but none of the buttons on it (kick, ban, etc) will function unless they are given it again.
getPlayer(%mode,%player,%id) is a custom function by me -
%mode - 0 = %id uses BL_ID (ex. 130); 1 = %id uses Whole Name (ex. "Space Guy")
%player - 0 = Return Player object (things like inventory, bricks, health); 1 = Return Client object (Things like score, isAdmin, minigame join/leave)
%id - Uses %mode to determine what it checks for - name or BL_ID.
Basically, if you want to kill a certain player then use: getPlayer(0,1,130).kill(); - where my ID is 130.
Also, the function does use a for() loop it's just in a function instead of you having to write the whole loop in the console.