hello 👋
I still facing some problems with cooldown in every zombie class, if I add this code down below it will not work and and just spam client_print for some reason untill it finish
I just need a little hand for this, and someone please help me and show me if iam doing something wrong
here is my codes
----->
PHP Code:
new Float:g_lastusetime[33]
new cvar_class_cooldown
PHP Code:
cvar_clasd_cooldown = register_cvar("zp_class_cooldown", "10")
PHP Code:
if (get_gametime() - g_lastusetime[ id ] < get_pcvar_float(cvar_class_cooldown))
{
client_print(id, print_chat, "Please wait for %d seconds.", get_pcvar_num(cvar_class_cooldown));
return FMRES_IGNORED
}