Witam,
Jak zrobic w tym pluginie aby ten napis pojawial sie co 3 rundy a nie co kazdą
Interp wszystkich graczy zostal zmieniony na 0.01.
#include <amxmodx> #include <amxmisc> #include <colorchat> #define PLUGIN "Interp Changer" #define VERSION "1.4" #define AUTHOR "kEO." public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("HLTV", "interp_round", "a", "1=0", "2=0") register_clcmd("say /interp player", "admin") register_clcmd("say /interp", "interp") register_clcmd("say /interpall", "interpall") register_clcmd("say_team /interp player", "admin") register_clcmd("say_team /interp", "interp") register_clcmd("say_team /interpall", "interpall") register_clcmd("player", "admin") register_clcmd("interp", "interp") register_clcmd("interpall", "interpall") set_task(60.0, "interpalltask", _, _, _, "b") } public client_connect(id) { new name[32] ; console_cmd (id,"rate 25000") server_cmd("wait") console_cmd (id,"cl_updaterate 101") server_cmd("wait") console_cmd (id,"cl_cmdrate 101") server_cmd("wait") console_cmd (id,"ex_interp 0.01") get_user_name(id,name,31) } public interp_round() { console_cmd (0,"rate 25000") server_cmd("wait") console_cmd (0,"cl_updaterate 101") server_cmd("wait") console_cmd (0,"cl_cmdrate 101") server_cmd("wait") console_cmd (0,"ex_interp 0.01") ColorChat (0, GREEN, "Interp wszystkich graczy zostal zmieniony na 0.01.") } public interp(id) { console_cmd (id,"rate 25000") server_cmd("wait") console_cmd (id,"cl_updaterate 101") server_cmd("wait") console_cmd (id,"cl_cmdrate 101") server_cmd("wait") console_cmd (id,"ex_interp 0.01") } public interpall(id) { if(is_user_admin(id)) { new players[32],count ; new name[32] ; get_players(players,count) console_cmd (0,"rate 25000") server_cmd("wait") console_cmd (0,"cl_updaterate 101") server_cmd("wait") console_cmd (0,"cl_cmdrate 101") server_cmd("wait") console_cmd (0,"ex_interp 0.01") get_user_name(id,name,31) client_print (0, print_chat, "Interp wszystkich graczy zostal zmieniony, przez %s na 0.01.", name) } else { client_print (id, print_chat, "Komenda niedostepna dla zwyklego gracza.") } } public admin(id) { if(get_user_flags(id) & ADMIN_BAN) { new arg1[32] read_argv(1, arg1, 31) new player = cmd_target(id, arg1, 1) console_cmd (id,"rate 25000") server_cmd("wait") console_cmd (id,"cl_updaterate 101") server_cmd("wait") console_cmd (id,"cl_cmdrate 101") server_cmd("wait") console_cmd (id,"ex_interp 0.01") } else client_print(id,print_chat,"Tylko admin moze uzywac tej komendy") } public interpalltask(id) { new players[32],count ; get_players(players,count) console_cmd (id,"rate 25000") server_cmd("wait") console_cmd (id,"cl_updaterate 101") server_cmd("wait") console_cmd (id,"cl_cmdrate 101") server_cmd("wait") console_cmd (id,"ex_interp 0.01") }