AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help (https://forums.alliedmods.net/showthread.php?t=184007)

aNNNak1N 04-29-2012 14:49

help
 
hello, can modify posts at the end of the round, those with Counter-Terrorists and Terrorists win? to be colored?

http://postimage.org/image/sojabgj0t/

Bilal Pro 04-29-2012 18:30

Re: help
 
Just use an normal Hudmessage,
PHP Code:

set_hudmessage(id"message"


Napoleon_be 04-29-2012 19:33

Re: help
 
PHP Code:

#include <amxmodx>
#include <cstrike>

#define VERSION "1.0"


public plugin_init() {
    
register_plugin("ShowHudMessage"VERSION"NapoleoN#")
    
    
register_logevent("RoundEndEvent"2"1=Round_End")
}

public 
RoundEndEvent(id) {
    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {
        
set_hudmessage(random(255), random(255), random(255), -1.00.3506.012.00.10.24)
        
show_hudmessage(0"Counter-Terrorists Won!")
    }
    else if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T) {
        
set_hudmessage(random(255), random(255), random(255), -1.00.3506.012.00.10.24)
        
show_hudmessage(0"Terrorists Won!")
    }


Untested: Tell me if bugs are found.

aNNNak1N 04-30-2012 04:03

Re: help
 
Quote:

Originally Posted by Napoleon_be (Post 1698988)
PHP Code:

#include <amxmodx>
#include <cstrike>

#define VERSION "1.0"


public plugin_init() {
    
register_plugin("ShowHudMessage"VERSION"NapoleoN#")
    
    
register_logevent("RoundEndEvent"2"1=Round_End")
}

public 
RoundEndEvent(id) {
    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {
        
set_hudmessage(random(255), random(255), random(255), -1.00.3506.012.00.10.24)
        
show_hudmessage(0"Counter-Terrorists Won!")
    }
    else if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T) {
        
set_hudmessage(random(255), random(255), random(255), -1.00.3506.012.00.10.24)
        
show_hudmessage(0"Terrorists Won!")
    }


Untested: Tell me if bugs are found.

not working.

Devil259 04-30-2012 07:13

Re: help
 
Code:
#include < amxmodx > public plugin_init( ) {     register_event( "SendAudio", "eventTerroristWin", "a", "2=%!MRAD_terwin" );     register_event( "SendAudio", "eventCtWin", "a", "2=%!MRAD_ctwin" ); } public eventTerroristWin( ) {     set_hudmessage( random( 255 ), random( 255 ), random( 255 ), -1.0, 0.35, 0, 6.0, 12.0, 0.1, 0.2, -1 );     show_hudmessage( 0, "Terrorists Won!" );         return PLUGIN_HANDLED; } public eventCtWin( ) {     set_hudmessage( random( 255 ), random( 255 ), random( 255 ), -1.0, 0.35, 0, 6.0, 12.0, 0.1, 0.2, -1 );     show_hudmessage( 0, "Counter-Terrorists Won!" );         return PLUGIN_HANDLED; }

rak 04-30-2012 07:36

Re: help
 
Quote:

Originally Posted by Napoleon_be (Post 1698988)
PHP Code:

#include <amxmodx>
#include <cstrike>

#define VERSION "1.0"


public plugin_init() {
    
register_plugin("ShowHudMessage"VERSION"NapoleoN#")
    
    
register_logevent("RoundEndEvent"2"1=Round_End")
}

public 
RoundEndEvent(id) {
    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {
        
set_hudmessage(random(255), random(255), random(255), -1.00.3506.012.00.10.24)
        
show_hudmessage(0"Counter-Terrorists Won!")
    }
    else if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T) {
        
set_hudmessage(random(255), random(255), random(255), -1.00.3506.012.00.10.24)
        
show_hudmessage(0"Terrorists Won!")
    }


Untested: Tell me if bugs are found.

HAHAHAHAHAHAHAHHA THAT'S FUNNY HAHAHAHAHAH

PHP Code:

#include <amxmodx>

#define PLUGIN "Change win msg"
#define VERSION "1.0"
#define AUTHOR "Stereo"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_message(get_user_msgid("TextMsg"), "Msg_Change")
}
public 
Msg_Change(msg_idmsg_destid)
{
    if (
get_msg_args() > 1)
    {
        static 
message[32
        
get_msg_arg_string(2messagecharsmax(message)) 
        
        if(
equal(message"#Terrorists_Win")) 
        {
            
set_hudmessage(210000.050.45120.010.00.50.154);
            
show_hudmessage(0"TT WIN");
            return 
PLUGIN_HANDLED
        
}
        else if(
equal(message"#CTs_Win")) 
        {
            
set_hudmessage(210000.050.45120.010.00.50.154);
            
show_hudmessage(0"CT WIN");
            return 
PLUGIN_HANDLED
        
}
    } 
    return 
PLUGIN_CONTINUE



aNNNak1N 04-30-2012 08:24

Re: help
 
@Napoleon: don't work
@Devil: occur together and can not see well, appear one over the other
@Rak: appears on the other side ... not in place

rak 04-30-2012 08:55

Re: help
 
set_hudmessage(random(255), random(255), random(255), -1.0, 0.25, 1, 20.0, 10.0, 0.5, 0.15, 4);

aNNNak1N 04-30-2012 09:38

Re: help
 
thanks, work :)


All times are GMT -4. The time now is 07:45.

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