Raised This Month: $ Target: $400
 0% 

set health


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

PHP Code:
new iPlayers[32], TNumCTNum

get_players
iPlayersTNum"aeh""TERRORIST" );
get_playersiPlayersCTNum"aeh""CT" );

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

for( new 
0numi++ )
{
    
tid players[i]
                    
    switch(
cs_get_user_team(tid))
    {
        case 
CS_TEAM_T:
        {
            
set_user_health(tid1000 CTNum 300)
        }
                        
        case 
CS_TEAM_CT:
        {
            
set_user_health(tid100 TNum 15)
        }
    }

Is there simplier way to set health for ct's & t's than this one? I guess i used to many "get_players" :O

Last edited by GhostMan; 07-14-2012 at 14:32.
GhostMan 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 15:22.


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