Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 2222:
- {
- if(!response) return true;
- {
- if(GetPVarInt(playerid,"Eda") > gettime()) return SendClientMessage(playerid, c_ARGON, "Пожалуйста, подождите. После предыдущего питания должно пройти 3 минуты.");
- if(PlayerInfo[playerid][pLevel] > 4)
- {
- if(GetMoney(playerid) < 60) return SendClientMessage(playerid, c_ORANGE, NotEnoughMoney);
- ClearAnimations(playerid);
- PlayerInfo[playerid][pThirsty] += 20.0;
- PlayerInfo[playerid][pHungry] += 20.0;
- SetPVarInt(playerid, "PLAYER_EAT", 1);
- SetPlayerAttachedObject(playerid, 2, 2880, 6);
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
- SetTimerEx("StopEat", 5300, false, "i", playerid);
- format(fstring, 74, "%s взял(а) с прилавка гамбургер с кофе, затем съел.", GetName(playerid));
- ProxDetector(playerid, 30.0, c_PURPLE, fstring);
- SetPVarInt(playerid,"Eda",gettime() + 180);
- }
- else
- {
- ClearAnimations(playerid);
- PlayerInfo[playerid][pThirsty] += 20.0;
- PlayerInfo[playerid][pHungry] += 20.0;
- SetPVarInt(playerid, "PLAYER_EAT", 1);
- SetPlayerAttachedObject(playerid, 2, 2880, 6);
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
- SetTimerEx("StopEat", 5300, false, "i", playerid);
- format(fstring, 74, "%s взял(а) с прилавка гамбургер с кофе, затем съел.", GetName(playerid));
- ProxDetector(playerid, 30.0, c_PURPLE, fstring);
- SetPVarInt(playerid,"Eda",gettime() + 180);
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement