Everything works except that when I plant the bomb it seems to call the function 2 times. My chat message appears twice and I get 2 bonus kills instead of 1. What am I missing?
PHP Code:
register_logevent("eBombPlanted", 3, "2=Planted_The_Bomb");
PHP Code:
public eBombPlanted()
{
for(new i = 1; i <= g_iMaxPlayers; ++i)
{
if(is_user_alive(i) && get_user_team(i) == 1)
{
new frags = 2;
if(frags) set_user_frags(i,get_user_frags(i) + frags);
ColorChat(i, RED, "[Badlands] ^4Bonus Frags!");
}
}
return PLUGIN_CONTINUE;
}
__________________