15.08.2017, 05:21
(
Последний раз редактировалось B4z3ll; 15.08.2017 в 06:02.
)
Код:
public OnGameModeInit() { new string[128],tmphour,tmpminute,tmpsecond,year,month,day; SetGameModeText(SCRIPT_MODE); SendRconCommand(SCRIPT_MAP); /*new arrCoords[6][64], strFromFile2[256]; new File: file; if (fexist("stuff.ini")) { file = fopen("stuff.ini", io_read); fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); BombActivated = strval(arrCoords[0]); fclose(file); }*/ ShowPlayerMarkers(0); ShowNameTags(1); DisableInteriorEnterExits(); EnableStuntBonusForAll(0); SetNameTagDrawDistance(15.0); ManualVehicleEngineAndLights(); gettime(tmphour, tmpminute, tmpsecond); getdate(year, month, day); FixHour(tmphour); tmphour = shifthour; ghour = tmphour; gday=day; SetWorldTime(tmphour); new weather = random(15)+1; switch(weather) { case 0,1: Weather=1; case 2: Weather=2; case 3: Weather=3; case 4: Weather=4; case 5: Weather=5; case 6: Weather=6; case 7,8,9: Weather=7; case 10: Weather=10; case 11: Weather=11; case 12: Weather=12; case 13: Weather=13; case 14: Weather=18; case 15: Weather=9; } SetWeather(Weather); format(string, sizeof(string), "weburl %s",SCRIPT_WEB); SendRconCommand(string); AddPlayerClass(25, 1642.7285,-2240.5591,13.4945,180.0272, 0, 0, 0, 0, 0, 0); for(new c =0; c < MAX_VEHICLES ;c++) { VehicleInfo[c][vFuel] = 100; VehicleInfo[c][vEngine] = 0; VehicleInfo[c][vWindows] = 0; VehicleInfo[c][vOwned] = SCRIPT_CARS; VehicleInfo[c][vType] = 0; VehicleInfo[c][Panel] = 0.0; VehicleInfo[c][Doors] = 0.0; VehicleInfo[c][vCreated] = 0; } for(new f =0; f < sizeof(FactionInfo);f++) { strmid(FactionInfo[f][fMOTD], "Nenhuma", 0, strlen("Nenhuma"), 255); } for(new f =0; f < sizeof(DropInfo);f++) { strmid(DropInfo[f][dOwner], "None", 0, strlen("None"), 255); strmid(DropInfo[f][dPrint], "None", 0, strlen("None"), 255); } for(new i=0;i<sizeof(BoloInfo);i++) { strmid(BoloInfo[i][bString], "None", 0, strlen("None"), 255); } for(new i=0;i<sizeof(RadioInfo);i++) { RadioInfo[i][rX] = 0.0; RadioInfo[i][rY] = 0.0; RadioInfo[i][rZ] = 0.0; RadioInfo[i][rStatus] = 0; RadioInfo[i][rAreaID] = 0; strmid(RadioInfo[i][rOwner], "None", 0, strlen("None"), 255); strmid(RadioInfo[i][rURL], "None", 0, strlen("None"), 255); } LoadProperty(); LoadBizz(); LoadDrugStores(); LoadInts(); LoadCars(); // LoadCars2(); LoadFactions(); LoadNormalCars(); LoadHouseInts(); LoadTags(); BotLoad=0, LoadBots(0); SetTimer("RotateFerrisWheel",3000,false); SetTimer("OneSecondTimer", 1000, 1); SetTimer("OneMinTimer", 60000, 1); SetTimer("FiveMinTimer", 300000, 1); SetTimer("IdleKick", 600000, 1); checkcarhealthtimer = SetTimer("CheckCarHealth", 10000, 1); addictiontimer = SetTimer("CheckAddiction", 900000, 1); OnVehicleDeath(0, 501); return true; }