Gamemode loading so slow.
#9

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(servergmtextstr128"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 
0sizeof(FamilyInfo); f++)
    {
        for(new 
fv 0fv MAX_GANG_VEHICLESfv++)
        {
            
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] = 0News[hTaken2] = 0News[hTaken3] = 0News[hTaken4] = 0News[hTaken5] = 0;
    
format(stringsizeof(string), "Nothing");
    
strmid(News[hAdd1], string0strlen(string), 255);
    
strmid(News[hAdd2], string0strlen(string), 255);
    
strmid(News[hAdd3], string0strlen(string), 255);
    
strmid(News[hAdd4], string0strlen(string), 255);
    
strmid(News[hAdd5], string0strlen(string), 255);
    
format(string1sizeof(string1), "No-one");
    
strmid(News[hContact1], string10strlen(string1), 255);
    
strmid(News[hContact2], string10strlen(string1), 255);
    
strmid(News[hContact3], string10strlen(string1), 255);
    
strmid(News[hContact4], string10strlen(string1), 255);
    
strmid(News[hContact5], string10strlen(string1), 255);
    
PlayerHaul[43][pCapasity] = 100;
    
PlayerHaul[44][pCapasity] = 100;
    
PlayerHaul[45][pCapasity] = 50;
    
PlayerHaul[46][pCapasity] = 50;
    
format(objstoresizeof(objstore), "MOLE: I got nothing, check back with me later.");
    
format(cbjstoresizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
    
gettime(ghourgminutegsecond);
    
FixHour(ghour);
    print(
"testhere.");
    
ghour shifthour;
    if(!
realtime)
    {
//        SetWorldTime(wtime);
        
gTime wtime;
    }
    
AllowInteriorWeapons(1);
    
UsePlayerPedAnims();
    
// CreatedCars check
    
for(new 0sizeof(CreatedCars); i++)
    {
        
CreatedCars[i] = INVALID_VEHICLE_ID;
    }
    for(new 
0MAX_VEHICLESv++)
    {
        
VehicleFuel[v] = 100.0;
    }
    
// Player Class's
    
for(new 0<= sizeof(Peds)-1i++)
    {
        
AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
    }
//Some Objects 
Won't be the problem here::
PHP код:
[16:42:13]  ========================================== 
[
16:42:13]  |                                        | 
[
16:42:13]  |  new version (v<html><heof YSI is  
[
16:42:13]  |            available from:             | 
[
16:42:13]  |                                        | 
[
16:42:13]  |     www.y-less.com/YSI/YSI_1.0.zip     
[
16:42:13]  |                                        | 
[
16:42:13]  ========================================== 
Reply


Messages In This Thread
Gamemode loading so slow. - by ThePhenix - 17.11.2012, 03:04
Re: Gamemode loading so slow. - by SuperViper - 17.11.2012, 03:08
Respuesta: Gamemode loading so slow. - by ThePhenix - 17.11.2012, 03:11
Re: Gamemode loading so slow. - by Socan - 17.11.2012, 03:18
Respuesta: Gamemode loading so slow. - by ThePhenix - 17.11.2012, 03:27
Re: Gamemode loading so slow. - by cessil - 17.11.2012, 03:46
Respuesta: Gamemode loading so slow. - by ThePhenix - 17.11.2012, 04:26
Re: Gamemode loading so slow. - by cessil - 17.11.2012, 05:08
Respuesta: Gamemode loading so slow. - by ThePhenix - 17.11.2012, 05:19
Re: Gamemode loading so slow. - by cessil - 17.11.2012, 07:13

Forum Jump:


Users browsing this thread: 2 Guest(s)