SA-MP Forums Archive
Turfwar system? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Turfwar system? (/showthread.php?tid=428387)



Turfwar system? - davve95 - 05.04.2013

Hi!


I'm working on my turfwar system,
but having some problem/recommendations:

So if another team tries to take the turf should I delete the current
and create a new gangzone but with right color?, and flash it in right color?...

Well, I hope you understand because not that easy to explain lol! ^^...
+ When you're tired..

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == GolfTurf)
    {
        if(gTeam[playerid] == 0)
        {
        SetTimer("GolfTurfT", 9000,false); //If the Clowns tries to take turf.
        GangZoneShowForPlayer(playerid, GolfZone, 0xFF71B896);
        GangZoneFlashForAll(GolfZone,GetPlayerColor(playerid));
        }
        if(gTeam[playerid] == 1)
        {
        SendClientMessage(playerid, Clown, "Test lol");
        }
        return 1;
    }
Timer:

pawn Код:
public GolfTurfT(playerid)
{
    GangZoneStopFlashForAll(GolfZone);
}
Iv'e figured it out so far, by my own...



Thanks a lot for help, and I hope you will understand what I mean ^^..


Re: Turfwar system? - Camorra - 05.04.2013

You can change the turf color and add a loadturfs after that finish to take then it'll auto change it.


Re: Turfwar system? - davve95 - 05.04.2013

Quote:
Originally Posted by Camorra
Посмотреть сообщение
You can change the turf color and add a loadturfs after that finish to take then it'll auto change it.
Thanks alot!,

but what do you mean with loadturfs?.


Re : Turfwar system? - DaRk_RaiN - 05.04.2013

Hey!
No, you don't need to delete the zone ect.
Just use this function to set the zone color to the team.
GangZoneShowForAll
Example:
pawn Код:
GangZoneShowForAll(GolfZone,GetPlayerColor(playerid));



Re: Re : Turfwar system? - davve95 - 05.04.2013

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Hey!
No, you don't need to delete the zone ect.
Just use this function to set the zone color to the team.
GangZoneShowForAll
Example:
pawn Код:
GangZoneShowForAll(GolfZone,GetPlayerColor(playerid));
Okay I see thanks a lot to both! .