Dont use
timeout to count down. Timeout is really unreliable other than looping really fast =\
Id suggest a
Variable
NPC Code:
if (isweapon) {
if (playerenters||timeout) {
timeout = 0.05;
if (this.time<=0) {
setstring stamina,#v(strtofloat(#s(stamina)) - 1);
this.time = 30;
}
this.time --;
}
}
Try something alonge those lines :o