Quote Originally Posted by John View Post
This is the simplest drag script I can create in under a minute:

PHP Code:
function onActionServerside(cmddat) {
  if (
cmd == "drag") {
    
findplayer(dat[0]).dat[1];
    
findplayer(dat[0]).dat[2];
  }
}
//#CLIENTSIDE
function onCreated() {
  
this.dplayer "";
}

function 
onPlayerChats() {
  if (
player.chat == "/drag"setTimer(0.05);
  if (
player.chat == "/dragoff"setTimer(0);
}

function 
onMouseDown() {
  for (
pl players) {
    if (
pl.x in |mousex 1mousex 1| && pl.y in |mousey 1mousey 2|) this.dplayer pl.account;
  }
}

function 
onTimeOut() {
  
triggerserver("weapon"this.name"drag", {this.dplayermousexmousey});
  
setTimer(0.05);

Should the weapon not be connected to server side aswel?