maybe u should use code tags
NPC Code:
//#CLIENTSIDE
if(playerenters){
setstring client.food,;
toweapons *Food System;
}
if(created){
showimg 2,drfoodbarback.png,15,115;
changeimgvis 2,4;
showimg 1,drfoodbarfp.png,37,121;
changeimgvis 1,4;
timeout=1;
}
if(timeout){
setplayerprop #c,#v(client.food);
setstring client.food,#v(strtofloat(#s(client.food))-1);
changeimgpart 1,0,0,imgwidth(drfoodbarfp.png)/100*strtofloat(#s(client.food)),imgheight(drfoodba rfp.png);
if(strtofloat(#s(client.food))<1){
setstring client.food,1;
playerhearts=0;
}
timeout=1;
}
if(playerchats&&strequals(#c,/food)){
setplayerprop #c,#v(client.food);
}
hmm i think u should use setstring instead of client.food=;
then use probably want to use a timeout...
didnt test it cuz i dont have the images
and i used the imgwidth and imageheight cuz i dont know how width/height your images are