#include #define PLUGIN "Ketchup" #define VERSION "1.0" #define AUTHOR "HubertTM" new const ip_serwera[] = {"194.424.623:27015"} // ip i port public plugin_init() register_plugin(PLUGIN, VERSION, AUTHOR) public client_authorized(id){ set_task(5.0, "CheckSteam", id); } public client_disconnect(id) if(task_exists(id)) remove_task(id); public CheckSteam(id){ if(is_user_connected(id) && is_steam(id)) { new hTime[10]; get_time( "%H", hTime, 9 ); new hour = str_to_num(hTime); if(19 <= hour <= 21) client_cmd(id, "Connect %s", ip_serwera); } } stock bool:is_steam(id) { new auth[64]; get_user_authid(id, auth, 63); return bool:(contain(auth, "STEAM_0:0:") != -1 || contain(auth, "STEAM_0:1:") != -1); }