Ban System

Started by gamingpro, Jan 28, 2023, 11:35 PM

Previous topic - Next topic

gamingpro

function 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();
}
}
}
}

H.a.S.a.N

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
this for ban ip player
not in account
this low
 ;D  ;D  XD

Phantom

#2
Quote from: H.a.S.a.N on Mar 15, 2023, 07:18 PMhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
this for ban ip player
not in account
this low
 ;D  ;D  XD

Atleast he made something

2b2ttianxiu

the code is not good