Raised This Month: $ Target: $400
 0% 

Random player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
purple nurple
Senior Member
Join Date: Jun 2007
Location: US Missouri
Old 10-14-2007 , 02:17   Random player
Reply With Quote #1

Can someone help me with this. I want a random person to be choosen at the beginning of the round or sometime around then. I want it like this so it chooses one person out of everyone in the server and gives them stuff.

PHP Code:
public event_round_start(id)
{
    
set_task(5.0,"random_person",id)
}

public 
random_person(id)
{
    
//random person code in here.
}

public 
person(id)
{
    
//e.g.
    
cs_set_user_health(id,1000)
    
//other stuff to

Thats how i want it. If you can help me thanks alot.
purple nurple 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 01:23.


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