i check if the player have the BOOL in TRUE , he have the power when is attacking a enemy .EX
PHP Code:
[ ... Takedamage ... ]
if(g_thunder[attacker])
{
// do stuff
}
if(g_citizen[attacker])
{
// do stuff
}
when the player drop the weapon with power , the booleans are in false.
my problem is , i have more bools , and i hate have more bools in the plugin , therefore i'm searching a optimizate this.
if you doesn't understand , post please.
__________________