Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 23:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How can i add command to banned IP?

Discussion on How can i add command to banned IP? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 47
Received Thanks: 4
Exclamation How can i add command to banned IP?

Hye all i have one question how can i ban peopel with IP
banned IP how can ?
i m use source version 5525+ please i need guide!!!
florin2012 is offline  
Old 01/26/2012, 19:03   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
#moved

At least post in the private server section rofl.

As for the question...


#1: Write a method to look up IP by player name (if they are online. If not you may want a "last ip" field in your accounts database so you can ip ban people who are not currently online)

#2: Make a database or text file to hold all banned ips

#3: Make a list inside the source to hold this list of banned ips

#4: Make a load method to load the external textfile/database of banned ips into your internal list

#5: When receiving a connection, check if the ip is allowed. If not then disconnect them.

#6: Make a command that accepts a player name, calls the pull ip method (checks if it returns anything) and adds to the banned list and saves it to database.


DONE
pro4never is offline  
Old 01/26/2012, 19:06   #3
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
idk i've been tryin to do this but couldnt ...
shadowman123 is offline  
Old 01/26/2012, 22:58   #4
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Look in my old projectx source. I have it there, poorly coded and can be improved, but working.
I don't have a username is offline  
Reply


Similar Threads Similar Threads
Command line interface working command
08/05/2012 - DarkOrbit - 27 Replies
I found only one working command: Enter "J" when you are in teleport Anyone know other commands?
[HELP PLEASE]What PM COMMAND FOR BOTJAIL OR BANNED PLAYER
12/04/2009 - EO PServer Hosting - 2 Replies
HELLO EVERYONE... Anyone know how to botjail or bann player without using navicat or database.. i mean how to botjail using pm command..anyone know it?what the PM COMMAND to botjail player and what PM COMMAND to relase them..can someone tell me...Please tell me what PM COMMAND TO BANN AND BOTJAIL player and what PM COMMAND TO UN BANN AND UN BOTJAIL them.. thanks regards;)
If one accoutn banned, all accounts on same email banned?
09/20/2008 - Dekaron - 6 Replies
^^^ Anybody know? Cuz I think I'll need to change my email... IMMIDIATELY lol...
If one of your accounts is banned, are they all banned?
03/27/2008 - Dekaron - 7 Replies
This would be really helpful, because as of now, one of my accounts could be banned? or it is the bug? because I can't get on any of them... "incorrect id" blah blah
how to steal items without being banned/ip banned?
11/04/2007 - Conquer Online 2 - 9 Replies
what i'm trying to say is,when you trade items,or drop them then have other chars to pick them up,is there anyway to avoid getting banned?thanks.



All times are GMT +1. The time now is 23:03.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.