Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.85 KB | None | 0 0
  1. span class="re5"> Hambre = 100;
  2. Sed = 100;
  3. Vida = 100;
  4. _pdaño = damage player;
  5.  
  6. while {true} do {
  7.   sleep 0.1;
  8.  
  9.     Hambre = Hambre - 5;
  10.     Sed = Sed - 5
  11.     sleep 120;
  12.  
  13.       if(Hambre < 70) then {
  14.         _damage = _pdaño + 0.01;
  15.         systemchat("Estas hambriento");
  16.         player setDamage _damage;
  17.         sleep 15;
  18.       };
  19.  
  20.       if(Sed < 60) then {
  21.         _damage = _pdaño + 0.01;
  22.         systemchat("Estas sediento");
  23.         player setDamage _damage;
  24.         sleep 15;
  25.       };
  26.  
  27.       if (_pdaño == 0) then {
  28.         // imagen de salud verde
  29.         Vida = 100;
  30.       };
  31.  
  32.       if (_pdaño =< 0.6) then {
  33.         player setDamage _pdaño;
  34.         Vida = 60;
  35.         // imagen de salud amarilla
  36.       };
  37.  
  38.       if (_pdaño == 1) then {
  39.         player setDamage _pdaño;
  40.         Vida = 0;
  41.         // imagen de salud roja
  42.       };
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement