Raised This Month: $ Target: $400
 0% 

[HELP] Randomly select three terrorist


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 11-18-2011 , 02:57   [HELP] Randomly select three terrorist
Reply With Quote #1

Hello, The following code selects random 3 live terrorist.I would like to choose the dead players.How can I do?

PHP Code:
            new Players[32], iCountrasgele1rasgele2rasgele3
            get_players
(Players,iCount,"ae","TERRORIST")
            if(
iCount 2)
            {
                
rasgele1 Playersrandom_num(0iCount) ]
                
rasgele2 Playersrandom_num(0iCount) ]
                
rasgele3 Playersrandom_num(0iCount) ]
                while( 
rasgele2 == rasgele3 || rasgele2 == rasgele1)
                {
                    
rasgele2 Playersrandom_num(0iCount) ]    
                }
                while( 
rasgele3 == rasgele1)
                {
                    
rasgele3 Playersrandom_num(0iCount) ]    
                }
                new 
terr1[64],terr2[64],terr3[64]
                
get_user_name(rasgele1terr163)
                
get_user_name(rasgele2terr263)
                
get_user_name(rasgele3terr363)
                
set_hudmessage(2552552550.030.6006.05.0,_,_,21)
                
show_hudmessage(0"Rasgele 3 Mahkum :^n%s^n%s^n%s",terr1,terr2,terr3
__________________

csduragi.com

Last edited by quLeryuzz; 11-18-2011 at 03:46.
quLeryuzz 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 08:34.


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