Umkay, this is a spar script and you would place the npc in the center of ur spar
commands:
Focus = to turn on focus
Focus off = to turn off focus
Start = to start count down
/In = to enter spar
/out = to leave spar
End = to stop the count down
PHP Code:
//#CLIENTSIDE
function onPlayerChats(){
if (player.chat=="focus"){
setfocus(30.5,25);//the center of ur spar
}
if (player.chat=="focus off"){
resetfocus();
}
if(playerx>12 && playerx<52){//first x is the top left corner of ur spar quare and the second is the botem right
if(playery>13 && playery<41){//same for here accept its y
if (player.chat=="start"){//place this npc in the middle of ur spar
this.chat = "You have 5 seconds untill start!";
sleep(2);
this.chat = "3";
sleep(1);
this.chat = "2";
sleep(1);
this.chat = "1";
sleep(1);
this.chat = "Spar!";
sleep(1);
this.chat = "Spar";
sleep(.1);
this.chat = "pa";
sleep(.1);
this.chat = "";
}
if (player.chat=="end"){
this.chat = "";
}
}
}
if (player.chat=="/in"){
enableweapons();
disablepause();
player.x = 30.5;//middle of ur spar
player.y = 25.5;//middle of ur spar
}
if (player.chat=="/out"){
enablepause();
disableweapons();
player.x = 30.5;//the out side of ur spar
player.y = 46;//the out side of ur spar
}
if (player.chat=="heal"){
player.hearts = player.fullhearts;
}
}
function onPlayerDies(){
player.x = 30.5;//the out side of ur spar
player.y = 46;//the out side of ur spar
}
function onPlayerEnters(){
enablepause();
disableweapons();
}
function onPlayerLeaves(){
enablepause();
enableweapons();
}
u just have to replace the x and y coordinates