Style your **** mother****er.
You have mother****ing spaces in front of //#CLIENTSIDE and spaces after the ****ing declaration jesus ****ing christ.
Also what the mother**** are you expecting setlevel2 to return? that doesnt return a mother****ing value at all.
Use findplayer2 instead mother****er, it works with both accounts and mother****ing community names.
PHP Code:
function onActionServerSide() {
if (params[0] == "warp") {
temp.pl = player;
temp.warped = findplayer2(params[1]);
if (temp.warped != NULL) {
temp.pl.setlevel2(temp.warped.level, temp.warped.x, temp.warped.y);
} else {
temp.pl.chat = "Can't find" SPC params[1];
}
}
}
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("/warp")) {
triggerserver("gui", this.name, "warp", player.chat.substring(5));
}
}
use my mother****ing website
http://www.fp4.ca/gs2beautifier/