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;
}