PHP Code:
g_lastusetime[id] = get_gametime();
if (get_gametime() - g_lastusetime[id] < get_pcvar_float(cvar_climb_cooldown))
{
client_print(id, print_chat, "Please wait for %d seconds.", get_pcvar_num(cvar_climb_cooldown));
return FMRES_IGNORED
}
g_lastusetime[id] = get_maxplayers( )
The problem is this whole section though
PHP Code:
if (get_gametime() - g_lastusetime[id] < get_pcvar_float(cvar_climb_cooldown))
{
client_print(id, print_chat, "Please wait for %d seconds.", get_pcvar_num(cvar_climb_cooldown));
return FMRES_IGNORED
}
g_lastusetime[id] = get_gametime();
Should be just like this
__________________