AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   End Round Message. (https://forums.alliedmods.net/showthread.php?t=99589)

Mr.Noobie 08-07-2009 08:33

End Round Message.
 
Is it possible to change the "Counter terrorist win", "Terrorist win" words

to

"Humans win" or "Zombie wins" ??

Can someone help me.

crazyeffect 08-07-2009 08:55

Re: End Round Message.
 
Maybe this?

http://forums.alliedmods.net/showthr...Message+Change

Arkshine 08-07-2009 10:26

Re: End Round Message.
 
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 );         }     }

xPaw 08-07-2009 10:52

Re: End Round Message.
 
what about set_msg_arg_string ?

Arkshine 08-07-2009 11:04

Re: End Round Message.
 
If I'm right it works only with pre-defined message but Im' going to test to be sure.

Arkshine 08-07-2009 11:09

Re: End Round Message.
 
It seems to work, plugin modified.

xPaw 08-07-2009 12:27

Re: End Round Message.
 
:-)

zombieplague 11-21-2009 00:14

Re: End Round Message.
 
Quote:

Originally Posted by Arkshine (Post 892565)
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.

Arkshine 11-21-2009 04:05

Re: End Round Message.
 
Are you sure the plugin is still running ?

zombieplague 11-21-2009 04:13

Re: End Round Message.
 
Yeah it running but i don't see the message.


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

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