Raised This Month: $ Target: $400
 0% 

[Help]Win round hud msg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-11-2011 , 04:36   [Help]Win round hud msg
Reply With Quote #1

i have a code that make win round hud but i doesnt work why?

PHP Code:
public plugin_init() {
    
register_plugin("Jumper mod""1.0""2Reason2Kill");

    
register_logevent("Event_RoundStart"2"1=Round_Start");
    
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")

public 
message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{    
    static 
message[32]
    
get_msg_arg_string(2messagecharsmax(message))
        
    if(
equal(message"#Terrorists_Win"))
    {
        
set_hudmessage20000, -1.00.4043.08.00.00.010);
        
show_hudmessage(0"The Jumpers Survival!")  
    }
    else if(
equal(message"#CTs_Win"))
    {
        
set_hudmessage00200, -1.00.4043.08.00.00.010);
        
show_hudmessage(0"The Paladins Killed Every Jumper!"
    }

This is 2 my jumper mod
2reason2kill is offline
Dr7sTyLe
Senior Member
Join Date: Dec 2010
Old 06-11-2011 , 04:45   Re: [Help]Win round hud msg
Reply With Quote #2

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

public plugin_init() {
    
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")
}

public 
message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{    
    static 
message[32]
    
get_msg_arg_string(2messagecharsmax(message))
    
    if(
equal(message"#Terrorists_Win"))
    {
        
set_hudmessage20000, -1.00.4043.08.00.00.010);
        
show_hudmessage(0"The Jumpers Survival!"
    }
    else if(
equal(message"#CTs_Win"))
    {
        
set_hudmessage00200, -1.00.4043.08.00.00.010);
        
show_hudmessage(0"The Paladins Killed Every Jumper!"
    }

it works great in my server
Dr7sTyLe is offline
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-11-2011 , 15:13   Re: [Help]Win round hud msg
Reply With Quote #3

Quote:
Originally Posted by Dr7sTyLe View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

public plugin_init() {
    
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")
}

public 
message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{    
    static 
message[32]
    
get_msg_arg_string(2messagecharsmax(message))
    
    if(
equal(message"#Terrorists_Win"))
    {
        
set_hudmessage20000, -1.00.4043.08.00.00.010);
        
show_hudmessage(0"The Jumpers Survival!"
    }
    else if(
equal(message"#CTs_Win"))
    {
        
set_hudmessage00200, -1.00.4043.08.00.00.010);
        
show_hudmessage(0"The Paladins Killed Every Jumper!"
    }

it works great in my server
Thank u

i dont know why it didnt work....

Last edited by 2reason2kill; 06-11-2011 at 15:45.
2reason2kill 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 23:34.


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