![]() |
findNearestPlayers(x, y)
Serverside, in a DB NPC,
PHP Code:
|
It could just be a global function.
|
Quote:
|
It'd be cool if we could do something like..
PHP Code:
|
Quote:
PHP Code:
|
findnearestplayers() is operating on players[] instead of level.players, that's why it cannot simply made to be a level function. The players[] array is only containing players from the nearby 3x3 levels, while level.players[] can contain thousands of players.
|
| All times are GMT +2. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.