Help me !! Im a beginner. How to kick someone via IP.
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
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 ( >>>> } } }); }); } } }