Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 0:
- {
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- if(!BizzInfo[i][bLock])
- {
- BizzInfo[i][bLock] = 1;
- SetBizzInt(BizzInfo[i][bID], "Lock", 1);
- ShowInfoForPlayer(playerid, FixText("~r~INFORMATION:~w~ Вы закрыли предприятие!"), 3000);
- for(new g = 1; g <= TOTALGAS; ++g)
- {
- if(i == GasInfo[g][gsBizzID]) UpdateGas(g);
- }
- else UpdateJobBizz(i);
- }
- else
- {
- BizzInfo[i][bLock] = 0;
- SetBizzInt(BizzInfo[i][bID], "Lock", 0);
- ShowInfoForPlayer(playerid, FixText("~r~INFORMATION:~w~ Вы открыли предприятие!"), 3000);
- for(new g = 1; g <= TOTALGAS; ++g)
- {
- if(i == GasInfo[g][gsBizzID]) UpdateGas(g);
- }
- else UpdateJobBizz(i);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement