Quited Posted August 26, 2013 Share Posted August 26, 2013 Hi , i have code but i don't know how to change the punish from kick to ban and i want the ban "serial is banned" code : Command = { ['aexec'] = true; ['delaccount'] = true; ['chgpass'] = true; ['shutdown'] = true; ['stopall'] = true; ['stopmode'] = true; ['stopmap'] = true; ['loadmodule'] = true; ['crun'] = true; ['run'] = true; ['srun'] = true; ['execute'] = true; ['install'] = true; ['speed'] = true; ['cv'] = true; ['car'] = true; ['giveweapon'] = true; ['give'] = true; ['wp'] = true; ['ap'] = true; ['grav'] = true; ['votekick'] = true; ['voteban'] = true; ['votekill'] = true; ['votemode'] = true; ['votemap'] = true; ['logout'] = true; ['msg'] = true; ['freeze'] = true; ['shout'] = true; ['setmoney'] = true; ['setskin'] = true; ['sethealth'] = true; ['setarmour'] = true; ['warp'] = true; ['givevehicle'] = true; ['setinterior'] = true; ['setdimension'] = true; ['setpassword'] = true; ['setgamespeed'] = true; ['setgravity'] = true; ['nick'] = true; ['delete'] = true; ['destroyteam'] = true; ['createteam'] = true; ['setweather'] = true; ['setgame'] = true; ['chgmypass'] = true; ['giveadmin'] = true; ['runcode'] = true; ['giveconsole'] = true; ['webadmin'] = true; ['set'] = true; ['setTimer'] = true; ['setGameType'] = true; ['setgroup'] = true; ['stop'] = true; ['deleteall'] = true; ['ss'] = true; ['wt'] = true; ['warpto'] = true; ['sp'] = true; ['setpos'] = true; ['st'] = true; ['sw'] = true; } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then cancelEvent ( ); kickPlayer ( source, "Don't Hack Server !" ); end; end ); Link to comment
Moderators IIYAMA Posted August 26, 2013 Moderators Share Posted August 26, 2013 https://wiki.multitheftauto.com/wiki/BanPlayer Link to comment
Quited Posted August 26, 2013 Author Share Posted August 26, 2013 https://wiki.multitheftauto.com/wiki/BanPlayer can you make the code plz Link to comment
Moderators IIYAMA Posted August 26, 2013 Moderators Share Posted August 26, 2013 banPlayer ( source, false,false,true, nil,"Don't Hack the Server !", 0 ) Just put this in place of the kickPlayer and add admin rights for the resource. Link to comment
Quited Posted August 26, 2013 Author Share Posted August 26, 2013 banPlayer ( source, false,false,true, nil,"Don't Hack Server !", 0 ) Just put this in place of the kickPlayer and add admin rights for the resource. are you sure that ban serial ? , anyway thanks Link to comment
Moderators IIYAMA Posted August 26, 2013 Moderators Share Posted August 26, 2013 yes, banPlayer ( player,IP, Username, Serial, 4 argument is true. Link to comment
Quited Posted August 26, 2013 Author Share Posted August 26, 2013 yes,banPlayer ( player,IP, Username, Serial, 4 argument is true. ok thanks Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now