
10-26-2010, 10:56 PM
|
|
Registered User
|
 |
Join Date: Sep 2004
Posts: 5,260
|
|
Quote:
Originally Posted by Jiroxys7
Alright so I have this script:
PHP Code:
if("paralysis" in this.screffs){ //Check if this is true.
temp.paralyzecounter += 0.05; //Add to the counter.
if(temp.paralyzecounter >= 1){ //See if the counter is 1 or higher.
r = random(0,100);
if(r <= 25){
triggerserver("gui", this.name, "freezeplayer", player.account, 0.5, "Paralyzed!");
}
temp.paralyzecounter = 0; //Reset the counter.
}
player.chat = temp.paralyzecounter; //Check to see if the number is changing.
}
elseif(!("paralysis" in this.screffs)){temp.paralyzecounter = 0;} //If false, reset the number.
It's being run through a timeout of course, and I've tested to see what happens if i put player.chat = serverr.time and it is indeed updating more than once.
however, for some strange reason, temp.paralyzecounter will always return 0.05 And yes, I have also tried removing both parts that reset the timer, and I'm 100% certain that temp.paralyzecounter is handled anywhere else in the weapon.
Any ideas on why it won't add?
|
Must be your timeout, can I see the script you're using? (full) |
|
|
|