cone97

Untitled

Jul 1st, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. forward DodajNeaktivnostFirmi(f);
  2. public DodajNeaktivnostFirmi(f)
  3. {
  4. for(new fID = 0; fID < sizeof(FirmaInfo); fID++)
  5. {
  6. if(FirmaInfo[fID][fImaVlasnika] == 1)
  7. {
  8. {
  9. FirmaInfo[fID][fNeaktivnost] ++;
  10. Firme_Neaktivnost(fID);
  11. SacuvajFirmu(fID);
  12. }
  13. else
  14. {
  15. FirmaInfo[fID][fNeaktivnost] = 0;
  16. Firme_Neaktivnost(fID);
  17. SacuvajFirmu(fID);
  18. }
  19. if(FirmaInfo[fID][fNeaktivnost] > 150)
  20. {
  21. FirmaInfo[fID][fImaVlasnika] = 0;
  22. FirmaInfo[fID][fKasa] = 0;
  23. FirmaInfo[fID][fZatvoreno] = 1;
  24. FirmaInfo[fID][fNeaktivnost] = 0;
  25. strmid(FirmaInfo[fID][fVlasnik], "Niko", 0, strlen("Niko"), 255);
  26. FirmaLabelIPickup(fID);
  27. SacuvajFirmu(fID);
  28. new stringer[256];
  29. format(stringer, -1, ""CRVENA"[ Zavod za urbanizaciju ] Trenutno je na raspolaganju nova firma na adresi %s %d, po ceni od %d$!", fID, UlicaFirme(fID), FirmaInfo[fID][fCena]);
  30. SCMTA(-1, stringer);
  31. }
  32. }
  33. }
  34. return 1;
  35. }
  36. {//ovde stavis vreme to su ti mili sekunde pa izr pa stavi koliko oces
  37. {
  38. SetTimerEx( "DodajNeaktivnostFirmi", 10, false, "d", 0 );
  39. return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment