Ok, im makin a type of warpbook script for a server and it's just not warping the player to the spot. Im not sure if its the serverside section at the top that's messing it up or what, anyway heres the script. [NO STEALING =/]
PHP Code:
if (actionserverside) {
if(strequals(#p(0),warpbook)) {
setlevel2 #p(0),strtofloat(#p(1)),strtofloat(#p(2));
}
}
//#CLIENTSIDE
if (weaponfired) {
playerdir=2;
setani cross-forplayerworld149-newwarp,;
this.mode=abs(this.mode-1);
if(this.mode=0){
hideimg 296;
hideimg 297;
timeout=0;
}
else{timeout=.05;}
}
if(timeout&&this.mode=1){
tokenize #s(PlayerWarps);
if(keydown(1)){this.selected=this.selected-4;timeout=.5;}
elseif(keydown(3)){this.selected=this.selected+4;timeout=.5;}
else{timeout=.05;}
if(this.selected<0){this.selected=tokenscount-4;}
if(this.selected>tokenscount-1){this.selected=0;}
showimg 296,@@cb@Left or Right To Change S To Warp or A to cancel,playerx+1.5,playery-2;
showimg 297,@@cb@#t(this.selected),playerx+1.5,playery-1;
freezeplayer1;
if(keydown(5)){
this.mode=0;
hideimg 296;
hideimg 297;
playerfreezetime=0;
setani warper,;
sleep 2;
triggeraction 0,0,serverside,Warpbook,warpbook;
}
if(keydown(6)){
setani idle,;
playerfreezetime=0;
this.mode=0;
hideimg 296;
hideimg 297;
}
}
Help, and advice on what to change to make it warp the player please
