All pastes #2052525 Raw Edit

Anonymous

public text v1 · immutable
#2052525 ·published 2011-05-01 14:56 UTC
rendered paste body
public OnGameModeInit() {
    CreateServerTextDraws();
    ConnectServer();
    for(new i = 0; i < MAX_VEHICLES; i ++ ) {
        strmid(CarData[i][Owner], "None", 0, strlen("None"), 255);
        CarData[i][Engine] = false;
        LightsToggled[i] = false;
		CarData[i][Rented] = false;
    }
    for(new i = 0; i < TOTAL_CELLS; i ++ ) {
        CellData[i][Open] = false;
    }
    for(new i = 0; i < TOTAL_GANGZONES; i ++ ) {
        GangZoneStructure[i] = -1;
    }
    for(new i = 0; i < sizeof(dharvcps); i ++ ) {
    	CreateObject( 776, dharvcps[i][0], dharvcps[i][1], dharvcps[i][2]-15, 0, 0, 96 );
    }
    LoadVehicles();
    LoadMapicons();
    LoadOOCRooms();
    LoadGasStations();
    LoadBiz();
    LoadHouses();
    LoadBuildings();
    LoadFactions();
    LoadDorms();
    LoadNewsPapers();
    LoadGangZones();
    TimerData[CheatTimer] = SetTimer("CheatCheck", ANTICHEAT_TIMER, 1);
	TimerData[MapIconStream] = SetTimer("StreamerUpdate", FAST_TIMER, 1);
	TimerData[FuelTimer] = SetTimer("UpdateFuel", UPDATE_FUEL_TIMER, 1);
	TimerData[ClassTimer] = SetTimer("StartClass", START_CLASS_TIMER, 1);
	TimerData[PayDayTimer] = SetTimer("Payday", PAYDAY_TIMER, 1);
	
	Create3DTextLabel("* There are a stack of papers here *", COLOR_DO, 324.2737,164.2740,1014.1797, 10.0, SAN_BUILDING_ID, 1);
	Create3DTextLabel("[Dealership]\nIndustrial", COLOR_DO,1702.9060,-1469.3427,13.5469, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nBikes", COLOR_DO,1015.2809,-1557.7960,14.8594, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nSport Vehicles", COLOR_DO,1015.2766,-1549.4141,14.8594, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nBoats", COLOR_DO,662.4775,-1787.7919,12.4688, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nHelicopters", COLOR_DO,1956.7360,-2183.7285,13.5469, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nConvertibles", COLOR_DO,332.0904,-1337.4685,14.5078, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nLowriders", COLOR_DO,2741.3503,-2004.3486,13.5472, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nOff road", COLOR_DO,2699.3677,-1095.4285,69.3791, 200.0, 0, 1);
	Create3DTextLabel("[Dealership]\nSaloons", COLOR_DO,411.9653,-1729.3180,9.3693, 200.0, 0, 1);
	Create3DTextLabel("[Mechanic]\nCar parts", COLOR_DO,437.9661,-1359.1484,14.8148, 200.0, 0, 1);
	Create3DTextLabel("[Bank]", COLOR_DO,593.5185,-1250.9753,18.2514, 200.0, 0, 1);
	Create3DTextLabel("[Advertisement]", COLOR_DO,1310.2059,-1366.7977,13.5066, 200.0, 0, 1);
	Create3DTextLabel("* There's a unknown man, sitting on the ground *", COLOR_DO,1410.0319,-1303.5917,9.3380, 200.0, 0, 1);
	//Create3DTextLabel("[Mechanic]\nJob - /applyjob", COLOR_DO,-62.9871,-1121.3834,1.1680, 200.0, 0, 1);
    SetGameModeText("Sandy Roleplay");
    EnableStuntBonusForAll(0);
    DisableInteriorEnterExits();
    AllowInteriorWeapons(1);
    ShowPlayerMarkers(0);
    //ManualVehicleEngineAndLights();
    // LS Prison
    CreateStreamedObject(971, 2565.6638183594, -1299.4343261719, 1031.9420166016, 0.000000, 0.000000, 269.765625);
	CreateStreamedObject(971, 2524.7797851563, -1300.4279785156, 1032.1920166016, 0.000000, 0.000000, 90.007049560547);
	CreateStreamedObject(971, 2524.8293457031, -1312.3991699219, 1032.1920166016, 0.000000, 0.000000, 90.007080078125);
	CreateStreamedObject(971, 2524.6625976563, -1320.6087646484, 1032.1920166016, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(971, 2532.3962402344, -1320.6909179688, 1032.1920166016, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(971, 2540.8679199219, -1320.6154785156, 1032.1920166016, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(1800, 2528.7907714844, -1321.6986083984, 1030.4248046875, 0.000000, 0.000000, 87.340026855469);
	CreateStreamedObject(1800, 2523.9750976563, -1308.3315429688, 1030.4248046875, 0.000000, 0.000000, 178.64587402344);
	CreateStreamedObject(1800, 2523.8979492188, -1296.2884521484, 1030.4248046875, 0.000000, 0.000000, 178.64318847656);
	CreateStreamedObject(1800, 2536.5563964844, -1321.8013916016, 1030.4248046875, 0.000000, 0.000000, 87.335815429688);
	CreateStreamedObject(1800, 2544.8205566406, -1321.9427490234, 1030.4248046875, 0.000000, 0.000000, 87.335815429688);
	CreateStreamedObject(971, 2544.1984863281, -1315.4074707031, 1031.8902587891, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(3496, 2562.8122558594, -1280.8748779297, 1030.4974365234, 0.000000, 0.000000, 180.46875);
	CreateStreamedObject(1523, 2558.3859863281, -1294.685546875, 1030.421875, 0.000000, 0.000000, 89.158782958984);
	CreateStreamedObject(1523, 2558.3315429688, -1291.6448974609, 1030.421875, 0.000000, 0.000000, 270.36596679688);
	CreateStreamedObject(3475, 2558.6025390625, -1282.9390869141, 1032.7980957031, 0.000000, 0.000000, 1.9849853515625);
	CreateStreamedObject(3475, 2558.3276367188, -1288.5936279297, 1032.7980957031, 0.000000, 0.000000, 181.89196777344);
	CreateStreamedObject(3475, 2566.3791503906, -1295.0347900391, 1032.7980957031, 0.000000, 0.000000, 273.65423583984);
	CreateStreamedObject(3475, 2561.3991699219, -1294.7562255859, 1032.7980957031, 0.000000, 0.000000, 91.348266601563);
	CreateStreamedObject(7033, 2545.1381835938, -1293.5777587891, 1034.6420898438, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(2921, 2529.09765625, -1294.9129638672, 1034.107421875, 0.000000, 0.000000, 30.745452880859);
	CreateStreamedObject(2921, 2524.9289550781, -1313.1851806641, 1035.1270751953, 0.000000, 0.000000, 195.24496459961);
	CreateStreamedObject(2921, 2529.3723144531, -1310.3400878906, 1035.1270751953, 0.000000, 0.000000, 25.987426757813);
	CreateStreamedObject(2921, 2545.3361816406, -1317.0391845703, 1035.1270751953, 0.000000, 0.000000, 356.20767211914);
	CreateStreamedObject(2921, 2536.6293945313, -1316.1279296875, 1035.1270751953, 0.000000, 0.000000, 105.44018554688);
	CreateStreamedObject(2921, 2524.7985839844, -1318.1176757813, 1035.1270751953, 0.000000, 358.01501464844, 192.77581787109);
	CreateStreamedObject(2921, 2545.2734375, -1305.1209716797, 1028.4826660156, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(2921, 2543.5485839844, -1305.9553222656, 1041.4014892578, 0.000000, 0.000000, 312.35998535156);
	CreateStreamedObject(2921, 2542.8112792969, -1307.5618896484, 1034.3781738281, 0.000000, 0.000000, 312.35778808594);
	CreateStreamedObject(2921, 2543.5959472656, -1294.3677978516, 1035.3781738281, 0.000000, 0.000000, 11.907348632813);
	CreateStreamedObject(2921, 2529.3090820313, -1294.3012695313, 1034.9925537109, 0.000000, 0.000000, 189.15191650391);
	CreateStreamedObject(2921, 2561.3098144531, -1279.7515869141, 1034.8641357422, 0.000000, 0.000000, 129.99551391602);
	CreateStreamedObject(18070, 2549.0205078125, -1294.4973144531, 1030.9216308594, 0.000000, 0.000000, 88.083129882813);
	CreateStreamedObject(2452, 2548.5270996094, -1287.5021972656, 1030.4938964844, 0.000000, 0.000000, 91.825775146484);
	CreateStreamedObject(2417, 2547.7875976563, -1294.9606933594, 1030.6820068359, 0.000000, 0.000000, 89.386108398438);
	CreateStreamedObject(2361, 2547.6567382813, -1293.9340820313, 1030.6834716797, 0.000000, 0.000000, 86.719085693359);
	CreateStreamedObject(1679, 2551.8532714844, -1282.8035888672, 1030.8607177734, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(1679, 2551.8540039063, -1287.5473632813, 1030.8607177734, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(1679, 2554.5402832031, -1283.1475830078, 1030.8607177734, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(1679, 2548.2355957031, -1283.3756103516, 1030.8607177734, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(2596, 2529.5, -1282.6761474609, 1034.0854492188, 0.000000, 0.000000, 86.491729736328);
	CreateStreamedObject(1368, 2534.4489746094, -1282.6892089844, 1031.1115722656, 0.000000, 0.000000, 271.52325439453);
	CreateStreamedObject(1368, 2536.3310546875, -1284.828125, 1031.1115722656, 0.000000, 0.000000, 271.52160644531);
	CreateStreamedObject(1368, 2536.1342773438, -1281.5844726563, 1031.1115722656, 0.000000, 0.000000, 271.52160644531);
	
	// LS-ASGH
	CreateStreamedObject(16501,367.82882690,161.03869629,1020.80615234,0.00000000,0.00000000,0.00000000);
	CreateStreamedObject(16501,364.57040405,179.36914062,1020.80615234,0.00000000,0.00000000,92.44671631);
	CreateStreamedObject(1502,364.10580444,168.70834351,1018.98437500,0.00000000,0.00000000,0.00000000);
	CreateStreamedObject(3278,362.97674561,168.74491882,1020.23437500,0.00000000,0.00000000,0.00000000);
	CreateStreamedObject(3278,362.97656250,168.74414062,1022.48437500,0.00000000,0.00000000,0.00000000);
	CreateStreamedObject(3278,364.98822021,168.61914062,1022.98437500,0.00000000,0.00000000,0.00000000);
	CreateStreamedObject(3278,366.48437500,168.71252441,1022.98437500,0.00000000,0.00000000,0.00000000);
	CreateStreamedObject(3278,366.73364258,168.69282532,1020.48437500,0.00000000,0.00000000,0.00000000);
	CreateStreamedObject(2290,366.79876709,159.52926636,1018.98437500,0.00000000,0.00000000,237.94448853);
	CreateStreamedObject(2290,362.01354980,159.04415894,1018.98437500,0.00000000,0.00000000,88.94470215);
	CreateStreamedObject(2357,364.15313721,159.42631531,1019.12951660,0.00000000,0.00000000,91.82580566);
	CreateStreamedObject(1808,367.39105225,160.73983765,1018.98437500,0.00000000,0.00000000,270.82519531);
	CreateStreamedObject(16501,361.51257324,178.01164246,1020.80615234,0.00000000,0.00000000,178.54260254);
	CreateStreamedObject(16501,361.30895996,169.61808777,1020.80615234,0.00000000,0.00000000,178.54040527);
	CreateStreamedObject(1502,361.42614746,174.60383606,1018.98437500,0.00000000,0.00000000,269.31091309);
	CreateStreamedObject(16501,361.36602783,172.33558655,1023.55615234,0.00000000,0.00000000,178.53881836);
	CreateStreamedObject(16501,347.94317627,171.76402283,1020.80615234,0.00000000,0.00000000,178.53881836);
	CreateStreamedObject(16501,348.09915161,178.32748413,1020.80615234,0.00000000,0.00000000,178.53881836);
	CreateStreamedObject(1369,349.40701294,166.15843201,1019.61309814,0.00000000,0.00000000,88.24938965);
	CreateStreamedObject(1369,349.48895264,164.91094971,1019.61309814,0.00000000,0.00000000,88.24768066);
	CreateStreamedObject(1369,349.55444336,163.91235352,1019.61309814,0.00000000,0.00000000,88.24768066);
	CreateStreamedObject(1369,349.55371094,163.91210938,1019.61309814,0.00000000,0.00000000,88.24768066);
	CreateStreamedObject(1812,351.27059937,170.71961975,1018.99121094,0.00000000,0.00000000,90.91186523);
	CreateStreamedObject(1502,352.26165771,177.67289734,1018.98437500,0.00000000,0.00000000,273.27783203);
	CreateStreamedObject(16501,352.31936646,172.62484741,1021.05615234,0.00000000,0.00000000,178.53881836);
	CreateStreamedObject(16501,352.31729126,181.22285461,1021.05615234,0.00000000,0.00000000,180.52185059);
	CreateStreamedObject(3278,352.28265381,176.94390869,1022.98437500,0.00000000,0.00000000,272.59887695);
	CreateStreamedObject(1812,351.24801636,173.23558044,1018.99121094,0.00000000,0.00000000,88.92684937);
	CreateStreamedObject(1812,351.24520874,175.49916077,1018.99121094,0.00000000,0.00000000,88.92333984);

	// University
	CreateStreamedObject(970, 1000.7767944336, 1068.46875, 10.371793746948, 0.000000, 0.000000, 88.931457519531);
	CreateStreamedObject(970, 997.02258300781, 1068.6517333984, 10.371793746948, 0.000000, 0.000000, 88.928833007813);
	CreateStreamedObject(970, 993.76416015625, 1068.5603027344, 10.371793746948, 0.000000, 0.000000, 88.928833007813);
	CreateStreamedObject(970, 990.24340820313, 1068.2309570313, 10.371793746948, 0.000000, 0.000000, 88.928833007813);
	CreateStreamedObject(970, 986.74572753906, 1068.0903320313, 10.371793746948, 0.000000, 0.000000, 88.928833007813);
	CreateStreamedObject(4697, 1015.448425293, 1075.1760253906, 9.8953552246094, 0.000000, 0.000000, 354.04504394531);
	CreateStreamedObject(4697, 1018.0747070313, 1100.1931152344, 9.8953552246094, 0.000000, 0.000000, 354.03991699219);
	CreateStreamedObject(3627, 1027.6398925781, 1160.6514892578, 13.572587966919, 0.000000, 0.000000, 91.598449707031);
	CreateStreamedObject(983, 1032.921875, 1158.1494140625, 10.392118453979, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(983, 1022.4760131836, 1157.9921875, 10.392118453979, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(7894, 1033.798828125, 1148.7728271484, 10.380928039551, 0.000000, 358.01501464844, 80.08203125);
	CreateStreamedObject(7894, 1026.5123291016, 1141.1617431641, 10.130928039551, 0.000000, 359.99645996094, 8.5582275390625);
	CreateStreamedObject(7894, 1016.5707397461, 1139.2882080078, 10.130928039551, 0.000000, 359.99450683594, 221.97946166992);
	CreateStreamedObject(7894, 1014.8077392578, 1130.5286865234, 10.130928039551, 0.000000, 359.98901367188, 84.270629882813);
	CreateStreamedObject(7894, 1016.8753662109, 1152.8234863281, 10.380928039551, 0.000000, 358.01147460938, 209.18135070801);
	CreateStreamedObject(7894, 1008.381652832, 1146.0677490234, 10.380928039551, 0.000000, 358.01147460938, 229.02969360352);
	CreateStreamedObject(7894, 1000.7858276367, 1140.533203125, 10.380928039551, 0.000000, 358.01147460938, 205.20649719238);
	CreateStreamedObject(7894, 991.07733154297, 1135.7309570313, 10.380928039551, 0.000000, 358.01147460938, 205.20263671875);
	CreateStreamedObject(7894, 984.10772705078, 1129.26953125, 10.380928039551, 0.000000, 358.01147460938, 252.84265136719);
	CreateStreamedObject(6965, 1088.0401611328, 1074.1898193359, 13.448400497437, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(16613, 1038.0660400391, 1263.0577392578, 21.277549743652, 0.000000, 0.000000, 251.61221313477);
	CreateStreamedObject(8575, 1095.8641357422, 1170.0766601563, 15.373313903809, 0.000000, 0.000000, 89.386108398438);
	CreateStreamedObject(8578, 1058.1470947266, 1213.4030761719, 16.78663444519, 0.000000, 0.000000, 0.000000);
	CreateStreamedObject(8575, 984.41003417969, 1240.7216796875, 15.373313903809, 0.000000, 0.000000, 0.45333862304688);
	CreateStreamedObject(9623, 1168.0784912109, 1193.5977783203, 13.172634124756, 356.0299987793, 0.000000, 89.613464355469);
	CreateStreamedObject(13725, 1086.1838378906, 1074.6083984375, 6.530517578125, 0.000000, 0.000000, 121.82815551758);

	// Pool
	CreateStreamedObject(974, 1259.8481445313, -769.83941650391, 1085.7926025391, 0.000000, 0.000000, 90.007049560547); //
	print("Game Mode Loaded");
	return 1;
}