 |
|
Veteran Member
|

11-21-2009
, 00:14
Re: End Round Message.
|
#4
|
Quote:
Originally Posted by Arkshine
Try this :
Code:
</p><p> #include <amxmodx></p><p> </p><p> new const gNewTerroristMsg[] = "Zombie Win";</p><p> new const gNewCTMsg [] = "Human Win";</p><p> </p><p> public plugin_init()</p><p> {</p><p> register_plugin( "Custom Terrorist Win Sound/Message" , "1.0", "Arkshine" );</p><p> register_message( get_user_msgid( "TextMsg" ) ,"Message_TextMsg" );</p><p> }</p><p> </p><p> public Message_TextMsg( const MsgId, const MsgDest, const MsgEntity )</p><p> {</p><p> static const TerroristMsg[] = "#Terrorists_Win";</p><p> static const CTMsg [] = "#CTs_Win";</p><p> </p><p> static Message[ sizeof TerroristMsg + 1 ];</p><p> get_msg_arg_string( 2, Message, charsmax( Message ) );</p><p> </p><p> if ( equal( Message, TerroristMsg ) )</p><p> {</p><p> set_msg_arg_string( 2, gNewTerroristMsg );</p><p> }</p><p> else if ( equal( Message, CTMsg ) )</p><p> {</p><p> set_msg_arg_string( 2, gNewCTMsg );</p><p> }</p><p> }</p><p>
|
Arkshine few days this plugin working fine. But i don't know why it stop working. The message doesn't appear anymore. I didnt do anything to the plugin.
|
|
|
|