minmodels no steam
her0p
30.08.2012
Any way to make this plugin also for non steam, if not possible could be done to avoid non steam kicked and steam kicked
#define PLUGIN "Minmodel Kicker" #define VERSION "1.0" #include <amxmodx> public client_putinserver(id) { if(!task_exists(id)) { set_task(10.0,"minmodels",id); } } public client_disconnect(id) { remove_task(id); } public minmodels(id) { if(!is_user_connected(id)) { return; } query_client_cvar(id,"cl_minmodels","results"); set_task(10.0,"minmodels",id); } public results(id, const cvar[], const value[]) { new name[32] if(equali(cvar,"cl_minmodels") && str_to_num(value)) { server_cmd("kick #%d ^"cl_minmodels 1 is not allowed on this server^"",get_user_userid(id)); // Set hud message: Red, centered, autochanneled set_hudmessage(255, 0, 0, -1, -1, 0, 2.0, 6.0, 0.8, 0.8, -1) // Get user's name get_user_name(id, name, 31) // Show hud message show_hudmessage(0,"Player (%s) kicked due to cl_minmodels = 1", name) } }
Kubaczek <3
01.09.2012
Yes. It is possible. Using dproto cvars you need to detect is user steam. If user is steam then use query_client_cvar, else you must use client_cmd in 1 sec task.
her0p
02.09.2012
Yes. It is possible. Using dproto cvars you need to detect is user steam. If user is steam then use query_client_cvar, else you must use client_cmd in 1 sec task.
Can you help me convert this plugin to no steam