Raised This Month: $ Target: $400
 0% 

[HELP] Permanent chat message (on some possition)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-22-2014 , 19:56   Re: [HELP] Permanent chat message (on some possition)
Reply With Quote #4

You would show like you would any other message.
Try the code below, you will need the colorstatus.inc from this thread. It should give an idea of how to use it.

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <colorstatus.inc>

new g_iMax;

public 
plugin_init() {
    
    
set_task(1.0"Teams"0""0"b")
    
    
g_iMax get_maxplayers();
    
initColorStatus();
}

public 
TeamsiPlayer )
{

    for(new 
iPlayer 1iPlayer <= g_iMaxiPlayer++ ) 
{
    if ( !
is_user_aliveiPlayer ) || is_user_botiPlayer ) )
        continue;
    
    switch ( 
get_user_teamiPlayer ) )
    {
        case 
CS_TEAM_T:
        {
            
makeStatusText(iPlayer,RED_STATUS,0.0," : [Terrorist]" );
        }
        case 
CS_TEAM_CT:
        {
            
makeStatusText(iPlayer,BLUE_STATUS,0.0," : [Counter Terrorist]" );
        }
    }
}  


__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 06-22-2014 at 20:00.
wickedd is offline
 



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:15.


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