
08-21-2005, 07:19 PM
|
|
Banned
|
 |
Join Date: Jul 2005
Location: US
Posts: 5,229
|
|
|
this is what I have so far, I might make it set your hearts to 1 or .5 if it tuns out, instead of killing you, that way you have time to get food:
// NPC made by Excaliber
//this script makes the player say their food points. It usually would not take 1 sec to lose a point, but this was for testing, this is for offline mode right now, with toweapons I will need one for online mode
if(playerenters){client.food=100;}
//#CLIENTSIDE
if(playerenters){
client.food=100;
toweapons *Food System;}
while(isweapon){
setplayerprop #c,#v(client.food);
client.food=client.food-1;
changeimgpart 1,0,0,client.food,10;
if(client.food<1){
playerhearts=0;client.food=1}
sleep 1}
if(created){
showimg 2,drfoodbarback.png,15,115;
changeimgvis 2,4;
showimg 1,drfoodbarfp.png,37,121;
changeimgvis 1,4;}
if(playerchats&&strequals(#c,/food)){
setplayerprop #c,#v(client.food)} |
|
|
|