If you take it from the code Ven posted:
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_event("TextMsg", "event_drop", "bc", "2=#Game_bomb_drop")
register_event("TextMsg", "event_got", "b", "2=#Got_bomb")
}
public event_drop() {
new name[32]
read_data(3, name, 31)
new id = get_user_index(name)
//Get all terrorists
new players[32], playernum, a
get_players(players, playernum, "ce", "TERRORIST")
//Use a for loop to show all the messages
for(a = 0; a < playernum; a++)
{
//Check if it isn't the player who dropped the bomb
if(players[a] != id)
{
client_print(players[a], print_chat, "[AMX] %s dropped the bomb")
}
}
//Now give the dropper a personal message
client_print(id, print_chat, "[AMXX] You lost the bomb")
//To make sure original message isn't shown
return PLUGIN_HANDLED
}
public event_got(id) {
// same here :)
}
__________________