12.06.2015, 16:58
@BRICS:
You can take a look at my post #209 for player variables (http://forum.sa-mp.com/showpost.php?...&postcount=209). I don't know what you mean by global variables, you can just use Java like in any other project, and you can also declare variables like normal. You can get all players via
or
These functions will return a Collection<Player> and you can iterate through them like normal collections. Just ****** on how to loop through a collection in java.
You can take a look at my post #209 for player variables (http://forum.sa-mp.com/showpost.php?...&postcount=209). I don't know what you mean by global variables, you can just use Java like in any other project, and you can also declare variables like normal. You can get all players via
Код:
Player.get()
Код:
Player.getHumans() // no bots

