Raised This Month: $ Target: $400
 0% 

End Round Message.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-07-2009 , 08:33   End Round Message.
Reply With Quote #1

Is it possible to change the "Counter terrorist win", "Terrorist win" words

to

"Humans win" or "Zombie wins" ??

Can someone help me.
Mr.Noobie is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-07-2009 , 08:55   Re: End Round Message.
Reply With Quote #2

Maybe this?

http://forums.alliedmods.net/showthr...Message+Change
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-07-2009 , 10:26   Re: End Round Message.
Reply With Quote #3

Try this :

Code:
    #include <amxmodx>       new const gNewTerroristMsg[] = "Zombie Win";     new const gNewCTMsg       [] = "Human Win";       public plugin_init()     {         register_plugin( "Custom Terrorist Win Sound/Message" , "1.0", "Arkshine" );         register_message( get_user_msgid( "TextMsg" ) ,"Message_TextMsg" );     }         public Message_TextMsg( const MsgId, const MsgDest, const MsgEntity )     {         static const TerroristMsg[] = "#Terrorists_Win";         static const CTMsg       [] = "#CTs_Win";             static Message[ sizeof TerroristMsg + 1 ];         get_msg_arg_string( 2, Message, charsmax( Message ) );         if ( equal( Message, TerroristMsg ) )         {             set_msg_arg_string( 2, gNewTerroristMsg );         }         else if ( equal( Message, CTMsg ) )         {             set_msg_arg_string( 2, gNewCTMsg );         }     }
__________________

Last edited by Arkshine; 08-07-2009 at 11:09.
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-07-2009 , 10:52   Re: End Round Message.
Reply With Quote #4

what about set_msg_arg_string ?
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-07-2009 , 11:04   Re: End Round Message.
Reply With Quote #5

If I'm right it works only with pre-defined message but Im' going to test to be sure.
__________________
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-07-2009 , 11:09   Re: End Round Message.
Reply With Quote #6

It seems to work, plugin modified.
__________________
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-07-2009 , 12:27   Re: End Round Message.
Reply With Quote #7

:-)
__________________
xPaw is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-21-2009 , 00:14   Re: End Round Message.
Reply With Quote #8

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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-21-2009 , 04:05   Re: End Round Message.
Reply With Quote #9

Are you sure the plugin is still running ?
__________________
Arkshine is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-21-2009 , 04:13   Re: End Round Message.
Reply With Quote #10

Yeah it running but i don't see the message.
zombieplague is offline
Reply



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