Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Biller:Auto kick IP-Range

 
Post new topic   Reply to topic Printable version
 View previous topic  Infantry Server - Missing local.lvl Post :: Post Connection to billing server timed out.  View next topic  
Author Message
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Nov 27, 2005 8:42 pm    Post subject: Biller:Auto kick IP-Range Reply to topic Reply with quote

On christmas i am getting a new computer and i have the Visual C++ cds and all. Im editing Catid's biller and leaving the credits to him. (Imagen that)

Anyways, i was wondering how to AutoKick someone when they enter if their ip starts With 162 (aka Quan Chi2)

My bot already does it, i thought it would be funny for my biller to do it too.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Sun Nov 27, 2005 9:26 pm    Post subject: Reply to topic Reply with quote

There's several things wrong with your intentions, but if anyone's going to tell you how to do it, how does that help you improve as a human being? It would just be another "credits go to...". I suggest at least learning enough C to add in a few lines of code to do it.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:35
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Sun Nov 27, 2005 10:38 pm    Post subject: Reply to topic Reply with quote

You know, other people's IP may start with 162 also...
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Sun Nov 27, 2005 10:46 pm    Post subject: Reply to topic Reply with quote

if ((userIP & MASK) == (badIP & MASK)) then BAN

Where userIP is the connecting player's IP address, badIP is the full IP address of the bad user, and MASK is a subnet mask, such as 255.255.255.0 (which will cover the range xx.xx.xx.0 - xx.xx.xx.255).
Back to top
View users profile Send private message Add User to Ignore List Send email
SpecShip
Guest


Offline

PostPosted: Mon Nov 28, 2005 12:23 am    Post subject: Reply to topic Reply with quote

Shouldn't this be in another section, the coding one?

-Ex Gravitron
Back to top
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Mon Nov 28, 2005 7:49 am    Post subject: Reply to topic Reply with quote

I think that is only for ASSS.

btw: Thanks guys.
purge: Sai Saici (Quan Chi2) is the only one i know who uses that 162.*.*.* ip. Were not exactly SSC so it won't matter.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Nov 28, 2005 4:14 pm    Post subject: Reply to topic Reply with quote

Well I'm sure at least the second byte doesn't change either.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Mon Nov 28, 2005 5:48 pm    Post subject: Reply to topic Reply with quote

I see it's useally a 162.83.*.* ip, so i'll block that. My bot already does that (even on the release to the public icon_lol.gif ).

icon_rolleyes.gif Hey have you seen my Princessbot? she is a hooker. She says all kind of naughty things. It's hallarious. If you say "no" she's like "Are you gay or something?"
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 32 page(s) served in previous 5 minutes.

phpBB Created this page in 0.558311 seconds : 33 queries executed (95.3%): GZIP compression disabled