Raised This Month: $ Target: $400
 0% 

Choose a random player.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 08-18-2010 , 09:15   Choose a random player.
Reply With Quote #1

I'm using it for Zombie Plague. I've seen many threads but most of them is not working or totally incorrect. This is my current 1.

PHP Code:
new iPlayers[32], iNum
 
 
if(g_isBotAllowed)
  
get_players(iPlayersiNum"ah")
 else
  
get_players(iPlayersiNum"ach")
 
 if(!
iNum)
  return -
1
 
 iRandomPlayer 
random(iNum)
 
 
g_bBodyGuard[iPlayers[iRandomPlayer]] = true 
iRandomPlayer is the index/id.
g_isBotAllowed is a PCVar.

Does this works?
Excalibur.007 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 21:59.


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