Advertisement
Sem_Loreann

Untitled

May 15th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. case 0:
  2. {
  3. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  4. if(!BizzInfo[i][bLock])
  5. {
  6. BizzInfo[i][bLock] = 1;
  7. SetBizzInt(BizzInfo[i][bID], "Lock", 1);
  8. ShowInfoForPlayer(playerid, FixText("~r~INFORMATION:~w~ Вы закрыли предприятие!"), 3000);
  9. for(new g = 1; g <= TOTALGAS; ++g)
  10. {
  11. if(i == GasInfo[g][gsBizzID]) UpdateGas(g);
  12. }
  13. else UpdateJobBizz(i);
  14. }
  15. else
  16. {
  17. BizzInfo[i][bLock] = 0;
  18. SetBizzInt(BizzInfo[i][bID], "Lock", 0);
  19. ShowInfoForPlayer(playerid, FixText("~r~INFORMATION:~w~ Вы открыли предприятие!"), 3000);
  20. for(new g = 1; g <= TOTALGAS; ++g)
  21. {
  22. if(i == GasInfo[g][gsBizzID]) UpdateGas(g);
  23. }
  24. else UpdateJobBizz(i);
  25. }
  26. return true;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement