freaker 0 Report post Posted February 19, 2014 Hello, Is there any anti name changing script as a server plugin so that it kicks the name changer bots??? Thanks in advance... Share this post Link to post Share on other sites
Wingzor 0 Report post Posted February 19, 2014 There is an easy solution for such things. just check the the player.name and save it in a variable. check the variable with the actual player.name once in a while. use a checksum to check if it bypassed your allowed amount. if it does you can drop the client. //sorry im not sure if im allowed to provide scripts on the board ( ivent read the rules yet haha ) you could contact me on xfire : evilphinal Share this post Link to post Share on other sites
QueNNch 515 Report post Posted February 19, 2014 Wingzo is here Welcome to the forum dude. Share this post Link to post Share on other sites
Wingzor 0 Report post Posted February 20, 2014 Hey bro has been a while Tnx //sorry for offtopic Share this post Link to post Share on other sites
IJzzo 1,072 Report post Posted February 20, 2014 Hello well you can show script here. Share this post Link to post Share on other sites
Wingzor 0 Report post Posted February 20, 2014 //__/\\\______________/\\\______________________________________________________________________________________ // _\/\\\_____________\/\\\_____________________________________________xfire:_Evilphinal________________________ // _\/\\\_____________\/\\\__/\\\_________________/\\\\\\\\______________________________________________________ // _\//\\\____/\\\____/\\\__\///___/\\/\\\\\\____/\\\////\\\__/\\\\\\\\\\\_____/\\\\\_____/\\/\\\\\\\____________ // __\//\\\__/\\\\\__/\\\____/\\\_\/\\\////\\\__\//\\\\\\\\\_\///////\\\/____/\\\///\\\__\/\\\/////\\\___________ // ___\//\\\/\\\/\\\/\\\____\/\\\_\/\\\__\//\\\__\///////\\\______/\\\/_____/\\\__\//\\\_\/\\\___\///____________ // ____\//\\\\\\//\\\\\_____\/\\\_\/\\\___\/\\\__/\\_____\\\____/\\\/______\//\\\__/\\\__\/\\\___________________ // _____\//\\\__\//\\\______\/\\\_\/\\\___\/\\\_\//\\\\\\\\___/\\\\\\\\\\\__\///\\\\\/___\/\\\___________________ // ______\///____\///_______\///__\///____\///___\////////___\///////////_____\/////_____\///____________________ /* NAMECHANGER detection */ init() { level.Interval = 3; //check interval in seconds, you could also write a dvar for this level.checks = 10; //amount of checks in a row before you return a false detection level.requiredChecks = 8;// amount of checks of the total check amount to return a true for(; { level waittill("connected", player); player thread NameCheck(); } } NameCheck() { self endon("disconnect"); self.pers["changedname"] = 0; currentname = self.name; for(; { currentname = self.name; wait 10; if(currentname != self.name && !self.watched) self watchPlayer(); self waittill("check_done"); } } watchPlayer() { self endon("disconnect"); for(i=0;i { currentname = self.name; wait level.interval; if(currentname != self.name) self.pers["changedname"]++; } if(level.requiredChecks>=self.pers["changedname"]) self thread dropPlayer("kick","NameChanger(AutoKick)"); //kick or ban method possible else { self.pers["changedname"] = 0; self notify("check_done"); } } /*#############BANNING & LOGWRITING########*/ dropPlayer(type,reason,time) { if(isDefined(self.banned)) return; self.banned = true; self notify("catched"); log("autobans.log",type + " player " + self.name + "("+self getGuid()+"), Reason: " +reason); text = ""; if(type == "ban") text = "^5Banning ^7" + self.name + " ^5for ^7" + reason + " ^5#"; if(type == "kick") text = "^5Kicking ^7" + self.name + " ^5for ^7" + reason + " ^5#"; level thread showDelayText(text,1); //shows an string so other people see someone is getting banned with reason X //execute the ban/kick if(type == "ban") exec("banclient " + self getEntityNumber() + " " + reason); //does require the iceops patch ! if(type == "kick") exec("clientkick " + self getEntityNumber() + " " + reason); //does require the iceops patch ! wait 10; } showDelayText(text,delay) { wait delay; iPrintln(text); } //does require the iceops patch ! log(logfile,log) { database = undefined; database = FS_FOpen(logfile, "append"); FS_WriteLine(database, log); FS_FClose(database); } Script has NOT been tested ! ( i had no time to test it yet , consider it as an example of how it could be done so you learn something yourself aswell ) Share this post Link to post Share on other sites
freaker 0 Report post Posted February 20, 2014 How can I implement this script in my server??? Share this post Link to post Share on other sites
rocco 0 Report post Posted February 20, 2014 So many questions from you! Share this post Link to post Share on other sites
freaker 0 Report post Posted February 20, 2014 Please help me on how to use this script..... Share this post Link to post Share on other sites
Wingzor 0 Report post Posted February 20, 2014 what kind of server do you host ? mod or non mod ? (can be done on both but it's easier if you give me some info ) Share this post Link to post Share on other sites
Wingzor 0 Report post Posted February 20, 2014 //doublepost Hudge fail at checker Use <= instead of >= Share this post Link to post Share on other sites
freaker 0 Report post Posted February 20, 2014 I use promodlive218 server...but I don't want to integrate any script with the mod....isn't there any way to use the script as a plugin like the gameranger plugin??? Share this post Link to post Share on other sites
IJzzo 1,072 Report post Posted February 21, 2014 Nope that are two very different things. Share this post Link to post Share on other sites
Wingzor 0 Report post Posted February 21, 2014 Decompile your mod.ff if you do not have sources already. Mostlikely thread it in the mod.gsc or globallogic.gsc Not sure which filenames 2.18 uses. Copy the script in a gsc file and thread it. Thread scriptfoldername/scriptname::init (); Should do your trick Share this post Link to post Share on other sites
freaker 0 Report post Posted February 21, 2014 Wingzor actually I have little idea about mod editing....So, can you please edit a fresh pml218 mod for me and integrate the anti name changing script....and if possible tell me how I can use the anti name changing script as a plugin in the server without integrating it with the mod..... Share this post Link to post Share on other sites
Wingzor 0 Report post Posted February 21, 2014 you ask lots of stuff for someone who is modding his server mod..... i'm here to help and give tips, not to build your server/mod Share this post Link to post Share on other sites
freaker 0 Report post Posted February 21, 2014 If you do that for me then it will be very grateful but if is not possible for me then guide me step by step how to do that.... Share this post Link to post Share on other sites
freaker 0 Report post Posted March 7, 2014 The script u have provided @winzor is giving me bad syntax error in promodlive211..... What to do know??? Share this post Link to post Share on other sites
NNJ 1 Report post Posted March 7, 2014 Lean gsc and fix it on your own Share this post Link to post Share on other sites
Guest arj Report post Posted March 7, 2014 Offtop. // _\/\\\_____________\/\\\_____________________________________________xfire:_Evilphinal________________________ // _\/\\\_____________\/\\\__/\\\_________________/\\\\\\\\______________________________________________________ // _\//\\\____/\\\____/\\\__\///___/\\/\\\\\\____/\\\////\\\__/\\\\\\\\\\\_____/\\\\\_____/\\/\\\\\\\____________ // __\//\\\__/\\\\\__/\\\____/\\\_\/\\\////\\\__\//\\\\\\\\\_\///////\\\/____/\\\///\\\__\/\\\/////\\\___________ // ___\//\\\/\\\/\\\/\\\____\/\\\_\/\\\__\//\\\__\///////\\\______/\\\/_____/\\\__\//\\\_\/\\\___\///____________ // ____\//\\\\\\//\\\\\_____\/\\\_\/\\\___\/\\\__/\\_____\\\____/\\\/______\//\\\__/\\\__\/\\\___________________ // _____\//\\\__\//\\\______\/\\\_\/\\\___\/\\\_\//\\\\\\\\___/\\\\\\\\\\\__\///\\\\\/___\/\\\___________________ // ______\///____\///_______\///__\///____\///___\////////___\///////////_____\/////_____\///____________________ //__/\\\______________/\\\______________________________________________________________________________________ That one reminds me of old configs/cheats for games and trainers,with 8-bit music. I loved it Share this post Link to post Share on other sites
Wingzor 0 Report post Posted March 8, 2014 I said it was untested. Use it as base for your own version. Prob isnt that hard to fix. Some dumb typo or overlooked something. Share this post Link to post Share on other sites
freaker 0 Report post Posted March 8, 2014 Can you tell me how I can learn the basic of gsc and fix this script and also make some scripts of my own??? I have added you on xfire...you can also give me little training on gsc scripting and cod4 modding..... Share this post Link to post Share on other sites
QueNNch 515 Report post Posted March 8, 2014 Can you tell me how I can learn the basic of gsc and fix this script and also make some scripts of my own??? I have added you on xfire...you can also give me little training on gsc scripting and cod4 modding..... Oh dude... You said you are a webmaster, thus you must have a fair bit of experience writing code. So, just open up some map or mod gsc scripts and learn cod4 script functions(?). If you learn to use search engines, your problem is solved. Share this post Link to post Share on other sites
Guest Ares Report post Posted March 8, 2014 Here you go. Share this post Link to post Share on other sites