Advertisement
Guest User

TAJMER TAJMER EVO TI TAJMER PICKO GLODARS

a guest
Feb 10th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. //na vrh
  2. new
  3. TimerPonuda[MAX_PLAYERS],
  4. bool: DopustenaProdaja[MAX_PLAYERS];
  5.  
  6. //u onplayerconnect i disconnect
  7. DopustenaProdaja[playerid] = true;
  8. //disconnect
  9. DopustenaProdaja[playerid] = true;
  10. KillTimer(TimerPonuda[playerid]);
  11.  
  12. //ono kada prihvati neki igrac prodaju ti dodas da se onom ko je nudio postavi timer
  13. TimerPonuda[IgracKojiJeNudio] = SetTimerEx("TimerProdaja", VRIJEME, false, "i", IgracKojiJeNudio);
  14. DopustenaProdaja[IgracKojiJeNudio] = false;
  15.  
  16. //na dno :D
  17. forward TimerProdaja(playerid);
  18. public TimerProdaja(playerid)
  19. {
  20. if (!DopustenaProdaja[IgracKojiJeNudio]) {
  21. DopustenaProdaja[playerid] = true;
  22. SCM(playerid, -1, "{FFFF00}[SA:RP] {FFFFFF}Opet mozete prodavati imovinu!");
  23. }
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement