Get a random player in each team.
Hello guys,
I would like to ask you for help, because I don't know how to get a random player in each team. I have got this code Code:
public Losuj_Kapitanow(id){Code:
L 01/07/2014 - 19:24:24: Start of error session.52 line is a "Kapitan_CT[id]=players[random(numCT)]" Thanks for any help. |
Re: Get a random player in each team.
how is this Losuj_Kapitanow() called?
|
Re: Get a random player in each team.
You also have to check if there is no player in each team.
|
Re: Get a random player in each team.
Quote:
@11922911 Thanks, done Code:
public Losuj_Kapitanow(id){ |
Re: Get a random player in each team.
Quote:
|
Re: Get a random player in each team.
I didn't know about that, thanks! So I should use this event, right?
Code:
register_logevent("Poczatek_Rundy", 2, "1=Round_Start") |
Re: Get a random player in each team.
that doesn't pass anything neither
|
Re: Get a random player in each team.
So Jimaway, could you tell me please, how I could do it? I was sitting in chair for ten minutes, but I have 0 ideas about that.
|
Re: Get a random player in each team.
Code:
new Kapitan_CT, Kapitan_TT; |
Re: Get a random player in each team.
Alright, now I know how I will do it to print only for teammates.
Thank you Guys, you are great @Btw Arrays Kapitan_TT and Kapitan_CT doesnt have to be indexed? |
| All times are GMT -4. The time now is 10:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.