This is spme optimizations but there are many more that could be done.
PHP Code:
case #:
{
switch (get_pcvar_num(limits))
{
case 1:
{
if (<color>_count >= get_pcvar_num(<letter>limit))
{
set_task(0.2, "showPowersMenu", id)
client_print(id,print_chat,"%L", id, "REACHED_LIMIT")
}
if (<color>_count < get_pcvar_num(<letter>limit))
{
make_user_<Color>(id)
}
}
case 0:
{
make_user_<Color>(id)
}
}
}
PHP Code:
case #:
{
if (get_pcvar_num(limits) && <color>_count >= get_pcvar_num(<letter>limit))
{
showPowersMenu(id)
client_print(id,print_chat,"%L", id, "REACHED_LIMIT")
}
else
{
make_user_<Color>(id)
}
}
Oh, by the way, if you add something you should test it before posting it.
__________________