I noticed another issue with my edited code above. I was testing with bots and noticed that when the bot planted the bomb I was able to see the "Bonus" chat message. What needs to be changed to make the message only visible to the planter.
EDIT: I just tested with a human player and have the same issue.
Using this code along with Ven's stock solved the problem.
PHP Code:
public eBombPlanted()
{
new id = get_loguser_index();
if(is_user_alive(id) && get_user_team(id) == 1)
{
new frags = 2;
if(frags) set_user_frags(id,get_user_frags(id) + frags);
ColorChat(id, RED, "[Badlands] ^4Bonus Frags!");
}
return PLUGIN_CONTINUE;
}
__________________