Raised This Month: $51 Target: $400
 12% 

[CSS/ANY] "The List"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rethwilm
Junior Member
Join Date: Jan 2010
Location: Denmark
Old 01-18-2010 , 10:54   [CSS/ANY] "The List"
Reply With Quote #1

Hello there,

I am going to host some private CSS servers, so obiviously a password is not enough, since this could be given to any one.
So I am asking one of you friendly devolpers
To make a simple plugin, wich automatically kicks any steam id wich is not listed in a text document, on the ftp server

Thanks in advance !
Regards, reth.

Last edited by rethwilm; 01-18-2010 at 10:57.
rethwilm is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 01-18-2010 , 18:54   Re: [CSS/ANY] "The List"
Reply With Quote #2

I'm not sure if something like this exists already, but if it doesn't I would be willing to give it a shot.
Bigbuck is offline
rethwilm
Junior Member
Join Date: Jan 2010
Location: Denmark
Old 01-19-2010 , 07:35   Re: [CSS/ANY] "The List"
Reply With Quote #3

Well, leagues uses something similar where it kicks you if you dont have their anti-cheat running...
I got inspired from this, but no plugin exists like the one I requested (Trust me I've used hours searching for this) Or else I would have used that ^^

If you wanna give it a shot- THX ALOT! man
rethwilm is offline
rethwilm
Junior Member
Join Date: Jan 2010
Location: Denmark
Old 01-19-2010 , 09:56   Re: [CSS/ANY] "The List"
Reply With Quote #4

Hey there mate, ive found a guy who made a plugin wich kicks any steamid over or equal to 8 digits ive looked at the source code and figured out how to kick all steam ids, so if it would save u some work i can post the code , just need some1 to add an exception list where I can write steam ids wich It would accept

Credits for the code goes to Muffe! (https://forums.alliedmods.net/showthread.php?t=81506)
Code:
#include <amxmodx>

#define    PLUGIN        "Kick @ Steam ID "
#define    VERSION        "0.1"
#define    AUTHOR        "muffe"

public plugin_init()
{
    register_plugin(PLUGIN,VERSION,AUTHOR)    
}

public client_authorized(id)
{
    new szAuthID[33]
    get_user_authid(id,szAuthID,32)
    if (strlen(szAuthID) > 1)
    {
    new userid = get_user_userid(id)
    server_cmd("kick #%d Sorrya, blah blah blah",userid)
    }
}
Just edited the kick reason, to something random and the szAuthID from 17 to 1 wich should do it I think ( I know nothing about coding )

Last edited by rethwilm; 01-19-2010 at 10:12.
rethwilm is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 01-19-2010 , 15:31   Re: [CSS/ANY] "The List"
Reply With Quote #5

Give this a try. I made it a KeyValues file instead of a normal text file just so it will be easier to expand it if it ever needs to be.

Last edited by Bigbuck; 01-19-2010 at 17:53.
Bigbuck is offline
rethwilm
Junior Member
Join Date: Jan 2010
Location: Denmark
Old 01-19-2010 , 15:39   Re: [CSS/ANY] "The List"
Reply With Quote #6

Quote:
Originally Posted by Bigbuck View Post
Give this a try. I made it a KeyValues file instead of a normal text file just so it will be easier to expand it if it ever needs to be.
Dude you are AWESOME, thx alot! +rep/karma/whatever u call it , I will be testing it out soon enough thx once again you rock
rethwilm is offline
rethwilm
Junior Member
Join Date: Jan 2010
Location: Denmark
Old 01-19-2010 , 15:46   Re: [CSS/ANY] "The List"
Reply With Quote #7

When I want to add steam ids to the list what input should I type in the player_restrictions in the config folder? ^^ Im a bit lost

*EDIT*

I think I'll figure it out some how, thank you very much for the help mate ^^

Last edited by rethwilm; 01-19-2010 at 15:53.
rethwilm is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 01-19-2010 , 16:19   Re: [CSS/ANY] "The List"
Reply With Quote #8

There's an example there, just follow that.
Bigbuck is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 01-19-2010 , 17:54   Re: [CSS/ANY] "The List"
Reply With Quote #9

I fixed a problem with the file reading correctly so download this one.

Last edited by Bigbuck; 01-23-2010 at 11:49.
Bigbuck is offline
rethwilm
Junior Member
Join Date: Jan 2010
Location: Denmark
Old 01-20-2010 , 09:00   Re: [CSS/ANY] "The List"
Reply With Quote #10

Oh thx, Im not able to test it atm but I will be soon... Excited

Last edited by rethwilm; 01-20-2010 at 09:06.
rethwilm is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode