hey guys i know what this code does: it basically says on current weapon set the user speed, which is zombie to a previously set cvar
but what i do not get is how this can cause errors and is there a way around this code to make the server realize the user and set the speed according to a predefinied variable
here is the code snippet
PHP Code:
public event_cur_weapon(id) {
if(!is_user_alive(id) || !is_user_connected(id))
return PLUGIN_CONTINUE
if(g_zombie[id])
{
set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))
}
return PLUGIN_CONTINUE
}
__________________