[Tutorial] Capturable zones with team assist system (for TDM and GW)
#6

Quote:
Originally Posted by Battlezone
View Post
Please consider checking the comments after each code explaining each part of the stocks before posting unuseful comments
Your Team_Stuff define won't be defined by me, this is a part of a TDM basics (more than 2 teams based)
If you don't even know how to define teams, then it's your problem, this tutorial is dedicated for helping tdm gamemodes scripters.
excuse me but this is just copying..
pawn Code:
stock ShowZone(zoneid) //the function for showing zones
{
    switch(tCP[zoneid]) //checking the team controlling a zone then applying the zone color
    {
        case TEAM_NOTHING:  GangZoneShowForAll(Zone[zoneid], -66);
        case TEAM_AFRICA:   GangZoneShowForAll(Zone[zoneid], 0xFF9900AA);
        case TEAM_AUSTRALIA:    GangZoneShowForAll(Zone[zoneid], 0x9400D3AA);
        case TEAM_AMERICA:  GangZoneShowForAll(Zone[zoneid], 0x0000BBAA);
        case TEAM_EUROPE:   GangZoneShowForAll(Zone[zoneid], 0x15FF0055);
        case TEAM_ASIA: GangZoneShowForAll(Zone[zoneid], 0xFF000090);
    }
}
you didn't even say that You should define your own team and of course I know how to define my own team but some people doesn't instead of doing the above you could do:
pawn Code:
stock ShowZone(zoneid) //the function for showing zones
{
    switch(tCP[zoneid]) //checking the team controlling a zone then applying the zone color
    {
        case TEAM_AFRICA:   GangZoneShowForAll(Zone[zoneid], 0xFF9900AA);//CHANGE TO YOUR TEAM HERE

    }
}
For example.
Also you barely explained something there! [Except the new and define]

also this!
pawn Code:
switch(PlayerInfo[playerid][Vip]) // (OPTIONAL: Reducing capture timer if a player is VIP)
            {
                case 0: //VIP level 0
                {
                    ZUpdateTimer[zoneid] = SetTimerEx("ZUpdate", 1000, 1, "di", playerid, zoneid); // 1000*25 = 25000 milliseconds = 25 seconds
                    SendClientMessage(playerid, 0xFFFFFFFF,"| Stay in this checkpoint for 25 seconds to capture this zone. |");
                    }
                case 1:
                {
                    ZUpdateTimer[zoneid] = SetTimerEx("ZUpdate", 800, 1, "di", playerid, zoneid); // 800*25 = 20000 milliseconds = 20 seconds
                    SendClientMessage(playerid, 0xFFFFFFFF,"| Stay in this checkpoint for 20 seconds to capture this zone. |");
                }
                case 2:
                {
                    ZUpdateTimer[zoneid] = SetTimerEx("ZUpdate", 600, 1, "di", playerid, zoneid); // 600*25 = 15000 milliseconds = 15 seconds
                    SendClientMessage(playerid, 0xFFFFFFFF,"| Stay in this checkpoint for 15 seconds to capture this zone. |");
                    }
                case 3:
                {
                    ZUpdateTimer[zoneid] = SetTimerEx("ZUpdate", 400, 1, "di", playerid, zoneid); // 400*25 = 10000 milliseconds = 10 seconds
                        SendClientMessage(playerid, 0xFFFFFFFF,"| Stay in this checkpoint for 10 seconds to capture this zone. |");
                    }
            }
are you kidding me? how can the players know about VIP and stuff? I am not trying to be mean but I am trying to say that you did something wrong by copying your codes and posting it here as it won't help the players and they will get about billion of errors when they try to compile it, If you want to do a useful thing then you need to test before you post
Reply


Messages In This Thread
Capturable zones + team assist system (for the first time on samp forums) - by Battlezone - 01.09.2014, 12:23
Re: Capturable zones with team assist system (for TDM and GW) - by Mitchelll - 06.11.2014, 13:18
Re: Capturable zones with team assist system (for TDM and GW) - by iFarbod - 06.11.2014, 14:00
Re: Capturable zones with team assist system (for TDM and GW) - by Eth - 06.11.2014, 16:19
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 07.11.2014, 13:55
Re: Capturable zones with team assist system (for TDM and GW) - by Eth - 07.11.2014, 22:19
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 08.11.2014, 18:55
Re: Capturable zones with team assist system (for TDM and GW) - by Eth - 08.11.2014, 19:24
Re: Capturable zones with team assist system (for TDM and GW) - by Ryz - 10.11.2014, 02:44
Re: Capturable zones with team assist system (for TDM and GW) - by fahlevy - 18.11.2014, 10:15
Re: Capturable zones with team assist system (for TDM and GW) - by iReacheR - 18.11.2014, 17:38
Re: Capturable zones with team assist system (for TDM and GW) - by Ryz - 26.11.2014, 16:38
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 22.12.2014, 16:46
Re: Capturable zones with team assist system (for TDM and GW) - by Zeel - 27.12.2014, 08:46
Re: Capturable zones with team assist system (for TDM and GW) - by AgusZ - 28.12.2014, 03:50
Re: Capturable zones with team assist system (for TDM and GW) - by BaggyB - 28.12.2014, 14:51
Re: Capturable zones with team assist system (for TDM and GW) - by Arxalan - 30.12.2014, 10:05
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 30.12.2014, 14:52
Re: Capturable zones with team assist system (for TDM and GW) - by Neufox - 03.01.2015, 13:09
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 03.01.2015, 14:25
Re: Capturable zones with team assist system (for TDM and GW) - by Arxalan - 03.01.2015, 14:51
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 03.01.2015, 16:20
Re: Capturable zones with team assist system (for TDM and GW) - by AchievementMaster360 - 03.01.2015, 18:24
Re: Capturable zones with team assist system (for TDM and GW) - by Arxalan - 04.01.2015, 09:01
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 04.01.2015, 09:17
Re: Capturable zones with team assist system (for TDM and GW) - by Arxalan - 04.01.2015, 09:25
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 04.01.2015, 12:16
Re: Capturable zones with team assist system (for TDM and GW) - by AgusZ - 05.01.2015, 07:12
Re: Capturable zones with team assist system (for TDM and GW) - by qazwsx - 18.01.2015, 07:44
Re: Capturable zones with team assist system (for TDM and GW) - by Battlezone - 18.01.2015, 08:11
Re: Capturable zones with team assist system (for TDM and GW) - by HydraHumza - 26.01.2015, 14:50

Forum Jump:


Users browsing this thread: 7 Guest(s)