PHP Code:
// Credits to Connor because Replace MSG
#include <amxmodx>
#include <csx>
public plugin_init()
{
register_plugin("BombInfo", "0.0.5", "Freestyle")
register_message(get_user_msgid("TextMsg"), "Message_TextMsg")
}
public Message_TextMsg(iMsgId, iMsgDest, id)
{
if( !id && get_msg_arg_int(1) == print_center )
{
new szMessage[15]
get_msg_arg_string(2, szMessage, charsmax(szMessage))
if( equal(szMessage, "#Bomb_Planted") )
{
return PLUGIN_HANDLED
}
if( equal(szMessage, "#Bomb_Defused") )
{
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
public bomb_defused(Defuser)
{
new NickName[32]
get_user_name(Defuser, NickName, charsmax(NickName))
set_hudmessage(random(256), random(256), random(256), 0.42, 0.3)
show_hudmessage(0, "%s defused the bomb.", NickName)
}
public bomb_defusing(Defuser)
{
new NickName[32]
get_user_name(Defuser, NickName, charsmax(NickName))
set_hudmessage(0, 0, 255, 0.42, 0.3)
show_hudmessage(0, "%s is Defusing The bomb", NickName)
}
public bomb_planted(Planter)
{
new NickName[32]
get_user_name(Planter, NickName, charsmax(NickName))
set_hudmessage(random(256), random(256), random(256), .channel=-1)
show_hudmessage(0, "%s planted the bomb.", NickName)
}
public bomb_planting(Planter)
{
new NickName[32]
get_user_name(Planter, NickName, charsmax(NickName))
set_hudmessage(255, 0, 0, .channel=-1)
show_hudmessage(0, "%s is planting The bomb", NickName)
}
public bomb_explode(Planter)
{
new NickName[32]
get_user_name(Planter, NickName, charsmax(NickName))
set_hudmessage(255, 0, 0, .channel=-1)
show_hudmessage(0, "Bomb Explode! Thanks to %s", NickName)
}
Sorry but I need to put this plugin works
try this please
__________________