Get a Random Dead Player Who is Not Admin
Solved:
Another question: #9 Get a randomly picked dead player who has no admin ban flag? |
Re: Get a Random Dead Players
Code:
|
Re: Get a Random Dead Players
try this
PHP Code:
|
Re: Get a Random Dead Players
Retrieve a list of dead players ( using get_players() with "bh" as flags, or using a loop with for() + a check is_user_alive() ), then pick up a player randomly with random().
Basicaly : Code:
or Code:
[Edit] Ah. You say players not a player. |
Re: Get a Random Dead Player
arkshine you sure about that? cause both codes seem to only return a random number from total numbers of dead players
Im trying to randomly pick a player from all dead players |
Re: Get a Random Dead Players
Then use this:
Quote:
|
Re: Get a Random Dead Player
oh okay. that will return the player index of a randomly picked dead player?
|
Re: Get a Random Dead Player
Yes.
|
Re: Get a Random Dead Player
I have another question..what if I want to get a randomly picked dead player who has no admin ban flag?
|
Re: Get a Random Dead Player Who is Not Admin
Something like this:
PHP Code:
|
| All times are GMT -4. The time now is 02:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.