1 CT random
I want to have max 1 CT and I want to change CT every round with random T player, how?
|
Re: 1 CT random
I'm sure you could guess how to do the second part. On round end, pick a random player from Terrorists and set his team to CT and set the original CT to terrorist.
|
Re: 1 CT random
I could use random(32) to get random id and set his team to CT, but how "lock" CT so others player can`t change team?
|
Re: 1 CT random
Quote:
You need to get a list of all the player id's that are on the one team then choose one of those randomly. It sounds like you need to take one step at a time and not try to do so many things all at once. |
Re: 1 CT random
Example please? :)
|
Re: 1 CT random
There are examples on the forums.
|
Re: 1 CT random
Comeone please give me it :(( I`m still learnign...
|
Re: 1 CT random
for example: search the words random player (in titles and posts).
|
Re: 1 CT random
Code:
Untested. |
Re: 1 CT random
@Honors, you should use random(num) since your way as the possibility of getting non-players.
|
| All times are GMT -4. The time now is 00:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.