Hi.
I don't see why you use fakemeta ( no it won't be more efficient ) instead of cstrike ( since it's a plugin only for cs ). Using cstrike would be more faster.
- If you keep the use of fakemeta, cache the value of
get_user_msgid("Money")
- And like anakin_strike has said, you should use macro for theses functions.
- Try to avoid using return when you don't need. You add extra code for nothing. I mean as example :
Code:
public hostage_touched()
{
if(get_pcvar_num(enabled))
{
new id = get_loguser_index();
new money = get_pcvar_num(cvar_money2)
if( money ) { fm_set_user_money(id,fm_get_user_money(id) + money,1); }
}
}