Hi everyone, if you guys could please help me. I'm a beginner in the process of making my first GM.
So I'm currently scripting (or at least trying) A Los Santos Gang Wars based script. I have Teams, created. a couple of the basics.. etc.. But Now I've come to the point where I am scripting in Gang Zones. I've created a couple.. But They're just there. (Can't capture them yet) I used the X-treme Veicle plotter also known as ultimate mapper, To create the gang zones on the map..But to make a long story short, What do I need to script so players can capture them..I tried the tut on forums but doesn't really seem to work out for me. here are the Team defines, zones that i've created.
Код:
public OnGameModeInit()
{
//Game Mode Text
SetGameModeText("LSGC V0.1");
//Team Skin Selection
AddPlayerClassEx(0,105,2498.5513,-1643.3907,13.7826,170.3298,24,1200,0,0,0,0); // Grove St. Families
AddPlayerClassEx(0,106,2512.8459,-1650.8333,14.0938,129.9094,24,1200,0,0,0,0); // Grove St. Families
AddPlayerClassEx(0,107,2521.9739,-1678.6521,15.4970,87.2956,24,1200,0,0,0,0); // Grove St. Families
AddPlayerClassEx(1,102,2132.1604,-1260.2839,23.9922,352.6552,24,1200,0,0,0,0); // Jefferson Ballas
AddPlayerClassEx(1,103,2090.5195,-1185.3867,27.0571,78.5595,24,1200,0,0,0,0); // Jefferson Ballas
AddPlayerClassEx(1,104,2023.1022,-1122.4736,26.2031,184.8909,24,1200,0,0,0,0); // Jefferson Ballas
AddPlayerClassEx(2,114,1942.2184,-2061.9734,13.5469,8.6039,24,1200,0,0,0,0); // Varrio Los Aztecas
AddPlayerClassEx(2,115,1953.4906,-2034.9033,13.5469,85.9196,24,1200,0,0,0,0); // Varrio Los Aztecas
AddPlayerClassEx(2,116,1871.8035,-1912.7625,15.2568,179.2570,24,1200,0,0,0,0); // Varrio Los Aztecas
AddPlayerClassEx(3,121,986.1863,-1095.2571,27.6041,95.5878,24,1200,0,0,0,0); // Da Nang Boys
AddPlayerClassEx(3,122,1051.1593,-1057.5106,34.7969,358.2203,24,1200,0,0,0,0); // Da Nang Boys
AddPlayerClassEx(3,123,1142.9535,-1094.6843,28.1875,266.0742,24,1200,0,0,0,0); // Da Nang Boys
AddPlayerClassEx(4,173,768.3132,-1746.1371,13.0773,87.0415,24,1200,0,0,0,0); // Verona Beach Rifa
AddPlayerClassEx(4,174,765.9981,-1606.2140,13.8039,89.1443,24,1200,0,0,0,0); // Verona Beach Rifa
AddPlayerClassEx(4,175,693.1142,-1602.1147,15.0469,356.2792,24,1200,0,0,0,0); // Verona Beach Rifa
AddPlayerClassEx(5,108,2770.3306,-1621.3269,10.9272,89.6668,24,1200,0,0,0,0); // East beach Vagos
AddPlayerClassEx(5,109,2853.7502,-1365.8206,14.1641,270.2298,24,1200,0,0,0,0); // East beach Vagos
AddPlayerClassEx(5,110,2848.7920,-1309.4965,14.6324,277.5227,24,1200,0,0,0,0); // East beach Vagos
AddPlayerClassEx(6,285,1584.3024,-1677.8030,5.8970,275.3557,24,1200,0,0,0,0); // Gang Control
AddPlayerClassEx(7,223,897.9932,-916.6793,42.6202,184.6082,24,1200,0,0,0,0); // Administrators
AddPlayerClassEx(7,296,899.5809,-916.6867,42.6016,185.2349,24,1200,0,0,0,0); // Administrators
AddPlayerClassEx(7,295,900.7305,-916.7100,42.6016,188.0549,24,1200,0,0,0,0); // Administrators
//Gang Zones
TEAM_GROVE_ZONE = GangZoneCreate(1934.797, -1938.465, 2600.293, -1602.907);
TEAM_BALLAS_ZONE = GangZoneCreate(1851.135, -1468.684, 2364.517, -1137.074);
TEAM_AZTECAS_ZONE = GangZoneCreate(1687.613, -2179.277, 1961.417, -1741.078);
TEAM_DANANGBOYS_ZONE = GangZoneCreate(968.8766, -1330.513, 1474.654, -959.4252);
TEAM_SFRIFA_ZONE = GangZoneCreate(660.8469, -1895.04, 1079.159, -1389.729);
TEAM_VAGOS_ZONE = GangZoneCreate(2619.307, -2262.18, 2931.14, -1263.401);
TEAM_SWAT_ZONE = GangZoneCreate(1326.343, -1875.301, 1691.416, -1444.997);
TEAM_ADMINS_ZONE = GangZoneCreate(866.2001, -963.3729, 1444.231, -694.9265);
return 1;
}