-
Help me !! Im a beginner. How to kick someone via IP.
i know that. but if u ban s.o by anyway, it still banned via xuid or guid. but my problem is so serious. He fake admin's xuid and use admin's cmds for his evil purposes... BANNED him, but 5 minutes later, he back and keep kicking all people ... i think 4d1 should fix that soon. he alway used a same static ip, so i want to ban him via IP. Just read IP from text files and kick who use it to connect my sv.
-
Help me !! Im a beginner. How to kick someone via IP.
Im admin of a server from Vietnam. I got a big problem. Someone used a hack tool to fake my xuid, changed his name to my name, then used admin's cmds to kick or ban all players in room. i banned him from my console. but 5 minutes later, he back. It happen too many times. i dont know what tool he used but i really want to kick him away from my server 4ever. Seem like he alway use a same static ip to connect to my server. So i decide to write a script that i can kick s.o via ip. im writing a little script but im stuck. i dont know how to kick someone Someone can help me. Im a beginner and sr about my bad english I just want to know how to use kick command. i dont know the kick command here my code, dont laugh at me :mrgreen: : using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using InfinityScript; namespace ClassLibrary1 { public class BanList : BaseScript { List ipbanlist = new List(); private bool LoadBanList(string p, List iplist) { try { using (StreamReader sr = new StreamReader(p)) { String[] line = sr.ReadToEnd().Split('\n'); int d = line.Length; for (int f = 0; f < d; f++) { List ip = line[f].ToList(); int e = ip.Count; if (ip[e - 2].ToString() == "x") { line[f] = line[f].Remove(e - 2); } iplist.Add(line[f]); } return true; } } catch (Exception e) { return false; } } public BanList(): base() { LoadBanList("baniplist.txt",ipbanlist); PlayerConnecting += new Action(entity => { entity.OnNotify("connecting",player => { foreach (string ipban in ipbanlist) { if (player.IP.ToString().StartsWith(ipban)) { <<<<<>>>>> <<<< kick cmd is here but i dont know it ( >>>> } } }); }); } } }
Pyy
Игрок
-
Зарегистрирован
-
Посещение