![]() |
Best way for this....
I am making a Chance event and everything is good except how to check if the chosen number of the box has any players inside it, right now I have this
PHP Code:
|
Use players (local to the levels) instead of allplayers (entire server).
PHP Code:
|
Thanks for that but I am still having a problem, what if the random box chosen has no players in it? I don't see a way to avoid an overflow when theres nobody in the boxes...
|
The way I did Chance on UN was to go through each box before selecting the losing box and check if it has player in it's boundaries. If it did, I added it's number to an array. Then picked randomly from this array, so you always get a box with at least one player in it.
|
Quote:
|
Quote:
|
Mind showing how the chance area looks?
|
Quote:
|
Quote:
|
Quote:
|
You can draw a cute little picture?
|
| All times are GMT +2. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.