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

[REQ]removing cafe accounts.....


Post New Thread Reply   
 
Thread Tools Display Modes
siosios
SourceMod Donor
Join Date: Jan 2008
Old 03-31-2008 , 14:59   Re: [REQ]removing cafe accounts.....
Reply With Quote #11

very nice

thank you
sio

Last edited by siosios; 03-31-2008 at 15:02.
siosios is offline
V0gelz
Senior Member
Join Date: Jun 2004
Old 03-31-2008 , 15:17   Re: [REQ]removing cafe accounts.....
Reply With Quote #12

let me know if it works or not.
__________________
V0gelz is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 03-31-2008 , 15:26   Re: [REQ]removing cafe accounts.....
Reply With Quote #13

i will im waiting on a reply via email from the regular player that got kicked by it earlier so i can get that id
siosios is offline
V0gelz
Senior Member
Join Date: Jun 2004
Old 03-31-2008 , 17:52   Re: [REQ]removing cafe accounts.....
Reply With Quote #14

Still no awnser? :p
__________________
V0gelz is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 03-31-2008 , 17:53   Re: [REQ]removing cafe accounts.....
Reply With Quote #15

nope but i did go back through my logs and pull the steam id he was on ..... so it just a waiting game now
siosios is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 03-31-2008 , 20:07   Re: [REQ]removing cafe accounts.....
Reply With Quote #16

ahhh i was wrong the plugin doesnt work at all it was my temp event scripts script i had loaded up last last night.


with only the plugin loaded players with any of the specified steam id's can get into the server

L 03/31/2008 - 188:02: "¡Cœu<1016><STEAM_0:0:7773241><>" STEAM USERID validated
L 03/31/2008 - 188:02: [SourceBans] Checking ban for: STEAM_0:0:7773241
L 03/31/2008 - 188:02: [SourceBans] STEAM_0:0:7773241 is NOT banned.
L 03/31/2008 - 188:29: "¡Cœu<1016><STEAM_0:0:7773241><>" entered the game

sorry bro i forgot i had that script loaded from last night which was a cheap and dirty fix:

Code:
event player_activate
{
 if ("STEAM_0:1:775" in event_var(es_steamid)) then es kickid event_var(userid) "cafe account! if this was a mistake please post at www.n00bunlimited.net"
 if ("STEAM_0:0:777" in event_var(es_steamid)) then es kickid event_var(userid) "cafe account! if this was a mistake please post at www.n00bunlimited.net"
 //if ("STEAM_0:1:13488" in event_var(es_steamid)) then es kickid event_var(userid) "cafe account! if this was a mistake please post at www.n00bunlimited.net"
  
 
}
i hope you would consider continuing on this

thanks
sio
siosios is offline
V0gelz
Senior Member
Join Date: Jun 2004
Old 03-31-2008 , 21:04   Re: [REQ]removing cafe accounts.....
Reply With Quote #17

Try the first code i posted and tell me if it does anything. If not there is something realy wrong.
__________________
V0gelz is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 03-31-2008 , 21:10   Re: [REQ]removing cafe accounts.....
Reply With Quote #18

will do

what ill do is put my steam id in there minus a few digits and see what it does

Last edited by siosios; 03-31-2008 at 21:14.
siosios is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 03-31-2008 , 21:26   Re: [REQ]removing cafe accounts.....
Reply With Quote #19

nope didnt kick me

my steam id:
STEAM_0:1:13488560

the line i changed to use my steam id:
if(strlen(authid) == 8 && (StrEqual(authid, "134", 3)))

nothing else changed in anyway shape or form

Code:
#include <sourcemod>
#define PLUGIN_VERSION "0.1"
public Plugin:myinfo =
{
 name = "Anti Café",
 author = "V0gelz",
 description = "Anti Café",
 version = PLUGIN_VERSION,
 url = ""
};
public OnPluginStart()
{
}
public OnClientPostAdminCheck(client)
{
 decl String:authid[64];
 GetClientAuthString(client, authid, 63);
 new name[32];
 GetClientName(client,name,31);
 Format(authid, 19, authid[10]);

 //if the SteamID is 8 digits long and the first 3 characters equal "157" or "156"
 if(strlen(authid) == 8 && (StrEqual(authid, "134", 3)))
 {
  //kick them
  ServerCommand("kick #%i", GetClientUserId(client));
  PrintToServer("Player: %s  with steamid: %d has been kicked",name,authid);
 }
 return Plugin_Continue;
}

Last edited by siosios; 03-31-2008 at 21:31.
siosios is offline
V0gelz
Senior Member
Join Date: Jun 2004
Old 03-31-2008 , 22:04   Re: [REQ]removing cafe accounts.....
Reply With Quote #20

Code:
#include <sourcemod>
#define PLUGIN_VERSION "0.1"

public Plugin:myinfo =
{
	name = "Anti Café",
	author = "V0gelz",
	description = "Anti Café",
	version = PLUGIN_VERSION,
	url = ""
};

public OnClientPostAdminCheck(client)
{
	decl String:authid[64];
	GetClientAuthString(client, authid, 63);

	new name[32];
	GetClientName(client,name,31);

	Format(authid, 19, authid[10]);

	if(strlen(authid) == 8  && StrEqual(authid, "12456789", false) )
	{
		//ServerCommand("kick #%i", GetClientUserId(client));
		PrintToServer("Player: %s  with steamid: %s  with cafe ID has been kicked because of cafe account.",name,authid);
	}
}
Well the problem is the StrEqual, it searches for an exact number but in the amx code it can strip the rest of the number and hold the first 3. So it searches for the first 3 numbers. In StrEqual there isn't an option to do this.

I'm kinda tired, want to go to bed but maybe someone has the awnser for this.

Help the guy out ! :p

V0gelz
__________________
V0gelz 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 16:26.


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