DeluxeGG

Untitled

Mar 22nd, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. case 2222:
  2. {
  3. if(!response) return true;
  4. {
  5. if(GetPVarInt(playerid,"Eda") > gettime()) return SendClientMessage(playerid, c_ARGON, "Пожалуйста, подождите. После предыдущего питания должно пройти 3 минуты.");
  6. if(PlayerInfo[playerid][pLevel] > 4)
  7. {
  8. if(GetMoney(playerid) < 60) return SendClientMessage(playerid, c_ORANGE, NotEnoughMoney);
  9. }
  10. ClearAnimations(playerid);
  11. PlayerInfo[playerid][pThirsty] += 20.0;
  12. PlayerInfo[playerid][pHungry] += 20.0;
  13. SetPVarInt(playerid, "PLAYER_EAT", 1);
  14. SetPlayerAttachedObject(playerid, 2, 2880, 6);
  15. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
  16. SetTimerEx("StopEat", 5300, false, "i", playerid);
  17. format(fstring, 74, "%s взял(а) с прилавка гамбургер с кофе, затем съел.", GetName(playerid));
  18. ProxDetector(playerid, 30.0, c_PURPLE, fstring);
  19. SetPVarInt(playerid,"Eda",gettime() + 180);
  20. }
  21. return true;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment