Mam problem ze zrobieniem pluginu. Chodzi mi o to, żeby zablokować komendę "reconnect" i "retry" dla TT.
Próbowałem to zrobić, ale jakoś mi nie wychodzi.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "NORetryTT" #define VERSION "1.0" #define AUTHOR "mas22" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_concmd("retry", "cmdRetry"); register_concmd("reconnect", "cmdRetry"); } public cmdRetry(id) { if(get_user_team(id)!=2) { console_print(id, "Ta komenda nie jest dostepna dla terrorystow!!!"); client_print(id, print_chat, "Ta komenda nie jest dostepna dla terrorystow!!!"); } return PLUGIN_HANDLED; }
Myślę, że chyba będzie trzeba zrobić tak, żeby sprawdzało team co rundę, ale nie wiem.