View Single Post
  #4  
Old 02-26-2011, 07:20 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Oh, sorry I just read the script.

Anyways the only way to break the repeating function is to keep a flag on the key being hit. You can use onKeyPressed() but that has a repeat function based on default keyboard(after a second or so it'll start repeating).

PHP Code:
function onTimeout() {
  if (
keydown(5)) {
    if (
this.keydown5 == truedostuff();
    
this.keydown5 true;
  } else 
this.keydown5 false;

Reply With Quote