View Single Post
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-19-2013 , 11:16   Re: Too Much Frags
Reply With Quote #2

Quote:
if(get_pcvar_num(cvar_mode) == 0)
else if(get_pcvar_num(cvar_mode) == 1)
else if(get_pcvar_num(cvar_mode) == 2)
Use case and switch instead of multiple if-statements.

PHP Code:
{
            return 
true
        

->

PHP Code:
          return true 
For one line you can use TAB instead of using brackets.

PHP Code:
new user_name[33
Do that in the function, not in global as you use it only there.

In stock is_user_overlimit(id)
PHP Code:
 return PLUGIN_CONTINUE 
->
PHP Code:
 return PLUGIN_HANDLED 
__________________

Last edited by Kia; 05-19-2013 at 11:19.
Kia is offline