Nice Pro
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction onPlayerCommand( player, cmd, text){
if(cmd == "ban"){
if(!text) return MessagePlayer("[#ff0000]Error: [#FFFFFF]Correct Syntax /"+cmd+" <Player> <Reason>",player);
else {
local params = split(text, " "), plr = FindPlayer(params[0]), reason = text.slice(params[0].len() + 1);
if(!plr) MessagePlayer("[#ff0000]Error: [#ffffff]Unknow Player...",player);
else if(plr.Name==player.Name) MessagePlayer("[#ff0000]Error: [#FFFFFF]You Cannot Ban Your Self!",player);
else {
Message("[#ff0000]Admin:[ "+player.Name+" ] banned:[ "+plr.Name+" ] Reason:[ "+reason+" ]");
plr.Ban();
}
}
}
}