Quote:
Originally Posted by Bladell
I think that is because of podbot module...
Code:
public plugin_init() {
set_task(1.0, "check_cvar", _, _, _, "b")
}
public check_cvar() {
new i;
if(get_cvar_num("sv_maxspeed") <= 100)
i++;
if(i>=30)
server_cmd("amx_map de_dust2")
}
Should work, right?
|
No, because i will always be 0 at the start of the check. Move i to be a global variable and then it will work. Though, you should use PCVARs and reset i to 0 when it detects that it is higher than 100
__________________