ok someone sent me a pm on graal with this in it...
PHP Code:
if (created) setshape 1,32,32;
if (actionwarp) {
with(getplayer(#p(0))) "levelname,x,y;"
}
//#CLIENTSIDE
if (created || timeout) {
setstring this.player_1-online,false;
setstring this.player_2-online,false;
for(this.i=0; this.i<playerscount; this.i++) {
if (players[this.i].x in |"x,y"| && players[this.i].y in |"x,y"|) {
if (strequals(#a(this.i),#s(this.player_1))) {
setstring this.player_1-online,true;
}elseif (strequals(#a(this.i),#s(this.player_2))) {
setstring this.player_2-online,true;
}
}
}
if (strequals(#s(this.player_1-online),false)) setstring this.player_1,;
if (strequals(#s(this.player_2-online),false)) setstring this.player_2,;
setstring this.players,;
for(this.i=0; this.i<playerscount; this.i++) {
if (players[this.i].x in |"x,y"| && players[this.i].y in |"x,y"|) {
if (strequals(#s(this.player_1),) && !strequals(#a(this.i),#s(this.player_1))) {
setstring this.player_1,#a(this.i);
}elseif (strequals(#s(this.player_2),) && !strequals(#a(this.i),#s(this.player_1))) {
setstring this.player_2,#a(this.i);
}elseif (!strequals(#a(this.i),#s(this.player_1)) && !strequals(#a(this.i),#s(this.player_2))) addstring this.players,#a(this.i);
}
}
for(this.i=0; this.i<sarraylen(this.players); this.i++) {
triggeraction x+1,y+1,warp,#I(this.players,this.i);
}
timeout = .05;
}
This script is sscaring me...
