PHP Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "Steam Kontrol"
#define VERSION "1.0"
#define AUTHOR "xSav"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
if(is_user_steam(id))
{
//Connect with steam
}
}
stock bool:is_user_steam(id)
{
static dp_pointer
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id)
server_exec()
return (get_pcvar_num(dp_pointer) == 2) ? true : false
}
return false
}