me and my friend fleshkiller want to make our Dragger script so that no one else steals it, and we need help
PHP Code:
//NPC Made By:Tabetha
function onActionserverside(command){
switch(command){
case "drag":
findplayer(params[1]).setlevel2(params[2],params[3]%64,params[4]%64);
break;
}
}
//#CLIENTSIDE
function onMousedown(){
setTimer(.05);
}
function onTimeout(){
if (leftmousebutton(#a,knightmare1)||leftmousebutton(#a,fleshkiller)) {
for (this.i=0; this.i <= playerscount; this.i++) {
if (mousex in |players[this.i].x,players[this.i].x + 2.5| && mousey in |players[this.i].y,players[this.i].y + 3|) {
if (this.dragging = NULL) this.dragging = players[this.i].account;
}
}
if (this.dragging) {
player.chat = "Dragging :" SPC this.dragging;
}
setTimer(.05);
}else {
triggeraction(0,0,"serverside",#N,"drag",this.dragging,player.level,mousex-1.5,mousey-1.5);
this.dragging = NULL;
hideimgs(1,4);
}