05.01.2016, 09:04
Quote:
|
Gammix your script looks like awesome but i am very newbie about pawno so i did not understand what you explained about.
Could you complete the blanks with true numbers and names to be more specific? I mean i need more detail i did not make it. I just need an example script with fake number and coordinate zone names and other names.Please |
This array hods team's information. The first param is the team's name and the second is its color.
Syntax:
pawn Code:
{"team_name", team_color}
pawn Code:
new const gTeamData[][e_TEAM_DATA] =
{
{"Germany", 0xFFFF90FF}
};
pawn Code:
SetPlayerTeam(playerid, 0);
Secondly, the capture zone array:
You can add as many you want, just take care of the syntax only.
Syntax:
pawn Code:
{"zone_name", {minx, miny, maxx, maxy}, {cpx, cpy, cpz}, zone_owner_team}
Example:
pawn Code:
new const gCaptureZone[][e_CAPTURE_ZONE] =
{
{"Big Ear", {-437.5,1513.671875, -244.140625,1636.71875}, {-311.0136,1542.9733,75.5625}, 0}
};
pawn Code:
new const gTeamData[][e_TEAM_DATA] =
{
{"Germany", 0xFFFF90FF},
{"India", 0xFF90FFFF},
};
new const gCaptureZone[][e_CAPTURE_ZONE] =
{
{"Big Ear", {-437.5,1513.671875, -244.140625,1636.71875}, {-311.0136,1542.9733,75.5625}, 0}
};


