I would like to have some steamids.ini file where i could write a list of available steam id's. If player connects to server with steam id which is not i my steamids.ini he would be kicked.
E.g. of steamids.ini:
Quote:
STEAM_0:1:111111111
STEAM_0:1:222222222
STEAM_0:1 33333333
etc...
|
I wrote a code which would do pretty much what i want but problem is i don't know how to integrate all that .INI file thing.
PHP Code:
#include <amxmodx>
new const PLUGIN[] = "STEAM ID CHECKER"
new const VERSION[] = "1.0"
new const AUTHOR[] = "me, i guess :O"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
new authid[33]
get_user_authid(id, authid, charsmax(authid))
if(!(equali(authid, "STEAM_0:1:111111111")))
{
set_task(10.0, "delay_kick", id)
}
}
public client_disconnect(id)
{
if(task_exists(id))
remove_task(id)
}
public delay_kick(id)
{
server_cmd("kick #%d", get_user_userid(id))
}
Later on i will upgrade my code by showing message to players who are going to be kick like "You are going to be kick in X sec becouse missmatch of steam id!" or something like that but that's not the priority now.