Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. if(IsAtCandySprunk(playerid))
  2. {
  3. if(TookSprunk[playerid] == 0)
  4. {
  5. new Float:health;
  6. GetPlayerHealth(playerid, health);
  7. if(health != 0)
  8. {
  9. SetRealMoney(playerid, (ScriptMoney[playerid] - 25));
  10. SendClientMessage(playerid, COLOR_GREY, "* You paid 25$ to the Machine");
  11. TookSprunk[playerid] = 1;
  12. SetTimerEx("SetHP",3750,false, "i", playerid);
  13. }
  14. }
  15. }
  16.  
  17. public SetHP(playerid)
  18. {
  19. new Float:Health;
  20. GetPlayerHealth(playerid, Health);
  21. if(Health < 80)
  22. {
  23. SetPlayerHealth(playerid, (Health -15));
  24. }
  25. TookSprunk[playerid] = 0;
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement