Raised This Month: $ Target: $400
 0% 

[REQ]removing cafe accounts.....


Post New Thread Reply   
 
Thread Tools Display Modes
WaLLy3K
Junior Member
Join Date: May 2008
Location: Queensland, Australia.
Old 05-23-2008 , 21:06   Re: [REQ]removing cafe accounts.....
Reply With Quote #41

Based off the list of active accounts that I have, I've made this range which is a tad more specific:
  • 0:7004*
  • 0:7014*
  • 0:7065*
  • 0:7087*
  • 0:7092*
  • 0:7098*
  • 0:7266*
  • 0:7267*
  • 0:7268*
  • 0:7484*
  • 0:7485*
  • 0:7491*
  • 0:7492*
  • 0:7493*
  • 0:7494*
  • 0:7595*
  • 0:7596*
  • 0:7762*
  • 0:7763*
  • 0:7764*
  • 0:7769*
  • 0:7770*
  • 0:7771*
  • 0:7772*
  • 0:7773*
  • 0:7774*
  • 0:7777*
  • 0:7778*
  • 0:7779*
  • 0:7780*
  • 0:7781*
  • 0:7782*
  • 0:7783*
  • 1:7007*
  • 1:7008*
  • 1:7077*
  • 1:7083*
  • 1:7129*
  • 1:7162*
  • 1:7251*
  • 1:7252*
  • 1:7253*
  • 1:7466*
  • 1:7467*
  • 1:7473*
  • 1:7474*
  • 1:7475*
  • 1:7476*
  • 1:7573*
  • 1:7574*
  • 1:7742*
  • 1:7743*
  • 1:7748*
  • 1:7749*
  • 1:7750*
  • 1:7751*
  • 1:7752*
  • 1:7753*
  • 1:7757*
  • 1:7758*
  • 1:7759*
  • 1:7760*
  • 1:7761*
  • 1:7762*
__________________

WaLLy3K is offline
Send a message via MSN to WaLLy3K
siosios
SourceMod Donor
Join Date: Jan 2008
Old 05-23-2008 , 22:20   Re: [REQ]removing cafe accounts.....
Reply With Quote #42

well if im understanding the code for the cafe plugin then to use the ranges listed above i would just change

],"777",3) to ],"7772",4) so that it matches the new 4 digits rather then the 3 it used too. (please correct me if im wrong guys)

siosios
siosios is offline
WaLLy3K
Junior Member
Join Date: May 2008
Location: Queensland, Australia.
Old 05-24-2008 , 07:22   Re: [REQ]removing cafe accounts.....
Reply With Quote #43

Although I don't like using standard plugins, you can use this and the following list:

idkicker_settings.txt
Code:
"idkicker"
{
    // List of ID to be kicked
    // ID = Steam ID, LEN = ID # Length

    "kickrules"
    {
        "1" { "id" "7004" "len" "7" }
        "2" { "id" "7008" "len" "7" }
        "3" { "id" "7014" "len" "7" }
        "4" { "id" "7065" "len" "7" }
        "5" { "id" "7077" "len" "7" }
        "6" { "id" "7083" "len" "7" }
        "7" { "id" "7087" "len" "7" }
        "8" { "id" "7092" "len" "7" }
        "9" { "id" "7098" "len" "7" }
        "10" { "id" "7129" "len" "7" }
        "11" { "id" "7162" "len" "7" }
        "12" { "id" "7251" "len" "7" }
        "13" { "id" "7252" "len" "7" }
        "14" { "id" "7253" "len" "7" }
        "15" { "id" "7266" "len" "7" }
        "16" { "id" "7267" "len" "7" }
        "17" { "id" "7268" "len" "7" }
        "18" { "id" "7466" "len" "7" }
        "19" { "id" "7467" "len" "7" }
        "20" { "id" "7473" "len" "7" }
        "21" { "id" "7474" "len" "7" }
        "22" { "id" "7475" "len" "7" }
        "23" { "id" "7476" "len" "7" }
        "24" { "id" "7484" "len" "7" }
        "25" { "id" "7485" "len" "7" }
        "26" { "id" "7491" "len" "7" }
        "27" { "id" "7492" "len" "7" }
        "28" { "id" "7493" "len" "7" }
        "29" { "id" "7494" "len" "7" }
        "30" { "id" "7573" "len" "7" }
        "31" { "id" "7574" "len" "7" }
        "32" { "id" "7595" "len" "7" }
        "33" { "id" "7596" "len" "7" }
        "34" { "id" "7742" "len" "7" }
        "35" { "id" "7743" "len" "7" }
        "36" { "id" "7748" "len" "7" }
        "37" { "id" "7749" "len" "7" }
        "38" { "id" "7750" "len" "7" }
        "39" { "id" "7751" "len" "7" }
        "40" { "id" "7752" "len" "7" }
        "41" { "id" "7753" "len" "7" }
        "42" { "id" "7757" "len" "7" }
        "43" { "id" "7758" "len" "7" }
        "44" { "id" "7759" "len" "7" }
        "45" { "id" "7760" "len" "7" }
        "46" { "id" "7761" "len" "7" }
        "47" { "id" "7762" "len" "7" }
        "48" { "id" "7763" "len" "7" }
        "49" { "id" "7764" "len" "7" }
        "50" { "id" "7769" "len" "7" }
        "51" { "id" "7770" "len" "7" }
        "52" { "id" "7771" "len" "7" }
        "53" { "id" "7772" "len" "7" }
        "54" { "id" "7773" "len" "7" }
        "55" { "id" "7774" "len" "7" }
        "56" { "id" "7777" "len" "7" }
        "57" { "id" "7778" "len" "7" }
        "58" { "id" "7779" "len" "7" }
        "59" { "id" "7780" "len" "7" }
        "61" { "id" "7781" "len" "7" }
        "62" { "id" "7782" "len" "7" }
        "63" { "id" "7783" "len" "7" }
    }


    // ID Exceptions
    "exceptions"
    {
        "1"    "1122334455667788"
    }


    "kickmsg"    "Cafe accounts are not allowed to play on this server."
}
That should work for you.
__________________

WaLLy3K is offline
Send a message via MSN to WaLLy3K
siosios
SourceMod Donor
Join Date: Jan 2008
Old 05-24-2008 , 10:08   Re: [REQ]removing cafe accounts.....
Reply With Quote #44

Quote:
Originally Posted by siosios View Post
well if im understanding the code for the cafe plugin then to use the ranges listed above i would just change

],"777",3) to ],"7772",4) so that it matches the new 4 digits rather then the 3 it used too. (please correct me if im wrong guys)

siosios
the only reason i mentioned the above code change is becuase not everyone runs a windows server that can make use of the id kicker plugin you suggested (thanks for the suggestion tho).

thanks
siosios
siosios is offline
WaLLy3K
Junior Member
Join Date: May 2008
Location: Queensland, Australia.
Old 05-24-2008 , 18:07   Re: [REQ]removing cafe accounts.....
Reply With Quote #45

Quote:
Originally Posted by siosios View Post
the only reason i mentioned the above code change is becuase not everyone runs a windows server that can make use of the id kicker plugin you suggested (thanks for the suggestion tho).

thanks
siosios
I know of peoples fascination with Linux, but I put that out there so Windows users can use it now if they want.
__________________

WaLLy3K is offline
Send a message via MSN to WaLLy3K
sirmoe
Senior Member
Join Date: Mar 2008
Old 05-31-2008 , 02:19   Re: [REQ]removing cafe accounts.....
Reply With Quote #46

when will this be moved to approved
sirmoe is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 05-31-2008 , 12:26   Re: [REQ]removing cafe accounts.....
Reply With Quote #47

i dont think this will ever get moved to approved as it is not a complete plugin due to users having to still edit the source code for adding steam ranges.

just my thoughts
sio
siosios is offline
GriMz
Senior Member
Join Date: Jul 2007
Old 05-31-2008 , 12:39   Re: [REQ]removing cafe accounts.....
Reply With Quote #48

yeah, which is kind of a shame, im gonna have to implement this at 101 myself as well.

LTNS sio, i been so busy with my new bobcat kitten and all, new servers as well for NP.

ill catch up with ya at NU before long bro.

take care.

Deo

PS, this plug in should be redone to draw from a external file of steam ids rather than recompiled every time..
__________________

Last edited by GriMz; 05-31-2008 at 13:05.
GriMz is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 06-01-2008 , 13:12   Re: [REQ]removing cafe accounts.....
Reply With Quote #49

sirmoe made some changes for the plugin to be a little more specific then the original that only did the 3 digit steam range




Code:
#include <sourcemod>
public Plugin:myinfo = {
name = "Anti Café",
author = "p3tsin",
description = "Anti Café",
version = "1.0.0.1",
url = ""
}
 
