Ok, so I edited it to make it kick by steamid. Now I put my steamid as the cvar, but whenever the round starts, I don't get kicked. I'm pretty sure It has to do something with the arrays firstid and authid, but I don't know what's wrong.
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "AutoSteamID Kicker"
#define VERSION "1.0"
#define AUTHOR "H3avY Ra1n"
public plugin_init() {
//Register Plugin
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("round_start", 2, "1=Round_Start")
register_cvar("amx_firstid", "none")
register_cvar("amx_secondid", "none")
register_cvar("amx_thirdid", "none")
register_cvar("amx_fourthid", "none")
}
public round_start(id)
{
new num
new players[32]
new firstid[32]
get_players(players, num)
for(new i; i<num; i++)
{
new player=players[i]
new userid=get_user_userid(player)
firstid=get_cvar_num("amx_firstid")
new authid[32]
get_user_authid(id, authid, 31)
if(firstid[11]==authid[11] && firstid[12]==authid[12])
{
server_cmd("kick #%s", userid)
}
}
}