Код:
public OnGameModeInit()
{
print("Gamemode started.");
// Default Rates
print("Gamemode started.");
new a[][] =
{
"Unarmed (Fist)",
"Brass K"
};
// for(new c=0;c<CAR_AMOUNT;c++)
{
// Gas[c] = GasMax;
}
#pragma unused a
print("Gamemode started.");
tollstatus = 0;
tollopen = 0;
carrieronestatus = 0;
carriertwostatus = 0;
//InitDatabase();
//Audio_SetPack("default_pack", true);
djson_GameModeInit();
EnableStuntBonusForAll(0);
new servergmtextstr[128];
format(servergmtextstr, 128, "gamemodetext %s", SERVER_GM_TEXT);
SendRconCommand(servergmtextstr); // DO NOT REMOVE THIS
new string[42];
new string1[MAX_PLAYER_NAME];
ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
DisableInteriorEnterExits();
InitTurfWars();
LoadTurfWars();
InitPaintballArenas();
LoadPaintballArenas();
InitEventPoints();
LoadEventPoints();
LoadDynamicDoors();
LoadDynamicMapIcons();
LoadHouses();
LoadGates();
LoadBoxer();
LoadStuff();
//print("test111222.");
LoadElevatorStuff();
LoadServerStats();
LoadThePay();
LoadFamilies();
LoadPoints();
LoadcDealerships();
SetTimer("MAINTENANCE_T5", 1800000, true);
SetTimer("ProgressBar", 500, 1);
// checkgastimer = SetTimer("CheckGas", RunOutTime, true);
// stoppedvehtimer = SetTimer("StoppedVehicle", RunOutTime, true);
//print("22247.");
//testas
RemoveBuildingForPlayer(playerid, 1265, 2488.8047, -1684.7891, 12.8125, 0.25);
RemoveBuildingForPlayer(playerid, 760, 2520.6016, -1670.7422, 13.4375, 0.25);
RemoveBuildingForPlayer(playerid, 760, 2519.0625, -1675.7109, 13.1953, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 2490.1016, -1654.6563, 16.1328, 0.25);
RemoveBuildingForPlayer(playerid, 1265, 2491.2344, -1653.9609, 12.9219, 0.25);
RemoveBuildingForPlayer(playerid, 1230, 2492.2656, -1653.9922, 12.8984, 0.25);
RemoveBuildingForPlayer(playerid, 1211, 2495.2656, -1653.6719, 12.9141, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 2507.5938, -1663.0547, 16.2813, 0.25);
RemoveBuildingForPlayer(playerid, 1265, 2505.6719, -1658.9063, 12.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1265, 2510.9219, -1656.1328, 12.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1211, 2505.6641, -1657.9375, 12.9219, 0.25);
RemoveBuildingForPlayer(playerid, 1230, 2501.9297, -1650.5078, 12.9141, 0.25);
RemoveBuildingForPlayer(playerid, 760, 2507.5859, -1646.5547, 12.5313, 0.25);
RemoveBuildingForPlayer(playerid, 760, 2501.7500, -1645.5000, 12.2969, 0.25);
RemoveBuildingForPlayer(playerid, 762, 2508.4141, -1635.4375, 11.7500, 0.25);
RemoveBuildingForPlayer(playerid, 760, 2520.5469, -1662.8828, 13.1641, 0.25);
RemoveBuildingForPlayer(playerid, 760, 2517.0938, -1656.0703, 13.0625, 0.25);
RemoveBuildingForPlayer(playerid, 760, 2521.6953, -1653.0391, 13.2109, 0.25);
RemoveBuildingForPlayer(playerid, 3694, 2461.8594, -1715.1484, 12.8828, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 2470.4688, -1674.1875, 16.3359, 0.25);
RemoveBuildingForPlayer(playerid, 17879, 2484.5313, -1667.6094, 21.4375, 0.25);
RemoveBuildingForPlayer(playerid, 1230, 2453.9609, -1653.6953, 12.6797, 0.25);
RemoveBuildingForPlayer(playerid, 1230, 2475.0000, -1653.6094, 12.7891, 0.25);
//Removed top on city hall - Wes Brown
RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
Код:
return 1;
}
for(new f = 0; f < sizeof(FamilyInfo); f++)
{
for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++)
{
FamilyVehicleInfo[f][fv][fvModelId] = 0;
FamilyVehicleInfo[f][fv][fvSpawnx] = 0.0;
FamilyVehicleInfo[f][fv][fvSpawny] = 0.0;
FamilyVehicleInfo[f][fv][fvSpawnz] = 0.0;
FamilyVehicleInfo[f][fv][fvSpawna] = 0.0;
FamilyVehicleInfo[f][fv][fvPaintJob] = -1;
FamilyVehicleInfo[f][fv][fvColor1] = 126;
FamilyVehicleInfo[f][fv][fvColor2] = 126;
FamilyVehicleInfo[f][fv][fvPrice] = 0;
// FamilyVehicleInfo[f][fv][fvFuel] = 100.00;
FamilyVehicleInfo[f][fv][fvId] = INVALID_VEHICLE_ID;
}
}
print("Loaded Families!");
LoadFamiliesHQ();
LoadMOTDs();
ClearReports();
SetNameTagDrawDistance(60.0);
print("Server fully loaded!");
GiftAllowed = 1;
News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
format(string, sizeof(string), "Nothing");
strmid(News[hAdd1], string, 0, strlen(string), 255);
strmid(News[hAdd2], string, 0, strlen(string), 255);
strmid(News[hAdd3], string, 0, strlen(string), 255);
strmid(News[hAdd4], string, 0, strlen(string), 255);
strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one");
strmid(News[hContact1], string1, 0, strlen(string1), 255);
strmid(News[hContact2], string1, 0, strlen(string1), 255);
strmid(News[hContact3], string1, 0, strlen(string1), 255);
strmid(News[hContact4], string1, 0, strlen(string1), 255);
strmid(News[hContact5], string1, 0, strlen(string1), 255);
PlayerHaul[43][pCapasity] = 100;
PlayerHaul[44][pCapasity] = 100;
PlayerHaul[45][pCapasity] = 50;
PlayerHaul[46][pCapasity] = 50;
format(objstore, sizeof(objstore), "SERVER: I got nothing, check back with me later.");
format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
gettime(ghour, gminute, gsecond);
FixHour(ghour);
print("testhere.");
ghour = shifthour;
if(!realtime)
{