Advertisement
Rifkaheryadi

Untitled

Jul 23rd, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. public OnPlayerLogin(playerid,password[])
  2.         if(PlayerInfo[playerid][pHunger] <=0)
  3.         {
  4.             if(GetPVarInt(playerid, "OverHungry")!=0 || GetPVarType(playerid, "OverHungry")!= 0)
  5.             {
  6.                 KillTimer(GetPVarInt(playerid,"OverHungry"));
  7.                 DeletePVar(playerid, "OverHungry");
  8.             }
  9.             new overhunger = SetTimerEx("OverHungry", 10*1000, 1, "d", playerid);
  10.             SetPVarInt(playerid, "OverHungry", overhunger);
  11.             SendClientMessage(playerid, COLOR_YELLOW, "Kamu sekarang kelaparan! Kamu akan kehilangan health setiap 10 detik");
  12.             SendClientMessage(playerid, COLOR_YELLOW, "Segera ke restoran untuk makan (/eat)!");
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement