04.02.2014, 09:13
Yea, Im new to scripting, Im trying to put a 4th city spawn in the Grand Larcency Gamemode, I added some things that looked like they would make sense, then I scanned for other reasons why the city spawn would not show up as I logged in, The Script Compiles but when I connected to the server I could not select my 4th City/Spawn area. (The Script compiles and runs without any errors) Please help.
pawn Код:
//----------------------------------------------------------
//
// GRAND LARCENY 1.0
// A freeroam gamemode for SA-MP 0.3
//
//----------------------------------------------------------
#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"
#pragma tabsize 0
//----------------------------------------------------------
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777
#define CITY_LOS_SANTOS 0
#define CITY_SAN_FIERRO 1
#define CITY_LAS_VENTURAS 2
#define Civil_Defence_Camp 3
new total_vehicles_from_files=0;
// Class selection globals
new gPlayerCitySelection[MAX_PLAYERS];
new gPlayerHasCitySelected[MAX_PLAYERS];
new gPlayerLastCitySelectionTick[MAX_PLAYERS];
new Text:txtClassSelHelper;
new Text:txtLosSantos;
new Text:txtSanFierro;
new Text:txtLasVenturas;
new Text:txtCivilDefenceBase;
new thisanimid=0;
new lastanimid=0;
//----------------------------------------------------------
main()
{
print("\n---------------------------------------");
print("CIVILIAN DEFENCE TRAINING SERVER\n");
print(" an edit of Grand Larceny by the SAMP team\n");
print("---------------------------------------\n");
}
//----------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"CIVIL DEFENCE TRAINING SERVER",3000,4);
SendClientMessage(playerid,COLOR_WHITE,"CIVIL DEFENCE TRAINING SERVER");
// class selection init vars
gPlayerCitySelection[playerid] = 3;
gPlayerHasCitySelected[playerid] = 0;
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
RemoveBuildingForPlayer(playerid, 3682, 247.9297, 1461.8594, 33.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3682, 247.9297, 1461.8594, 33.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3682, 192.2734, 1456.1250, 33.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3682, 199.7578, 1397.8828, 33.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3683, 133.7422, 1356.9922, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3683, 166.7891, 1356.9922, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3683, 166.7891, 1392.1563, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3683, 133.7422, 1392.1563, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3683, 166.7891, 1426.9141, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3683, 133.7422, 1426.9141, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3288, 221.5703, 1374.9688, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3289, 212.0781, 1426.0313, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3290, 218.2578, 1467.5391, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3291, 246.5625, 1435.1953, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3291, 246.5625, 1410.5391, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3291, 246.5625, 1385.8906, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3291, 246.5625, 1361.2422, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3290, 190.9141, 1371.7734, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3289, 183.7422, 1444.8672, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3289, 222.5078, 1444.6953, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3289, 221.1797, 1390.2969, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3288, 223.1797, 1421.1875, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3683, 133.7422, 1459.6406, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3289, 207.5391, 1371.2422, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3424, 220.6484, 1355.1875, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3424, 221.7031, 1404.5078, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3424, 210.4141, 1444.8438, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3424, 262.5078, 1465.2031, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3259, 220.6484, 1355.1875, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3636, 166.7891, 1356.9922, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3256, 190.9141, 1371.7734, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3636, 166.7891, 1392.1563, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3636, 133.7422, 1392.1563, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3258, 207.5391, 1371.2422, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 205.6484, 1394.1328, 10.1172, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 205.6484, 1392.1563, 16.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 205.6484, 1394.1328, 23.7813, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 207.3594, 1390.5703, 19.1484, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 206.5078, 1387.8516, 27.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3673, 199.7578, 1397.8828, 33.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3257, 221.5703, 1374.9688, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3258, 221.1797, 1390.2969, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 203.9531, 1409.9141, 16.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3674, 199.3828, 1407.1172, 35.8984, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 204.6406, 1409.8516, 11.4063, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 206.5078, 1404.2344, 18.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 206.5078, 1400.6563, 22.4688, 0.25);
RemoveBuildingForPlayer(playerid, 3259, 221.7031, 1404.5078, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 207.3594, 1409.0000, 19.7578, 0.25);
RemoveBuildingForPlayer(playerid, 3257, 223.1797, 1421.1875, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3258, 212.0781, 1426.0313, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3636, 166.7891, 1426.9141, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3636, 133.7422, 1426.9141, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3255, 246.5625, 1361.2422, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3255, 246.5625, 1385.8906, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3255, 246.5625, 1410.5391, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3258, 183.7422, 1444.8672, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3259, 210.4141, 1444.8438, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3258, 222.5078, 1444.6953, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 16086, 232.2891, 1434.4844, 13.5000, 0.25);
RemoveBuildingForPlayer(playerid, 3673, 192.2734, 1456.1250, 33.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3674, 183.0391, 1455.7500, 35.8984, 0.25);
RemoveBuildingForPlayer(playerid, 3636, 133.7422, 1459.6406, 17.0938, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 196.0234, 1462.0156, 10.1172, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 198.0000, 1462.0156, 16.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 196.0234, 1462.0156, 23.7813, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 180.2422, 1460.3203, 16.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 180.3047, 1461.0078, 11.4063, 0.25);
RemoveBuildingForPlayer(playerid, 3256, 218.2578, 1467.5391, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 199.5859, 1463.7266, 19.1484, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 181.1563, 1463.7266, 19.7578, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 185.9219, 1462.8750, 18.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 202.3047, 1462.8750, 27.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 189.5000, 1462.8750, 22.4688, 0.25);
RemoveBuildingForPlayer(playerid, 3255, 246.5625, 1435.1953, 9.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 254.6797, 1451.8281, 27.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 253.8203, 1458.1094, 23.7813, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 255.5313, 1454.5469, 19.1484, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 253.8203, 1456.1328, 16.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 253.8203, 1458.1094, 10.1172, 0.25);
RemoveBuildingForPlayer(playerid, 3259, 262.5078, 1465.2031, 9.5859, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 254.6797, 1468.2109, 18.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3673, 247.9297, 1461.8594, 33.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 254.6797, 1464.6328, 22.4688, 0.25);
RemoveBuildingForPlayer(playerid, 3674, 247.5547, 1471.0938, 35.8984, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 255.5313, 1472.9766, 19.7578, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 252.8125, 1473.8281, 11.4063, 0.25);
RemoveBuildingForPlayer(playerid, 3675, 252.1250, 1473.8906, 16.2969, 0.25);
RemoveBuildingForPlayer(playerid, 16090, 315.7734, 1431.0938, 5.2734, 0.25);
RemoveBuildingForPlayer(playerid, 16091, 289.7422, 1431.0938, 5.2734, 0.25);
RemoveBuildingForPlayer(playerid, 16087, 358.6797, 1430.4531, 11.6172, 0.25);
CreateObject(8150, -8105.27, 1971.17, -5804.19, 0.00, 0.00, 0.00);
CreateObject(8152, 208.17, 1455.04, 12.37, 0.00, 0.00, 0.00);
CreateObject(8209, 111.30, 1385.71, 12.54, 0.00, 0.00, 270.50);
CreateObject(8209, 238.58, 1336.11, 12.54, 0.00, 0.00, 0.00);
CreateObject(8209, 161.07, 1336.04, 12.54, 0.00, 0.00, 0.00);
CreateObject(8150, 110.93, 1421.81, 12.53, 0.00, 0.00, 90.30);
CreateObject(987, 128.15, 1485.07, 11.61, 0.00, 0.00, 180.00);
CreateObject(987, 122.17, 1484.88, 11.61, 0.00, 0.00, 180.00);
CreateObject(8155, 269.12, 1363.62, 12.96, 0.00, 0.00, 180.00);
CreateObject(987, 288.07, 1421.05, 11.70, 0.00, 0.00, 93.00);
CreateObject(987, 289.22, 1388.40, 10.97, 0.00, 0.00, 93.00);
CreateObject(967, 300.67, 1415.50, 8.37, 0.00, 0.00, 0.00);
CreateObject(3279, 116.43, 1491.29, 9.56, 0.00, 0.00, 0.00);
CreateObject(3279, 284.32, 1492.21, 9.56, 0.00, 0.00, 0.00);
CreateObject(3279, 174.21, 1491.56, 9.56, 0.00, 0.00, 0.00);
CreateObject(3279, 293.06, 1456.73, 9.16, 0.00, 0.00, 270.00);
CreateObject(3279, 295.69, 1378.00, 9.62, 0.00, 0.00, 90.00);
CreateObject(3279, 285.72, 1330.99, 9.56, 0.00, 0.00, 0.00);
CreateObject(3279, 123.49, 1330.81, 9.56, 0.00, 0.00, 0.00);
CreateObject(3279, 171.94, 1329.43, 9.56, 0.00, 0.00, 0.00);
CreateObject(3279, 230.33, 1329.95, 9.56, 0.00, 0.00, 0.00);
CreateObject(3279, 228.29, 1492.74, 9.56, 0.00, 0.00, 0.00);
CreateObject(3626, 155.86, 1368.98, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 146.81, 1364.15, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 147.12, 1382.71, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 155.83, 1364.17, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 155.86, 1368.98, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 155.86, 1368.98, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 146.92, 1369.00, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 147.15, 1387.48, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 156.13, 1382.71, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 156.11, 1387.49, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 156.13, 1408.33, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 147.15, 1408.28, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 156.10, 1403.61, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 147.13, 1403.55, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 155.65, 1441.48, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 155.78, 1428.25, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 146.75, 1428.24, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 155.68, 1423.40, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 146.68, 1423.40, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 146.68, 1441.50, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 155.66, 1446.30, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 146.69, 1446.20, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 155.61, 1463.04, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 146.55, 1463.04, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 155.50, 1458.15, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 146.49, 1458.21, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 184.20, 1462.58, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 175.25, 1462.60, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 184.10, 1457.82, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 175.25, 1457.91, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 175.00, 1441.53, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 184.05, 1441.59, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 184.09, 1446.42, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 175.10, 1446.37, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 174.45, 1423.66, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 183.35, 1423.77, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 183.31, 1404.09, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 174.32, 1404.08, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 174.09, 1383.16, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 183.11, 1383.13, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 174.15, 1387.86, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 183.10, 1387.88, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 183.34, 1408.91, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 174.34, 1408.90, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 174.45, 1428.52, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 183.44, 1428.57, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 182.62, 1369.72, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 173.60, 1369.68, 10.86, 0.00, 0.00, 180.00);
CreateObject(3626, 173.56, 1364.85, 10.86, 0.00, 0.00, 0.00);
CreateObject(3626, 182.59, 1364.89, 10.86, 0.00, 0.00, 0.00);
CreateObject(1499, 209.32, 1386.35, 9.60, 0.00, 0.00, 0.00);
CreateObject(1499, 212.31, 1386.37, 9.60, 0.00, 0.00, 180.00);
CreateObject(2637, 204.03, 1356.80, 10.49, 0.00, 0.00, 0.00);
CreateObject(2637, 201.95, 1356.79, 10.49, 0.00, 0.00, 0.00);
CreateObject(2637, 206.11, 1356.80, 10.49, 0.00, 0.00, 0.00);
CreateObject(2637, 208.17, 1356.81, 10.49, 0.00, 0.00, 0.00);
CreateObject(2637, 210.21, 1356.81, 10.49, 0.00, 0.00, 0.00);
CreateObject(19355, 200.97, 1361.25, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.95, 1351.63, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.96, 1348.45, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.96, 1354.84, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.97, 1358.07, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.97, 1364.48, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.98, 1367.68, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.98, 1370.89, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.97, 1374.05, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.96, 1377.27, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.97, 1380.47, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.96, 1383.66, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 200.97, 1384.73, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 202.61, 1386.35, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 207.75, 1386.30, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 204.86, 1386.33, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 213.86, 1386.33, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 217.02, 1386.33, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 219.24, 1386.33, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 220.80, 1384.69, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.81, 1381.49, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.81, 1378.27, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.80, 1375.07, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.81, 1371.85, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.82, 1368.65, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.82, 1365.44, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.83, 1362.26, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.84, 1359.08, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.82, 1355.89, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.84, 1352.76, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.84, 1349.61, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 220.85, 1348.56, 11.41, 0.00, 0.00, 0.00);
CreateObject(19355, 219.32, 1347.04, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 216.16, 1347.01, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 212.99, 1346.99, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 209.78, 1346.99, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 206.58, 1346.97, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 203.33, 1346.97, 11.41, 0.00, 0.00, 90.00);
CreateObject(19355, 202.49, 1346.96, 11.41, 0.00, 0.00, 90.00);
CreateObject(2637, 206.11, 1357.02, 10.30, -90.00, 0.00, 0.00);
CreateObject(2637, 210.18, 1357.01, 10.30, -90.00, 0.00, 0.00);
CreateObject(2637, 208.18, 1356.99, 10.30, -90.00, 0.00, 0.00);
CreateObject(2637, 204.05, 1357.02, 10.30, -90.00, 0.00, 0.00);
CreateObject(2637, 201.96, 1357.02, 10.30, -90.00, 0.00, 0.00);
CreateObject(2637, 212.23, 1357.01, 10.28, -90.00, 0.00, 0.00);
CreateObject(2637, 212.22, 1356.80, 10.49, 0.00, 0.00, 0.00);
CreateObject(2637, 214.28, 1356.82, 10.49, 0.00, 0.00, 0.00);
CreateObject(2637, 214.29, 1356.99, 10.30, -90.00, 0.00, 0.00);
CreateObject(2637, 218.60, 1356.57, 10.58, 0.00, 90.00, 270.00);
CreateObject(2637, 215.95, 1357.00, 9962.00, 0.00, 90.00, 90.00);
CreateObject(2637, 215.93, 1357.04, 10.62, 0.00, 90.00, 90.00);
CreateObject(2637, 217.22, 1357.02, 12.70, 90.00, 90.00, 90.00);
CreateObject(1502, 216.45, 1357.36, 9.59, 0.00, 0.00, 0.00);
CreateObject(2637, 218.54, 1357.03, 12.32, 0.00, 90.00, 90.00);
CreateObject(2637, 215.96, 1357.03, 12.32, 0.00, 90.00, 90.00);
CreateObject(2637, 219.73, 1357.04, 9.80, -90.00, 0.00, 0.00);
CreateObject(2637, 219.73, 1357.04, 10.88, -90.00, 0.00, 0.00);
CreateObject(2637, 219.73, 1357.04, 11.88, -90.00, 0.00, 0.00);
CreateObject(2637, 219.73, 1357.04, 12.75, -90.00, 0.00, 0.00);
CreateObject(2637, 218.59, 1356.57, 12.32, 0.00, 90.00, 270.00);
CreateObject(2637, 217.24, 1356.57, 12.70, 90.00, 90.00, 270.00);
CreateObject(2637, 215.92, 1356.56, 12.32, 0.00, 90.00, 270.00);
CreateObject(2637, 215.92, 1356.56, 10.62, 0.00, 90.00, 270.00);
CreateObject(2637, 219.77, 1356.60, 12.75, -90.00, 0.00, 180.00);
CreateObject(2637, 219.78, 1356.60, 10.88, -90.00, 0.00, 180.00);
CreateObject(2637, 219.82, 1356.60, 11.88, -90.00, 0.00, 180.00);
CreateObject(2637, 219.74, 1356.60, 9.80, -90.00, 0.00, 180.00);
CreateObject(2637, 215.71, 1356.79, 10.99, 0.00, 270.00, 0.00);
CreateObject(2637, 215.70, 1356.79, 12.28, 0.00, 270.00, 0.00);
CreateObject(2637, 218.56, 1357.03, 10.58, 0.00, 90.00, 90.00);
CreateObject(2637, 216.05, 1356.78, 12.28, 0.00, -270.00, 0.00);
CreateObject(2637, 218.42, 1356.76, 12.28, 0.00, 270.00, 0.00);
CreateObject(2637, 218.42, 1356.77, 10.28, 0.00, 270.00, 0.00);
CreateObject(2637, 216.05, 1356.78, 10.28, 0.00, -270.00, 0.00);
CreateObject(2637, 216.37, 1356.77, 12.99, 0.00, 0.00, 0.00);
CreateObject(2637, 218.26, 1356.77, 12.99, 0.00, 0.00, 0.00);
CreateObject(2637, 219.83, 1356.78, 12.99, 0.00, 0.00, 0.00);
CreateObject(2637, 214.36, 1356.62, 10.30, -90.00, 0.00, 180.00);
CreateObject(2637, 212.28, 1356.59, 10.30, -90.00, 0.00, 180.00);
CreateObject(2637, 210.20, 1356.61, 10.30, -90.00, 0.00, 180.00);
CreateObject(2637, 208.20, 1356.61, 10.30, -90.00, 0.00, 180.00);
CreateObject(2637, 206.14, 1356.61, 10.30, -90.00, 0.00, 180.00);
CreateObject(2637, 204.06, 1356.60, 10.30, -90.00, 0.00, 180.00);
CreateObject(2637, 202.00, 1356.54, 10.30, -90.00, 0.00, 180.00);
CreateObject(970, 213.25, 1356.91, 11.45, 0.00, 180.00, 0.00);
CreateObject(970, 213.25, 1356.93, 12.52, 0.00, 0.00, 0.00);
CreateObject(970, 209.13, 1356.91, 11.45, 0.00, 180.00, 0.00);
CreateObject(970, 209.13, 1356.91, 12.55, 0.00, 0.00, 0.00);
CreateObject(970, 205.00, 1356.91, 12.55, 0.00, 0.00, 0.00);
CreateObject(970, 204.97, 1356.92, 11.45, 0.00, 180.00, 0.00);
CreateObject(970, 202.98, 1356.93, 11.45, 0.00, 180.00, 0.00);
CreateObject(970, 202.98, 1356.89, 12.55, 0.00, 0.00, 0.00);
CreateObject(19355, 202.79, 1348.52, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.80, 1351.72, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.79, 1354.94, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.79, 1358.13, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.79, 1361.31, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.28, 1358.16, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 209.73, 1358.14, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 213.21, 1358.15, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 216.65, 1358.16, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.01, 1358.09, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.09, 1355.31, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.09, 1348.70, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.08, 1351.90, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.08, 1355.03, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.55, 1354.96, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.22, 1354.97, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 208.84, 1354.97, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.25, 1354.98, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.64, 1351.80, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.62, 1348.66, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.12, 1351.74, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.12, 1348.66, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 208.69, 1351.73, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 208.70, 1348.61, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 205.85, 1351.73, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 205.61, 1348.61, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.29, 1361.30, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 209.77, 1361.28, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 213.10, 1361.24, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 216.59, 1361.22, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.02, 1361.22, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.03, 1364.40, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.56, 1364.39, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.05, 1364.39, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 208.58, 1364.41, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 205.10, 1364.42, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.71, 1364.41, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.83, 1367.65, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.22, 1367.60, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 209.74, 1367.54, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 213.26, 1367.50, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 216.75, 1367.54, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.01, 1367.53, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.02, 1370.72, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.53, 1370.71, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.10, 1370.69, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 208.64, 1370.69, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 205.26, 1370.66, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.84, 1370.61, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.78, 1373.76, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.40, 1373.75, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 209.84, 1373.75, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 213.30, 1373.77, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 216.80, 1373.76, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.02, 1373.74, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.05, 1376.80, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.54, 1376.83, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.04, 1376.86, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 208.56, 1376.84, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 205.10, 1376.80, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.76, 1376.91, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.24, 1373.75, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.03, 1379.93, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.55, 1379.92, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.04, 1379.95, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 208.58, 1379.92, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 205.10, 1379.93, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.78, 1379.94, 13.07, 0.00, 90.00, 0.00);
CreateObject(16236, 252.11, 1318.68, 13.70, 360.00, 0.00, 0.00);
CreateObject(19355, 202.71, 1382.86, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 202.72, 1384.68, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.19, 1382.82, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 206.20, 1384.70, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 209.61, 1382.82, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 213.05, 1382.79, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 218.99, 1382.89, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.82, 1382.87, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 219.03, 1384.74, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 215.59, 1384.72, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.94, 1384.69, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 212.81, 1384.73, 13.07, 0.00, 90.00, 0.00);
CreateObject(19355, 209.38, 1384.70, 13.07, 0.00, 90.00, 0.00);
CreateObject(970, 210.82, 1386.40, 12.60, 0.00, 0.00, 0.30);
CreateObject(2637, 202.19, 1375.56, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 202.19, 1373.43, 10.36, 0.00, 0.00, 0.00);
CreateObject(2638, 202.16, 1368.98, 10.38, 0.00, 0.00, 0.00);
CreateObject(2637, 202.20, 1371.17, 9.98, 0.00, 0.00, 0.00);
CreateObject(2637, 202.17, 1362.75, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 202.15, 1364.72, 10.38, 0.00, 0.00, 0.00);
CreateObject(2808, 202.24, 1361.20, 10.24, 0.00, 0.00, 0.00);
CreateObject(2637, 202.10, 1366.85, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 202.14, 1377.67, 10.36, 0.00, 0.00, 0.00);
CreateObject(2637, 202.17, 1379.92, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 202.08, 1382.00, 10.36, 0.00, 0.00, 0.00);
CreateObject(2637, 202.20, 1384.05, 9.98, 0.00, 0.00, 0.00);
CreateObject(2808, 202.17, 1385.81, 10.14, 0.00, 0.00, 180.00);
CreateObject(2808, 205.69, 1361.18, 10.14, 0.00, 0.00, 0.00);
CreateObject(2637, 205.73, 1362.77, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 205.71, 1364.68, 10.38, 0.00, 0.00, 0.00);
CreateObject(2638, 205.81, 1368.98, 10.38, 0.00, 0.00, 0.00);
CreateObject(2637, 205.79, 1366.86, 9.98, 0.00, 0.00, 0.00);
CreateObject(2637, 205.84, 1371.22, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 205.97, 1373.43, 10.36, 0.00, 0.00, 0.00);
CreateObject(2637, 205.93, 1375.55, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 205.90, 1377.68, 10.36, 0.00, 0.00, 0.00);
CreateObject(2637, 205.95, 1379.96, 9.98, 0.00, 0.00, 0.00);
CreateObject(2637, 205.95, 1379.96, 9.98, 0.00, 0.00, 0.00);
CreateObject(2638, 205.93, 1382.09, 10.36, 0.00, 0.00, 0.00);
CreateObject(2637, 205.99, 1384.05, 9.98, 0.00, 0.00, 0.00);
CreateObject(2808, 205.85, 1385.73, 10.14, 0.00, 0.00, 180.00);
CreateObject(8209, 238.58, 1336.11, 12.54, 0.00, 0.00, 0.00);
CreateObject(8210, 226.91, 1380.38, 11.87, 0.00, 0.00, -90.00);
CreateObject(8210, 227.01, 1439.97, 11.87, 0.00, 0.00, -90.00);
CreateObject(987, 238.79, 1402.22, 10.80, 0.00, 0.00, 900.00);
CreateObject(987, 226.81, 1418.13, 9.90, 0.00, 0.00, 0.00);
CreateObject(8210, 227.24, 1363.29, 11.87, 0.00, 0.00, -90.00);
CreateObject(8210, 227.29, 1457.15, 11.87, 0.00, 0.00, -90.00);
CreateObject(987, 238.75, 1402.21, 8.80, 0.00, 0.00, 900.00);
CreateObject(987, 226.81, 1418.07, 10.90, 0.00, 0.00, 0.00);
CreateObject(973, 231.17, 1405.35, 10.09, -7.00, 0.00, 0.00);
CreateObject(941, 227.47, 1404.80, 10.06, 0.00, 0.00, 0.00);
CreateObject(941, 229.81, 1404.80, 10.06, 0.00, 0.00, 0.00);
CreateObject(941, 232.15, 1404.80, 10.06, 0.00, 0.00, 0.00);
CreateObject(941, 234.44, 1404.80, 10.06, 0.00, 0.00, 0.00);
CreateObject(941, 234.62, 1415.92, 10.06, 0.00, 0.00, 0.00);
CreateObject(941, 232.24, 1415.92, 10.06, 0.00, 0.00, 0.00);
CreateObject(941, 229.88, 1415.92, 10.06, 0.00, 0.00, 0.00);
CreateObject(941, 227.55, 1415.92, 10.06, 0.00, 0.00, 0.00);
CreateObject(973, 231.33, 1415.41, 10.09, -7.00, 0.00, 180.00);
CreateObject(987, 288.07, 1423.83, 5.92, -180.00, 90.00, -90.00);
CreateObject(987, 288.24, 1405.98, 5.92, -181.80, 90.00, -90.00);
CreateObject(967, 300.48, 1406.88, 8.35, 0.00, 0.00, 180.00);
CreateObject(987, 289.16, 1392.61, 8.40, 0.00, 0.00, 0.00);
CreateObject(987, 301.25, 1392.40, 8.34, 0.00, 0.00, 90.00);
CreateObject(987, 299.95, 1430.50, 8.40, 0.00, 0.00, 180.00);
CreateObject(987, 301.59, 1418.55, 8.36, 0.00, 0.00, 90.00);
CreateObject(987, 301.55, 1430.50, 8.40, 0.00, 0.00, 180.00);
CreateObject(968, 301.15, 1414.68, 9.25, 0.00, -20.00, 90.00);
CreateObject(966, 301.15, 1414.66, 8.39, 0.00, 0.00, 90.00);
CreateObject(987, 301.59, 1416.31, 8.36, 0.00, 0.00, 90.00);
CreateObject(987, 301.25, 1394.26, 8.34, 0.00, 0.00, 90.00);
CreateObject(3624, 273.61, 1356.44, 14.10, 0.00, 0.00, 270.00);
CreateObject(3624, 269.37, 1469.95, 14.10, 0.00, 0.00, 90.00);
CreateVehicle(431, 247.4109, 1466.2211, 10.5729, 0.0000, 0, 0, 100);
CreateVehicle(470, 231.1681, 1458.5029, 10.7550, 0.0000, 0, 0, 100);
CreateVehicle(490, 232.8448, 1344.6780, 10.5850, 0.0000, 0, 0, 100);
CreateVehicle(599, 305.1130, 1419.1201, 10.0296, -130.0000, 0, 0, 100);
CreateVehicle(599, 304.9555, 1404.2007, 10.0296, 310.0000, 0, 0, 100);
CreateVehicle(433, 281.4454, 1351.4325, 10.9587, 0.0000, 0, 0, 100);
CreateVehicle(433, 276.0533, 1352.0360, 10.9587, 0.0000, 0, 0, 100);
CreateVehicle(433, 266.0406, 1352.0137, 10.9587, 0.0000, 0, 0, 100);
CreateVehicle(433, 271.0707, 1351.9341, 10.9587, 0.0000, 0, 0, 100);
CreateVehicle(490, 285.0533, 1421.4832, 10.5850, 180.0000, 0, 0, 100);
CreateVehicle(470, 230.9921, 1474.3867, 10.7302, 0.0000, 0, 0, 100);
CreateVehicle(470, 253.3054, 1474.6722, 10.7302, 0.0000, 0, 0, 100);
CreateVehicle(431, 237.7360, 1465.9857, 10.5729, 0.0000, 0, 0, 100);
CreateVehicle(470, 253.4588, 1459.2531, 10.7302, 0.0000, 0, 0, 100);
CreateVehicle(490, 237.1335, 1344.6754, 10.5850, 0.0000, 0, 0, 100);
CreateVehicle(490, 285.3761, 1402.0336, 10.5850, 0.0000, 0, 0, 100);
CreateVehicle(563, 250.3044, 1375.8127, 9.5640, 0.0000, 0, 0, 100);
CreateVehicle(563, 209.9527, -242.5169, 3.5700, 0.0000, 0, 0, 100);
CreateVehicle(504, 272.3576, 1381.9066, 10.2608, 0.0000, 0, 0, 100);
CreateVehicle(563, 265.2621, 1361.8510, 11.3591, 0.0000, 0, 0, 100);
return 1;
}
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new randSpawn = 0;
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 30000);
if(CITY_LOS_SANTOS == gPlayerCitySelection[playerid]) {
randSpawn = random(sizeof(gRandomSpawns_LosSantos));
SetPlayerPos(playerid,
gRandomSpawns_LosSantos[randSpawn][0],
gRandomSpawns_LosSantos[randSpawn][1],
gRandomSpawns_LosSantos[randSpawn][2]);
SetPlayerFacingAngle(playerid,gRandomSpawns_LosSantos[randSpawn][3]);
}
else if(CITY_SAN_FIERRO == gPlayerCitySelection[playerid]) {
randSpawn = random(sizeof(gRandomSpawns_SanFierro));
SetPlayerPos(playerid,
gRandomSpawns_SanFierro[randSpawn][0],
gRandomSpawns_SanFierro[randSpawn][1],
gRandomSpawns_SanFierro[randSpawn][2]);
SetPlayerFacingAngle(playerid,gRandomSpawns_SanFierro[randSpawn][3]);
}
else if(CITY_LAS_VENTURAS == gPlayerCitySelection[playerid]) {
randSpawn = random(sizeof(gRandomSpawns_LasVenturas));
SetPlayerPos(playerid,
gRandomSpawns_LasVenturas[randSpawn][0],
gRandomSpawns_LasVenturas[randSpawn][1],
gRandomSpawns_LasVenturas[randSpawn][2]);
SetPlayerFacingAngle(playerid,gRandomSpawns_LasVenturas[randSpawn][3]);
}
else if(Civil_Defence_Camp == gPlayerCitySelection[playerid]) {
SetPlayerPos(playerid, 358.6797, 1430.4531, 13.6172);
SetPlayerFacingAngle(playerid,180.00);
}
//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
GivePlayerWeapon(playerid,WEAPON_COLT45,100);
//GivePlayerWeapon(playerid,WEAPON_MP5,100);
TogglePlayerClock(playerid, 0);
return 1;
}
//----------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
// if they ever return to class selection make them city
// select again first
gPlayerHasCitySelected[playerid] = 0;
if(killerid == INVALID_PLAYER_ID) {
ResetPlayerMoney(playerid);
} else {
playercash = GetPlayerMoney(playerid);
if(playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
}
return 1;
}
//----------------------------------------------------------
ClassSel_SetupCharSelection(playerid)
{
if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,508.7362,-87.4335,998.9609);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609);
SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2673.8381,1399.7424,918.3516);
SetPlayerFacingAngle(playerid,181.0);
SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516);
SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,349.0453,193.2271,1014.1797);
SetPlayerFacingAngle(playerid,286.25);
SetPlayerCameraPos(playerid,352.9164,194.5702,1014.1875);
SetPlayerCameraLookAt(playerid,349.0453,193.2271,1014.1797);
}
else if(gPlayerCitySelection[playerid] == Civil_Defence_Camp) {
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,358.6797,1430.4531,13.6172);
SetPlayerFacingAngle(playerid,181.0);
SetPlayerCameraPos(playerid,375.6797,1450.4531,16.6172);
SetPlayerCameraLookAt(playerid,202.17,1385.81,10.14);
}
}
//----------------------------------------------------------
// Used to init textdraws of city names
ClassSel_InitCityNameText(Text:txtInit)
{
TextDrawUseBox(txtInit, 0);
TextDrawLetterSize(txtInit,1.25,3.0);
TextDrawFont(txtInit, 0);
TextDrawSetShadow(txtInit,0);
TextDrawSetOutline(txtInit,1);
TextDrawColor(txtInit,0xEEEEEEFF);
TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
}
//----------------------------------------------------------
ClassSel_InitTextDraws()
{
// Init our observer helper text display
txtLosSantos = TextDrawCreate(10.0, 380.0, "Los Santos");
ClassSel_InitCityNameText(txtLosSantos);
txtSanFierro = TextDrawCreate(10.0, 380.0, "San Fierro");
ClassSel_InitCityNameText(txtSanFierro);
txtLasVenturas = TextDrawCreate(10.0, 380.0, "Las Venturas");
ClassSel_InitCityNameText(txtLasVenturas);
txtCivilDefenceBase = TextDrawCreate(10.0, 380.0, "Civil Defence Camp");
ClassSel_InitCityNameText(txtCivilDefenceBase);
// Init our observer helper text display
txtClassSelHelper = TextDrawCreate(10.0, 415.0,
" Press ~b~~k~~GO_LEFT~ ~w~or ~b~~k~~GO_RIGHT~ ~w~to switch cities.~n~ Press ~r~~k~~PED_FIREWEAPON~ ~w~to select.");
TextDrawUseBox(txtClassSelHelper, 1);
TextDrawBoxColor(txtClassSelHelper,0x222222BB);
TextDrawLetterSize(txtClassSelHelper,0.3,1.0);
TextDrawTextSize(txtClassSelHelper,400.0,40.0);
TextDrawFont(txtClassSelHelper, 2);
TextDrawSetShadow(txtClassSelHelper,0);
TextDrawSetOutline(txtClassSelHelper,1);
TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
TextDrawColor(txtClassSelHelper,0xFFFFFFFF);
}
//----------------------------------------------------------
ClassSel_SetupSelectedCity(playerid)
{
if(gPlayerCitySelection[playerid] == -1) {
gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,1630.6136,-2286.0298,110.0);
SetPlayerCameraLookAt(playerid,1887.6034,-1682.1442,47.6167);
TextDrawShowForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
TextDrawHideForPlayer(playerid,txtCivilDefenceBase);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,-1300.8754,68.0546,129.4823);
SetPlayerCameraLookAt(playerid,-1817.9412,769.3878,132.6589);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawShowForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
TextDrawHideForPlayer(playerid,txtCivilDefenceBase);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,1310.6155,1675.9182,110.7390);
SetPlayerCameraLookAt(playerid,2285.2944,1919.3756,68.2275);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawShowForPlayer(playerid,txtLasVenturas);
TextDrawHideForPlayer(playerid,txtCivilDefenceBase);
}
else if(gPlayerCitySelection[playerid] == Civil_Defence_Camp) {
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,375.6797,1450.4531,16.6172);
SetPlayerCameraLookAt(playerid,202.17,1385.81,10.14);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
TextDrawShowForPlayer(playerid,txtCivilDefenceBase);
}
}
//----------------------------------------------------------
ClassSel_SwitchToNextCity(playerid)
{
gPlayerCitySelection[playerid]++;
if(gPlayerCitySelection[playerid] > CITY_LAS_VENTURAS) {
gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
PlayerPlaySound(playerid,1052,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_SwitchToPreviousCity(playerid)
{
gPlayerCitySelection[playerid]--;
if(gPlayerCitySelection[playerid] < CITY_LOS_SANTOS) {
gPlayerCitySelection[playerid] = CITY_LAS_VENTURAS;
}
PlayerPlaySound(playerid,1053,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_HandleCitySelection(playerid)
{
new Keys,ud,lr;
GetPlayerKeys(playerid,Keys,ud,lr);
if(gPlayerCitySelection[playerid] == -1) {
ClassSel_SwitchToNextCity(playerid);
return;
}
// only allow new selection every ~500 ms
if( (GetTickCount() - gPlayerLastCitySelectionTick[playerid]) < 500 ) return;
if(Keys & KEY_FIRE) {
gPlayerHasCitySelected[playerid] = 1;
TextDrawHideForPlayer(playerid,txtClassSelHelper);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
TogglePlayerSpectating(playerid,0);
return;
}
if(lr > 0) {
ClassSel_SwitchToNextCity(playerid);
}
else if(lr < 0) {
ClassSel_SwitchToPreviousCity(playerid);
}
}
//----------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
if(gPlayerHasCitySelected[playerid]) {
ClassSel_SetupCharSelection(playerid);
return 1;
} else {
if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
TogglePlayerSpectating(playerid,1);
TextDrawShowForPlayer(playerid, txtClassSelHelper);
gPlayerCitySelection[playerid] = -1;
}
}
return 0;
}
//----------------------------------------------------------
public OnGameModeInit()
{
SetGameModeText("Grand Larceny");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);
UsePlayerPedAnims();
//ManualVehicleEngineAndLights();
//LimitGlobalChatRadius(300.0);
ClassSel_InitTextDraws();
AddPlayerClass(93, 358.6797, 1430.4531, 13.6172, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(282,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(283,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(284,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(285,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(286,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(287,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(288,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(265,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(266,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(267,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(268,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(3,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(4,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(5,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(6,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(8,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(42,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(65,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
//AddPlayerClass(74,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(86,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(119,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(149,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(208,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(273,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(69,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(70,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(71,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(72,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(73,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(75,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(76,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(78,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(79,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(80,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(81,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(82,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(83,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(84,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(85,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(87,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(88,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(89,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(91,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(92,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(93,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(95,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(96,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(97,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(99,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");
// LAS VENTURAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");
// SAN FIERRO
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");
// LOS SANTOS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
// OTHER AREAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
printf("Total vehicles from files: %d",total_vehicles_from_files);
return 1;
}
//----------------------------------------------------------
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(IsPlayerNPC(playerid)) return 1;
// changing cities by inputs
if( !gPlayerHasCitySelected[playerid] &&
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING ) {
ClassSel_HandleCitySelection(playerid);
return 1;
}
// No weapons in interiors
if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
SetPlayerArmedWeapon(playerid,0); // fists
return 0; // no syncing until they change their weapon
}
// Don't allow minigun
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
Kick(playerid);
return 0;
}
/* No jetpacks allowed
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
Kick(playerid);
return 0;
}*/
/* For testing animations
new msg[128+1];
new animlib[32+1];
new animname[32+1];
thisanimid = GetPlayerAnimationIndex(playerid);
if(lastanimid != thisanimid)
{
GetAnimationName(thisanimid,animlib,32,animname,32);
format(msg, 128, "anim(%d,%d): %s %s", lastanimid, thisanimid, animlib, animname);
lastanimid = thisanimid;
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}*/
return 1;
}
//----------------------------------------------------------