Raised This Month: $ Target: $400
 0% 

Colored icon for c4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-14-2011 , 21:05   Re: Colored icon for c4
Reply With Quote #4

PHP Code:
    RegisterHam(Ham_Spawn"player""CBasePlayer_Spawn_Post"true)
}

public 
CBasePlayer_Spawn_Post(id)
{
    if( 
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T )
    {
        
give_item(id"weapon_c4")
        
cs_set_user_plant_ext(id112552550)
        
cs_set_user_submodel(id1)
    }
}

cs_set_user_plant_ext(indexplant 1showbombicon 1r=0g=160b=0)
{
    if( !
plant || !showbombicon || (!&& !&& g==160) )
    {
        return 
cs_set_user_plant(indexplantshowbombicon)
    }

    if( 
cs_set_user_plant(indexplant0) )
    {
        static 
iStatusIcon 0
        
if( !iStatusIcon )
        {
            
iStatusIcon get_user_msgid("StatusIcon")
        }

        
message_begin(MSG_ONEiStatusIcon, .player=index)
        
write_byte(1// show
        
write_string("c4")
        
write_byte(r)
        
write_byte(g)
        
write_byte(b)
        
message_end()
        return 
1
    
}
    return 
0

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 20:12.


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