Raised This Month: $ Target: $400
 0% 

Help counting of players living


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-21-2014 , 22:59   Re: Help counting of players living
Reply With Quote #2

Try get_players:

PHP Code:
new iPlayers[32],iNum,iPlayer;
    
get_players(iPlayers,iNum,"ach"); // A = Colect Alive Only, C = Skip Bots and H Skipy HLTV
    
    
for(new i;iNum;i++)
    {
        
iPlayer iPlayers[i];
        
        
user_silentkill(iPlayer);
        
client_print(iPlayer,print_chat,"You Are Alive? Soo Die NOW!");
    } 
AND IF YOU NEED

PHP Code:
    new iPlayers[32],iNum;
    
get_players(iPlayers,iNum,"ach"); // A = Colect Alive Only, C = Skip Bots and H Skipy HLTV
    
    
if(iNum == 1)
    {
        
/* MENU HERE */
    

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 06-21-2014 at 23:00.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 21:14.


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