Raised This Month: $ Target: $400
 0% 

getting number of t's


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-14-2012 , 06:08   getting number of t's
Reply With Quote #1

I want to get number of alive terrorists, so is code like that would be correct? (you may watch just first 7 lines)

PHP Code:
public cmd_box(id) {
    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {    
    
        new 
players[32], numT
        get_players
playersnumT"ae""TERRORIST" )
        
        if(
numT <= && numT && !g_BoxStarted) {
            static 
i
            
for(1<= g_max_clientsi++)
                if(
is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T)
                    
set_user_health(i100)

            
boxon true
            set_cvar_num
("mp_tkpunish"0)
            
set_cvar_num("mp_friendlyfire"1)
            
            
g_BoxStarted true
            
            set_hudmessage
(025500.080.2422.06.00.050.22)
            new 
name[33]; get_user_name(idnamecharsmax(name))
            
ShowSyncHudMsg(0g_HudSync"Priziuretojas %s Ijunge BOKSO rezima!"name)
        }
        else {
            
set_hudmessage(255000.080.2422.06.00.050.22)
            
ShowSyncHudMsg(idg_HudSync"Ijungti BOKSO rezimo dabar negalima!")
        }
    }
    return 
PLUGIN_HANDLED


Last edited by GhostMan; 07-14-2012 at 06:09.
GhostMan is offline
 


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


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