Thread: Food Status
View Single Post
  #19  
Old 10-23-2001, 06:27 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;
this.foodenergy=100;
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>0){
this.foodenergy--;
}
if (this.foodenergy=<0) {
disableweapons
}
else {
if(!weaponsenabled){
enableweapons
}
}
timeout=.5;
}

tested =)
__________________
No Webhost at the moment

Last edited by TDO2000; 10-23-2001 at 06:33 AM..
Reply With Quote