Turfwar system?
#1

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 ^^..
Reply
#2

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

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?.
Reply
#4

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));
Reply
#5

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! .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)