PHP код:
public OnGameModeInit()
{
print("Gamemode started.");
// Default Rates
print("Gamemode started.");
new a[][] =
{
"Unarmed (Fist)",
"Brass K"
};
#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();
print("22247.");
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("1222222222222222.");
LoadFamiliesHQ();
LoadMOTDs();
ClearReports();
SetNameTagDrawDistance(60.0);
print("t4444est.");
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), "MOLE: 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)
{
// SetWorldTime(wtime);
gTime = wtime;
}
AllowInteriorWeapons(1);
UsePlayerPedAnims();
// CreatedCars check
for(new i = 0; i < sizeof(CreatedCars); i++)
{
CreatedCars[i] = INVALID_VEHICLE_ID;
}
for(new v = 0; v < MAX_VEHICLES; v++)
{
VehicleFuel[v] = 100.0;
}
// Player Class's
for(new i = 0; i <= sizeof(Peds)-1; i++)
{
AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
}
//Some Objects