I know this might be a noob questions but can someone please help me I have this script and it works amazing in Graal Editor but when i try to use it on my server it does not work if you get what i mean please someone help me
Here is the Script
[php]if(playerenters){
if(!isweapon)toweapons -primarystaffhud;
setstring client.staffguild,Admin; //Define this. Put the name of the guild you want set when you set your staff tag. If the guild is named “Admin” put Admin.
timeout=0.05;
}
if(timeout){
showimg 1207,riley_alexadmintoolgui.gif,(screenwidth/2).1,screenheight-100;
changeimgvis 1207,4;
changeimgpart 1207,0,89,260,77;
this.xlocal=(screenwidth/2).1;
this.ylocal=screenheight-100;
if(this.bootson==1){showtext 1206,this.xlocal+66,this.ylocal+22,arial,b,#v(this.speed);changeimgvis 1206,4; changeimgzoom 1206,0.5;
if(keydown(0)){playery-=this.speed;}
if(keydown(1)){playerx-=this.speed;}
if(keydown(2)){playery+=this.speed;}
if(keydown(3)){playerx+=this.speed;}
}
else if(this.bootson==0){showtext 1206,this.xlocal+68.5,this.ylocal+29.5,arial,b, ,changeimgvis 1206,4; changeimgzoom 1206,0.5;}
if(this.cloakon==1){
hideplayer .05;
timeout = 0.05;
if(timeout){
setani stealth,;
putleaps 1,playerx+.5,playery+.5;
timeout=.05;
}
}
if(leftmousebutton && this.btimer<=0){
this.btimer=1;
if (mousescreenx in |this.xlocal+11,this.xlocal+49| && mousescreeny in |this.ylocal+20,this.ylocal+58|){
this.bootson = abs(this.bootson-1);
if(this.bootson > 0){
this.speed=1;
showimg 1208,riley_alexadmintoolgui.gif,this.xlocal+11,this.ylocal+19;
changeimgvis 1208,5;
changeimgpart 1208,4,46,39,40;
}
else {hideimg 1208;
this.speed=0;}
}
if (mousescreenx in |this.xlocal+52,this.xlocal+68| && mousescreeny in |this.ylocal+40,this.ylocal+58| && this.bootson == 1){
this.speed++;
}
if (mousescreenx in |this.xlocal+69,this.xlocal+85| && mousescreeny in |this.ylocal+40,this.ylocal+58| && this.bootson == 1 && this.speed>0){
this.speed–;
}
if (mousescreenx in |this.xlocal+88,this.xlocal+126| && mousescreeny in |this.ylocal+20,this.ylocal+58|){
this.cloakon = abs(this.cloakon-1);
if(this.cloakon > 0){
showimg 1210,riley_alexadmintoolgui.gif,this.xlocal+88,this.ylocal+19;
changeimgvis 1210,5;
changeimgpart 1210,89,46,39,40;
}
else {
hideimg 1210;
setani idle,;
}
}
if (mousescreenx in |this.xlocal+129,this.xlocal+167| && mousescreeny in |this.ylocal+20,this.ylocal+58|){
this.clickjail = abs(this.clickjail-1);
if(this.clickjail > 0){
showimg 1212,riley_alexadmintoolgui.gif,this.xlocal+129,this.ylocal+19;
changeimgvis 1212,5;
changeimgpart 1212,132,46,39,40;
}
else hideimg 1212;
}
if (mousescreenx in |this.xlocal+211,this.xlocal+249| && mousescreeny in |this.ylocal+20,this.ylocal+58|){
this.clickdrag = abs(this.clickdrag-1);
if(this.clickdrag > 0){
this.target = -1;
showimg 1214,riley_alexadmintoolgui.gif,this.xlocal+211,this.ylocal+19;
changeimgvis 1214,5;
changeimgpart 1214,218,46,39,40;
}
else hideimg 1214;
}
if (mousescreenx in |this.xlocal+170,this.xlocal+208| && mousescreeny in |this.ylocal+20,this.ylocal+58|){
this.tagset = abs(this.tagset-1);
if(this.tagset > 0){
showimg 1216,riley_alexadmintoolgui.gif,this.xlocal+170,this.ylocal+19;
changeimgvis 1216,5;
changeimgpart 1216,175,46,39,40;
playerap=100;
triggeraction 0,0,gr.setguild,#s(client.staffguild),#a;
}
else {hideimg 1216;
playerap=50;
triggeraction 0,0,gr.setguild,;
}
}
}timeout = 0.05; if(this.btimer>0)this.btimer-=0.05;
}
if(this.clickdrag==1){
timeout = 0.05;
getTarget();
moveTarget();
}
function getTarget() {
if (leftmousebutton) {
if (!this.lmb) {
set this.lmb;
for (i=0;i<playerscount;i++) {
if (abs(players[i].x+1.5-mousex) < 1 && abs(players[i].y+1.5-mousey) < 1.5) {
this.target = i;
this.dx = players[i].x;
this.dy = players[i].y;
this.omousex = mousex;
this.omousey = mousey;
break;
}
}
}
} else {
this.target = -1;
unset this.lmb;
}
}
function moveTarget() {
if (this.target < 0) return;
this.dx += mousex-this.omousex;
this.dy += mousey-this.omousey;
setshootparams clickDrag,#a(this.target),#v(this.dx),#v(this.dy);
shoot -10,-10,0.05,0.05,0.05,0.05,;
this.omousex = mousex;
this.omousey = mousey;
}
if(timeout){
if(this.clickjail==1){
getTargetz();
}
function getTargetz(){
if (leftmousebutton) {
if (!this.lmb) {
set this.lmb;
for (i=0;i<playerscount;i++) {
if (abs(players[i].x+1.5-mousex) < 1 && abs(players[i].y+1.5-mousey) < 1.5) {
this.target = i;
setshootparams clickJail,#a(this.target);
shoot -10,-10,0.05,0.05,0.05,0.05,;
break;
}
}
}
} else {
this.target = -1;
unset this.lmb;
}
}
}
if(playerchats)
tokenize2 ,#c;
if(strequals(#t(0),/setstring)){
setstring #t(1),#t(2);
setplayerprop #c,String #t(1) set to #t(2)!;
}
if(strequals(#t(0),/set)){
set #t(1);
setplayerprop #c,Flag #t(1) set to True!;
}
if(strequals(#t(0),/unset)){
unset #t(1);
setplayerprop #c,Flag #t(1) set to False!;
}
if(strequals(#t(0),/addweapon)){
triggeraction 0,0,gr.addweapon,#t(1);
setplayerprop #c,Weapon #t(1) added!;
}
if(strequals(#t(0),/deleteweapon)){
triggeraction 0,0,gr.deleteweapon,#t(1);
setplayerprop #c,Weapon #t(1) deleted!;
}
if(strequals(#t(0),/serverwarp)){
serverwarp #t(1);
setplayerprop #c,Warped to #t(1)!;
}
if(strequals(#t(0),/rcchat)){
triggeraction 0,0,gr.rcchat,#t(1);
setplayerprop #c,Message sent to RC!;
}
[/php]