Raised This Month: $ Target: $400
 0% 

How to get 1 player from X


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eNz0
Member
Join Date: Feb 2010
Location: Lithuania
Old 05-04-2010 , 10:27   How to get 1 player from X
Reply With Quote #1

Hi again. I am making a plugin, which makes server assign player classes for players (automatic). I have 6 classes, but normally server assigns only 5 of them. 6th is much better, and i need a code which chooses only 1 player from server and gives him 6th class.
Optional: When player with 6th class dies, other player gets 6th class.
Examples:

new g_Player_Class[33]

g_Player_Class[id] = random_num(1, 5)

if(g_Player_Class[id] == 1)
...

Last edited by eNz0; 05-04-2010 at 10:29.
eNz0 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 03:56.


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