|
07-15-2012
|
20
|
|
Nerd
Join Date: Sep 2011
Location: Berlin
Posts: 3,825
|
You could do something like this:
PHP Code:
this.mostec = NULL;
for (temp.pl: players) {
temp.track = findPlayer(this.mostec);
if (temp.pl.clientr.event_ec > temp.track.clientr.event_ec) this.mostec = temp.pl;
}
findPlayer(this.mostec).setLevel2(levelname, x, y);
|
Beat me to it
|
|
|
|