Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> Hambre = 100;
- Sed = 100;
- Vida = 100;
- _pdaño = damage player;
- while {true} do {
- sleep 0.1;
- Hambre = Hambre - 5;
- Sed = Sed - 5
- sleep 120;
- if(Hambre < 70) then {
- _damage = _pdaño + 0.01;
- systemchat("Estas hambriento");
- player setDamage _damage;
- sleep 15;
- };
- if(Sed < 60) then {
- _damage = _pdaño + 0.01;
- systemchat("Estas sediento");
- player setDamage _damage;
- sleep 15;
- };
- if (_pdaño == 0) then {
- // imagen de salud verde
- Vida = 100;
- };
- if (_pdaño =< 0.6) then {
- player setDamage _pdaño;
- Vida = 60;
- // imagen de salud amarilla
- };
- if (_pdaño == 1) then {
- player setDamage _pdaño;
- Vida = 0;
- // imagen de salud roja
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement