Raised This Month: $ Target: $400
 0% 

End Round Message.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-21-2009 , 00:14   Re: End Round Message.
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Try this :


Code:
</p><p> #include <amxmodx></p><p>&nbsp;</p><p> new const gNewTerroristMsg[] = "Zombie Win";</p><p> new const gNewCTMsg [] = "Human Win";</p><p>&nbsp;</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>&nbsp;</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>&nbsp;</p><p> static Message[ sizeof TerroristMsg + 1 ];</p><p> get_msg_arg_string( 2, Message, charsmax( Message ) );</p><p>&nbsp;</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.
zombieplague is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode