Raised This Month: $ Target: $400
 0% 

get_players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-14-2012 , 13:58   get_players
Reply With Quote #1

v1
PHP Code:
new players[32], numtid
get_players
(playersnum"a")

for( new 
0numi++ )
{
    switch(
cs_get_user_team(tid))
    {
        case 
CS_TEAM_T:
        {
            
set_user_health(tid100)
        }
        
        case 
CS_TEAM_CT:
        {
            
set_user_health(tid100)
        }
    }

v2

PHP Code:
new players[32], numtid
get_players
(playersnum"a")

for( new 
0numi++ )
{
    
tid players[i]
    
set_user_health(tid100)

Lets say i want to set 100 health for both teams, so witch one is better or it has no matter?

Last edited by GhostMan; 07-14-2012 at 13:58.
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:06.


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