Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerLogin(playerid,password[])
- if(PlayerInfo[playerid][pHunger] <=0)
- {
- if(GetPVarInt(playerid, "OverHungry")!=0 || GetPVarType(playerid, "OverHungry")!= 0)
- {
- KillTimer(GetPVarInt(playerid,"OverHungry"));
- DeletePVar(playerid, "OverHungry");
- }
- new overhunger = SetTimerEx("OverHungry", 10*1000, 1, "d", playerid);
- SetPVarInt(playerid, "OverHungry", overhunger);
- SendClientMessage(playerid, COLOR_YELLOW, "Kamu sekarang kelaparan! Kamu akan kehilangan health setiap 10 detik");
- SendClientMessage(playerid, COLOR_YELLOW, "Segera ke restoran untuk makan (/eat)!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement