Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnGameModeInit()
- {
- MapAndreas_Init(MAP_ANDREAS_MODE_MINIMAL);
- printf("OnGameModeInit started: %s", GetDateAndTime());
- gConnection = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD, 3306);
- if (!mysql_errno(gConnection))
- {
- printf("(MySQL) Successfully connected to \"%s\".", SQL_HOSTNAME);
- LoadServerInformation();
- new rconMsg[256];
- format(rconMsg, sizeof(rconMsg), "hostname %s (%s)", Server[serverName], Server[serverWebsite]);
- SendRconCommand(rconMsg);
- format(rconMsg, sizeof(rconMsg), "%s %s", Server[serverShortName], Server[serverRevision]);
- SetGameModeText(rconMsg);
- format(rconMsg, sizeof(rconMsg), "weburl %s", Server[serverWebsite]);
- SendRconCommand(rconMsg);
- ShowNameTags(0);
- LimitGlobalChatRadius(0.0);
- SetNameTagDrawDistance(15.0);
- DisableInteriorEnterExits();
- ManualVehicleEngineAndLights();
- EnableStuntBonusForAll(0);
- ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
- SetWeather(13);
- LoadGlobalTextdraws();
- // Vehicles
- LoadDMVVehicles();
- LoadSweeperVehicles();
- LoadMowerVehicles();
- // Other
- LoadStaticObjects();
- LoadDynamicObjects();
- LoadAdminSettings();
- LoadAdminTeleports();
- LoadFactions();
- LoadVehicles();
- LoadDroppedItems();
- LoadConstructions();
- LoadFurnitures();
- LoadAdminFurnitures();
- LoadSafeItems();
- LoadRadioStations();
- LoadGates();
- LoadTags();
- LoadLabels();
- LoadUnits();
- LoadPlayerUnits();
- LoadLockers();
- LoadPayphones();
- LoadWeaponDamages();
- LoadObjects();
- LoadPumps();
- LoadTrashbins();
- LoadTrashItems();
- LoadAtms();
- LoadBankAccounts();
- LoadEconomy();
- LoadModShops();
- LoadBizProducts();
- LoadTicketImpounds();
- LoadDeployments();
- LoadPBolos();
- LoadVBolos();
- LoadGanja();
- LoadServerStats();
- // Fun stuff
- LoadSpookship();
- }
- else
- {
- printf("\a(MySQL) Failed to connect to \"%s\"!", SQL_HOSTNAME);
- GameModeExit();
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement