Raised This Month: $12 Target: $400
 3% 

Bomb Planted / T Win / CT Win


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 01-11-2012 , 10:10   Bomb Planted / T Win / CT Win
Reply With Quote #1

Hi, i would like to change the message :

"The bomb has been planted !"
"Counter-Terrorists Win !"
"Terrorists Win !"

I looked in .sma and multilanguage files but i could not find them anywhere. It is a plugin needed?

I know a lot of people looking for this.

Regards, bLacK-bLood.
__________________
We all live under the same sky but we have different horizons.

Last edited by bLacK-bLooD; 01-11-2012 at 10:11.
bLacK-bLooD is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-11-2012 , 14:08   Re: Bomb Planted / T Win / CT Win
Reply With Quote #2

http://forums.alliedmods.net/showpos...71&postcount=6
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 01-12-2012 , 07:50   Re: Bomb Planted / T Win / CT Win
Reply With Quote #3

It's a hud message. I just want text message as it's default "Counter-Terrorists Win !"

Not HUD, text.
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-12-2012 , 12:04   Re: Bomb Planted / T Win / CT Win
Reply With Quote #4

Try this then:

PHP Code:
#include <amxmodx>

#define VERSION "0.0.1"
#define PLUGIN ""

new Trie:g_tReplacements

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
register_message(get_user_msgid("TextMsg"), "Message_TextMsg")

    
g_tReplacements TrieCreate()
    
TrieSetString(g_tReplacements"#Bomb_Planted",        "The Bomb Has Been Planted")
    
TrieSetString(g_tReplacements"#CTs_Win",            "Counter-Terrorists Win!")
    
TrieSetString(g_tReplacements"#Terrorists_Win",    "Terrorists Win!")
}

public 
Message_TextMsg(iMsgIdiMsgDestid)
{
    if( !
id && get_msg_arg_int(1) == print_center )
    {
        new 
szMessage[32]
        
get_msg_arg_string(2szMessagecharsmax(szMessage))
        if( 
TrieGetString(g_tReplacementsszMessageszMessagecharsmax(szMessage)) )
        {
            
client_print(0print_center"%s"szMessage)
            return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 01-13-2012 , 04:25   Re: Bomb Planted / T Win / CT Win
Reply With Quote #5

Great ! It's working now.

Where can i find those "#Bomb_Planted" things?

I found them in resource/cstrike_english.txt , but some of them aren't working, like :

"#Game_bomb_drop"
"#Carry_Anymore"
"#Name_change_at_respawn"

etc. Why?
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 01-15-2012 , 04:18   Re: Bomb Planted / T Win / CT Win
Reply With Quote #6

Still can't figure it out guys.
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
Old 02-11-2013, 01:57
THE DARK KNIGHT
This message has been deleted by THE DARK KNIGHT.
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-11-2013 , 22:47   Re: Bomb Planted / T Win / CT Win
Reply With Quote #7

@bibu, use set_msg_arg_string instead of additional client_print
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Reply


Thread Tools
Display Modes

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 20:54.


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