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();
}
}
}
}
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
this for ban ip player
not in account
this low
;D ;D XD
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
the code is not good
bad code 8)
how can these shit scripters who steal attack him for sharing, probably didn't drag and drop like you hoped, thanks for sharing!