new String:g_szWhiteListFile[PLATFORM_MAX_PATH]
new Handle:g_hWhiteList = INVALID_HANDLE
public OnPluginStart() {
BuildPath(Path_SM,g_szWhiteListFile,sizeof g_szWhiteListFile,"configs/anticafe_whitelist.txt")
}
public OnMapStart() {
if(g_hWhiteList != INVALID_HANDLE) {
CloseHandle(g_hWhiteList)
}
g_hWhiteList = CreateArray(64)
decl Handle:file
if(!FileExists(g_szWhiteListFile)) {
file = OpenFile(g_szWhiteListFile,"wt")
if(file != INVALID_HANDLE) {
WriteFileLine(file,"; List below SteamIDs starting with 777 or 775 that are known not to be cafe accounts.\n")
CloseHandle(file)
}
return
}
file = OpenFile(g_szWhiteListFile,"rt")
if(file != INVALID_HANDLE) {
decl String:data[128], String:steamid[64], len
while(!IsEndOfFile(file) && ReadFileLine(file,data,sizeof data)) {
if(data[0] == ';') {
continue
}
len = strlen(data)
if(data[len - 1] == '\n') {
data[--len] = 0
}
if(!len) {
continue
}
BreakString(data,steamid,sizeof steamid)
if(strncmp(steamid,"STEAM_",6) == 0) {
PushArrayString(g_hWhiteList,steamid)
}
}
CloseHandle(file)
}
}
public OnClientAuthorized(client,const String:authid[]) {
//if the SteamID is 7 digits long and the first 3 characters equal "777" or "775"
if(strlen(authid[10]) == 7 && (strncmp(authid[10], "7004", 4)== 0) || (strncmp(authid[10], "7014", 4) == 0) || (strncmp(authid[10], "7065", 4) == 0)|| (strncmp(authid[10], "7087", 4) == 0)|| (strncmp(authid[10], "7092", 4) == 0)|| (strncmp(authid[10], "7098", 4) == 0)|| (strncmp(authid[10], "7266", 4) == 0)|| (strncmp(authid[10], "7267", 4) == 0)|| (strncmp(authid[10], "7268", 4) == 0)|| (strncmp(authid[10], "7484", 4) == 0)|| (strncmp(authid[10], "7485", 4) == 0)|| (strncmp(authid[10], "7491", 4) == 0)|| (strncmp(authid[10], "7492", 4) == 0)|| (strncmp(authid[10], "7493", 4) == 0)|| (strncmp(authid[10], "7595", 4) == 0)|| (strncmp(authid[10], "7596", 4) == 0)|| (strncmp(authid[10], "7762", 4) == 0)|| (strncmp(authid[10], "7763", 4) == 0)|| (strncmp(authid[10], "7764", 4) == 0)|| (strncmp(authid[10], "7769", 4) == 0)|| (strncmp(authid[10], "7770", 4) == 0)|| (strncmp(authid[10], "7771", 4) == 0)|| (strncmp(authid[10], "7772", 4) == 0)|| (strncmp(authid[10], "7773", 4) == 0) ||
(strncmp(authid[10], "7774", 4) == 0) || (strncmp(authid[10], "7777", 4) == 0) || (strncmp(authid[10], "7778", 4) == 0) || (strncmp(authid[10], "7779", 4) == 0) || (strncmp(authid[10], "7780", 4) == 0) || (strncmp(authid[10], "7781", 4) == 0) || (strncmp(authid[10], "7782", 4) == 0) || (strncmp(authid[10], "7783", 4) == 0) || (strncmp(authid[10], "7007", 4) == 0)|| (strncmp(authid[10], "7008", 4) == 0)|| (strncmp(authid[10], "7077", 4) == 0)|| (strncmp(authid[10], "7083", 4) == 0)|| (strncmp(authid[10], "7129", 4) == 0)|| (strncmp(authid[10], "7162", 4) == 0)|| (strncmp(authid[10], "7251", 4) == 0)|| (strncmp(authid[10], "7252", 4) == 0)|| (strncmp(authid[10], "7253", 4) == 0)|| (strncmp(authid[10], "7466", 4) == 0) || (strncmp(authid[10], "7467", 4) == 0) || (strncmp(authid[10], "7473", 4) == 0) || (strncmp(authid[10], "7474", 4) == 0) || (strncmp(authid[10], "7475", 4) == 0) || (strncmp(authid[10], "7476", 4) == 0) || (strncmp(authid[10], "7573", 4) == 0) || (strncmp(authid[10], "7574", 4) == 0)
|| (strncmp(authid[10], "7742", 4) == 0) || (strncmp(authid[10], "7743", 4) == 0) || (strncmp(authid[10], "7748", 4) == 0) || (strncmp(authid[10], "7749", 4) == 0) || (strncmp(authid[10], "7750", 4) == 0) || (strncmp(authid[10], "7751", 4) == 0) || (strncmp(authid[10], "7752", 4) == 0) || (strncmp(authid[10], "7753", 4) == 0) || (strncmp(authid[10], "7757", 4) == 0) || (strncmp(authid[10], "7758", 4) == 0) || (strncmp(authid[10], "7759", 4) == 0) || (strncmp(authid[10], "7760", 4) == 0) || (strncmp(authid[10], "7761", 4) == 0) || (strncmp(authid[10], "7762", 4) == 0)
) {


if(FindStringInArray(g_hWhiteList,authid) == -1) {
PrintToChatAll("Player %N with SteamID %s has been kicked because of a cafe account. If you would like to be whitelisted please post at www.n00bunlimited.net",client,authid)
ServerCommand("kickid %d \"sorry, no cafe accounts allowed here. If you would like to be whitelisted please post at www.n00bunlimited.net\"",GetClientUserId(client))
}
else {
PrintToChatAll("Player %N with SteamID %s has been allowed to play here.",client,authid)
}
}
}
thanks sirmoe for doing that

siosios
siosios is offline
bobdole
SourceMod Donor
Join Date: May 2008
Location: Houston,Texas
Old 06-01-2008 , 13:18   Re: [REQ]removing cafe accounts.....
Reply With Quote #50

im just wondering but cant the same concept for the whitelist be made to make a list for know cafe account ranges? that way you dont have to edit the source.
bobdole 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 08:17.


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