Raised This Month: $ Target: $400
 0% 

Bomb Planted / T Win / CT Win


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 01-12-2012 , 12:04   Re: Bomb Planted / T Win / CT Win
Reply With Quote #1

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
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 21:01.


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