Raised This Month: $32 Target: $400
 8% 

[INC] ColorStatus


Post New Thread Reply   
 
Thread Tools Display Modes
enjoi.
Veteran Member
Join Date: Mar 2011
Old 09-28-2011 , 19:51   Re: [INC] ColorStatus
Reply With Quote #11

love it. great job
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
.:cs.stambeto:.
Senior Member
Join Date: Feb 2010
Location: Bulgaria
Old 10-14-2011 , 15:54   Re: [INC] ColorStatus
Reply With Quote #12

Good Job!
.:cs.stambeto:. is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 10-16-2011 , 03:11   Re: [INC] ColorStatus
Reply With Quote #13

nicely done!
Jacob is offline
doondook
Member
Join Date: Dec 2010
Old 10-16-2011 , 17:25   Re: [INC] ColorStatus
Reply With Quote #14

Bug or not, but after every execution of makeStatusText it logs a message about admin login in HLDS console.

And it changes nickname (to unnamed) when I'm dead (I used a loop task for updating status)

Btw, nice idea!

Try it:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorstatus.inc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "DarkGL"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
set_task(1.0"CountDown"9123""0"b")
    
    
initColorStatus()
}


public 
CountDown(){

    for(new 
id=1id<33id++){
        if(
is_user_bot(id) || !is_user_alive(id))
            continue
        
makeStatusText(idGREY_STATUS0.0"AAA")
    }
    
    return 
PLUGIN_HANDLED;

In this case I get some bugs with scoreboard (TAB). And try without alive check.

Last edited by doondook; 10-16-2011 at 17:41.
doondook is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 12-13-2011 , 07:52   Re: [INC] ColorStatus
Reply With Quote #15

How to use this fgv in oder position?
__________________
kiki33hun is offline
rastafari
Senior Member
Join Date: May 2011
Old 11-21-2012 , 01:10   Re: [INC] ColorStatus
Reply With Quote #16

I tried this, but somehow its not working, what am I doing wrong?
PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_Spawn,  "player""FwdHamPlayerSpawn"1)
    
initColorStatus();
}
public 
FwdHamPlayerSpawn(id)
{
    if (
is_user_alive(id))
        
set_task(1.0"func"id);
}

public 
func(id
{
    switch( 
cs_get_user_teamid ) )
    {
        case 
CS_TEAM_T:
        
makeStatusText(id,RED_STATUS,0.0,"I'm terror");
        case 
CS_TEAM_CT:
        
makeStatusText(id,BLUE_STATUS,0.0,"I'm CT");
    }

__________________
rastafari is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 08-18-2014 , 18:36   Re: [INC] ColorStatus
Reply With Quote #17

When I put in my plugin on plugin_init

Code:
initColorStatus();
Appears this error:
Code:
// C:\Program Files (x86)\AMX Mod X\files\base\scripting\include\colorstatus.inc(29) : error 017: undefined symbol "register_forward"
Do you know why?

obs. Without initColorStatus(); the plugin compiles without any error
__________________

Last edited by skz; 08-18-2014 at 18:36.
skz is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 08-20-2014 , 11:38   Re: [INC] ColorStatus
Reply With Quote #18

I'm not sure about that but I want to ask.
Is it OK to hard code the maximum players count?
I am thinking that maybe if server can handle at most 12 players then other entities might use IDs such 20 or 25.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 01-26-2015 , 11:26   Re: [INC] ColorStatus
Reply With Quote #19

I'm planning little update for this so stay tuned
__________________
DarkGL is offline
artist
Member
Join Date: Nov 2013
Old 12-15-2015 , 01:27   Re: [INC] ColorStatus
Reply With Quote #20

Quote:
Originally Posted by skz View Post
When I put in my plugin on plugin_init

Code:
initColorStatus();
Appears this error:
Code:
// C:\Program Files (x86)\AMX Mod X\files\base\scripting\include\colorstatus.inc(29) : error 017: undefined symbol "register_forward"
Do you know why?

obs. Without initColorStatus(); the plugin compiles without any error
#include <fakemeta>
artist is offline
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 00:42.


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