Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(IsAtCandySprunk(playerid))
- {
- if(TookSprunk[playerid] == 0)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(health != 0)
- {
- SetRealMoney(playerid, (ScriptMoney[playerid] - 25));
- SendClientMessage(playerid, COLOR_GREY, "* You paid 25$ to the Machine");
- TookSprunk[playerid] = 1;
- SetTimerEx("SetHP",3750,false, "i", playerid);
- }
- }
- }
- public SetHP(playerid)
- {
- new Float:Health;
- GetPlayerHealth(playerid, Health);
- if(Health < 80)
- {
- SetPlayerHealth(playerid, (Health -15));
- }
- TookSprunk[playerid] = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement