PHP Code:
function onKeyPressed(code, key) {
switch (key) {
case "z":
setani("punch", "");
temp.coords = {player.x + 0.5 + vecx(player.dir) * 2, player.y - 1 + vecy(player.dir) * 2};
triggerserver("weapon", this.name, player.account, coords[0], coords[1]);
break;
}
}
Seems to not want to work. Yes, the rest of the script is working.