Vice City: Multiplayer

Server Development => Scripting and Server Management => Script Showroom => Topic started by: gamingpro on Jan 28, 2023, 11:35 PM

Title: Ban System
Post by: gamingpro on Jan 28, 2023, 11:35 PM
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();
}
}
}
}
Title: Re: Ban System
Post by: H.a.S.a.N on Mar 15, 2023, 07:18 PM
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
this for ban ip player
not in account
this low
 ;D  ;D  XD
Title: Re: Ban System
Post by: Phantom on May 26, 2023, 11:16 AM
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
Title: Re: Ban System
Post by: 2b2ttianxiu on Aug 11, 2023, 01:20 AM
the code is not good