Thread: Food Status
View Single Post
  #16  
Old 10-23-2001, 05:55 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
if (playertouchsme) {
toweapons Food Bar;
timeout=.05;
}
if (created && isweapon) {
set foodbargodown;
foodpower = this.foodenergy
timeout=.05;
}
if(weaponfired){
if(this.foodenergy=>80){
setani bloated,;
}
if(this.foodenergy<=79 && this.foodenergy >=60){
setani fine,;
}
if (this.foodenergy=<59 && this.foodenergy>=40) {
setani nothungry,;
}
if (this.foodenergy=< 39 && this.foodenergy>=20) {
setani hungry,;
}
setplayerprop#c, #v(this.foodenergy/100*100)%;
freezeplayer .6;
}

if(timeout){
if(this.foodenergy==100){
this.foodenergy++;
}
if (this.foodenergy=<0) {
disableweapons
}
else {
enableweapons
}
timeout=.1;
}

should work, not tested yet =)
__________________
No Webhost at the moment
Reply With Quote