[Tutorial] [New] How to make capture zone system (no more code repeating)
#19

Quote:
Originally Posted by stormchaser206
View Post
How do I make the zone unowned at start?

Thanks!
Its easy by creating a new team at the last index of your teams array.

Example:
pawn Code:
new const gTeamData[][e_TEAM_DATA] =
{
    {"Germany", 0xFFFF90FF},
    {"India", 0xFF90FFFF},
    {"Unknown Team", 0x505050FF} // This is the last index i.e. 2
};

new const gCaptureZone[][e_CAPTURE_ZONE] =
{
    {"Big Ear", {-437.5,1513.671875, -244.140625,1636.71875}, {-311.0136,1542.9733,75.5625}, 2} // Set the team id to 2
};
But if you don't want the system to print messages for unknown team, just edit the SendClientMessageToAll parts where team names are used.
Reply


Messages In This Thread
[New] How to make capture zone system (no more code repeating) - by Gammix - 23.08.2015, 09:25
Re: [New] How to make capture zone system (no more code repeating) - by Hemeei - 23.08.2015, 09:29
Re: [New] How to make capture zone system (no more code repeating) - by Karan007 - 23.08.2015, 09:34
Re: [New] How to make capture zone system (no more code repeating) - by jamesmith12 - 23.08.2015, 12:27
Re: [New] How to make capture zone system (no more code repeating) - by Hemeei - 23.08.2015, 12:32
Re: [New] How to make capture zone system (no more code repeating) - by Viki - 23.08.2015, 18:27
Re: [New] How to make capture zone system (no more code repeating) - by Cassy_ - 25.08.2015, 10:38
Re: [New] How to make capture zone system (no more code repeating) - by SEIFOUNE123 - 25.08.2015, 11:02
Re: [New] How to make capture zone system (no more code repeating) - by jamesmith12 - 25.08.2015, 14:15
Re: [New] How to make capture zone system (no more code repeating) - by HydraHumza - 25.08.2015, 17:05
Re: [New] How to make capture zone system (no more code repeating) - by N0FeaR - 13.12.2015, 21:31
Re: [New] How to make capture zone system (no more code repeating) - by Counterafk - 03.01.2016, 23:27
Re: [New] How to make capture zone system (no more code repeating) - by Gammix - 04.01.2016, 03:54
Re: [New] How to make capture zone system (no more code repeating) - by CrunchxNoy - 04.01.2016, 06:34
Re: [New] How to make capture zone system (no more code repeating) - by Counterafk - 04.01.2016, 14:43
Re: [New] How to make capture zone system (no more code repeating) - by aloveliday - 04.01.2016, 15:42
Re: [New] How to make capture zone system (no more code repeating) - by Gammix - 05.01.2016, 09:04
Re: [New] How to make capture zone system (no more code repeating) - by stormchaser206 - 16.03.2016, 02:35
Re: [New] How to make capture zone system (no more code repeating) - by Gammix - 16.03.2016, 02:47
Re: [New] How to make capture zone system (no more code repeating) - by stormchaser206 - 16.03.2016, 21:51
Re: [New] How to make capture zone system (no more code repeating) - by Gammix - 17.03.2016, 00:25
Re: [New] How to make capture zone system (no more code repeating) - by stormchaser206 - 17.03.2016, 02:33
Re: [New] How to make capture zone system (no more code repeating) - by Yultranions - 29.09.2016, 10:46
Re: [New] How to make capture zone system (no more code repeating) - by FreAkeD - 29.09.2016, 12:12
Re: [New] How to make capture zone system (no more code repeating) - by Hunud - 10.06.2017, 13:36
Re: [New] How to make capture zone system (no more code repeating) - by Gammix - 10.06.2017, 14:58
Re: [New] How to make capture zone system (no more code repeating) - by Hunud - 10.06.2017, 15:08
Re: [New] How to make capture zone system (no more code repeating) - by Gammix - 12.09.2017, 18:38
Re: [New] How to make capture zone system (no more code repeating) - by Psycho96 - 08.12.2017, 20:58
Re: [New] How to make capture zone system (no more code repeating) - by Gammix - 08.12.2017, 23:13

Forum Jump:


Users browsing this thread: 4 Guest(s)