15.06.2015, 16:12
Quote:
@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 Код:
Player.get() Код:
Player.getHumans() // no bots |
Код:
Iterator<Player> it = Player.getHumans().iterator(); Player p; while(it.hasNext()) { // get "Player" instance p = it.next(); }
http://docs.oracle.com/javase/7/docs.../Iterator.html