Aww, you didn't regard my huge walkthrough?
if (playerenters) {
}
if (playertouchsme) {toweapons automatic test;
}
while (strequals(#w,automatic test) && isweapon){
if (keydown(4)){
putleaps 0,playerx,playery;
}
sleep 0.05;
}
Should work..
(EDIT: The timeout statement was no longer needed with the addition of the while. If that makes any sense.

)