Advertisement
MichaelFR

Kill bolnica

Aug 25th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. //na vrh moda
  2. new KillBolnica[MAX_PLAYERS];
  3. //dodas enum pod "enum pinfo"
  4. pKillMinus
  5. //kod umiranja igraca
  6. KillBolnica[playerid] = SetTimerEx("KillBolnicaMinus",1000,1,"i",playerid);
  7.  
  8. forward KillBolnicaMinus(playerid);
  9. public KillBolnicaMinus(playerid)
  10. {
  11.     if(PlayerInfo[playerid][pKillMinus] > 1)
  12.     {
  13.         PlayerInfo[playerid][pKillMinus] --;
  14. //Ovdje stavis da mu pise koliko je jos sekundi
  15.     }
  16.     else
  17.     {
  18.         KillTimer(KillBolnica[playerid]);
  19.         PlayerInfo[playerid][pKillMinus] = 0;
  20. //Ovdje stavis sta ce da se desi nakon 30 sekundi
  21.         return 1;
  22.     }
  23.     return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement