/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "speed400" #define VERSION "1.0" #define AUTHOR "magrr." public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("HLTV","speed","a", "1=0", "2=0") register_cvar("amx_speed_style", "1") } public speed() { new players[32],count; get_players(players,count) new style = get_cvar_num("amx_speed_style") if(style == 1 ) { for (new i = 1; i <= count; i++) console_cmd (i,"cl_forwardspeed 400; wait; wait; cl_backspeed 400") } else { for (new i = 1; i <= count; i++) { console_cmd (i,"cl_forwardspeed 400") server_cmd("wait") console_cmd (i,"cl_backspeed 400") } } }
Problem polega na tym że ten plugin ustawia wszystkim graczom cl_forwardspeed i backspeed 400 co runde, lecz w trakcie można sobie zmienić na dowolną ilość ;/
Czy da się zapobiedz zmianie tego ustawienia (z domyślnego=400 na inne) przez czały czas, a nie tylko co początek kolejnych rund?