30.06.2014, 18:25
Now it don't save business when i do Maintenance but i have put it under.
Код:
forward SaveMaintenance(); public SaveMaintenance() { foreach(Player, i) { GameTextForPlayer(i, "Scheduled Maintenance..", 5000, 5); } ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Carrier...", 1); SaveCarrier(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Houses...", 1); SaveHouses(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Businesses...", 1); SaveBiz(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Dynamic Doors...", 1); SaveDynamicDoors(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Map Icons...", 1); SaveDynamicMapIcons(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Gates...", 1); SaveGates(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Event Points...", 1); SaveEventPoints(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Paintball Arenas...", 1); SavePaintballArenas(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Misc Stuff...", 1); SaveStuff(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Office Elevator...", 1); SaveElevatorStuff(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Faction Pay...", 1); SaveThePay(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Server Stats...", 1); SaveServerStats(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Drug System...", 1); SaveDrugSystem(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Force Saving Materials System...", 1); SaveMatsSystem(); ABroadCast(COLOR_YELLOW, "{AA3333}Maintenance{FFFF00}: Streamer Plugin Shutting Down...", 1); DestroyAllDynamicObjects(); DestroyAllDynamicPickups(); DestroyAllDynamic3DTextLabels(); DestroyAllDynamicCPs(); DestroyAllDynamicMapIcons(); DestroyAllDynamicRaceCPs(); DestroyAllDynamicAreas(); SetTimer("FinishMaintenance", 10000, false); return 1; }