View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-05-2009 , 06:36   Re: Bonus for spawn of player
Reply With Quote #6

You add really unecessary code, I would do something like :

Code:
public fwHamPlayerSpawnPost ( id ) {     if ( is_user_alive( id ) && get_pcvar_num ( pCvarEnable ) )     {         if ( get_pcvar_num ( pCvarHealth ) )         {             //         }                 if ( get_pcvar_num ( pCvarArmor ) )         {             //         }                 if ( get_pcvar_num ( pCvarMoney ) )         {             //         }     } }

Also even it's not a big deal, you can avoid to create var.
__________________
Arkshine is offline