Get random player?
Hi.
I have a bool: new bool: g_isVip[33] And i whant to set "true" to only 1 random player when the round starts What code should i use? |
Re: Get random player?
Use event HLTV,loop all players and use random_num
|
Re: Get random player?
if i use random num, will all players get different numbers?
|
Re: Get random player?
yes,i think,i never used a boolean in random_num,but i think thats works
btw do not use get_maxplayers or get_playersnum,use get_players |
Re: Get random player?
Tag mismatch...
|
Re: Get random player?
show line
|
Re: Get random player?
g_isVip[id] = random_num(1, 32)
p.s I havent used get_players yet. |
Re: Get random player?
0,32 if not u should use the array you assigned in get_players(HERE,);
|
Re: Get random player?
Spacing doesnt matter, numbers too.
Tag mismatch |
Re: Get random player?
try
Code:
|
| All times are GMT -4. The time now is 03:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.