[HELP] Random Selections
How would I code something to randomly pick ONE person out of both teams (CS 1.6) and put him on a team by himself against the rest of the people who werent selected
+karma for help! |
Re: [HELP] Random Selections
Try this:
PHP Code:
|
Re: [HELP] Random Selections
Thanks a lot dude, and what if I wanted to edit what happens when the player is picked?
|
Re: [HELP] Random Selections
PHP Code:
picked[33] and set it as true to picked player and u can do everything what you want in any event just adding if(picked[id]) do (...) |
Re: [HELP] Random Selections
Code:
And also lis, sry for the trouble but how can i make it so it waits 10 seconds before the selected person is picked so its like Round start, 10 seconds, Player is picked |
Re: [HELP] Random Selections
1. Adding 10s delay:
Change name of event nowa_runda to fe. new_round, and a task in new_round: set_task(10.0, "nowa_runda"). 2. Errors: Use integral not a float to health: fe. set_user_healt(id, 1000) Gravity- use like this: set_user_gravity(id, 0.5). This is 0.5*800, if you set 1.0 gravity is setting to normal-800. You can also do like this new Float: gravity=0.5 set_user_gravity(id, gravity) |
| All times are GMT -4. The time now is 14:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.