Jump to content
  • 0

Ajutor Rival War


KiLLeR1122

Question

3 answers to this question

Recommended Posts

GAngzoneStop:

[pawn]public StopLYWar()

{

    if(TurfAttackedLY == 1)

    {

        if(YakuzaScore >= 50)

{

    for(new i = 0;i<MAX_PLAYERS;i++)

{

    if(IsPlayerConnected(i))

    {

    if(PlayerInfo[pMember] == 5 || PlayerInfo[pLeader] == 5)

    {

    GangZoneStopFlashForPlayer(i, TurfID[1]);

    TextDrawHideForPlayer(i, Text:rwp);

    TextDrawHideForPlayer(i, Text:lcnt);

    TextDrawHideForPlayer(i, Text:ykzt);

    TextDrawHideForPlayer(i, Text:presret);

    TextDrawHideForPlayer(i, Text:ykzpos);

    TextDrawHideForPlayer(i, Text:lcnpos);

                    new Text:TDlose = TextDrawCreate(200.0, 400.0, "~r~The ~y~Yakuza ~r~have taken over our turf in ~y~Dom's !");

                    TextDrawFont(TDlose, 0);

                    TextDrawSetShadow(TDlose, 0);

                    TextDrawSetOutline(TDlose, 1);

                    TextDrawColor(TDlose, COLOR_RED);

                    TimeTextForPlayer(i, TDlose, 10000);

                    InRWarPlayer = 0;

}[/pawn]

Functia continua !

GangZoneStart: NU AM ASA CEVA !

GAngZoneFlash: [pawn] GangZoneFlashForPlayer(i, TurfID[turfid], 0xFF0000C7);

    InRWarPlayer = 1;

}

}

}

}

}

return 1;

}

[/pawn]

Te-am ajutat cu ceva? Da-mi un POZITIV !

Link to comment
Share on other sites

Atunci cand ti-ai creat rival wars sa se salveze intr-un .cfg (ex: turfs.cfg) sau cum ai tu... Deci acolo trebuie sa fie salvate culorile deoarece atunci cand cuceresti trebuie sa primeasca cealalta culoarea, de exemplu eu am un sistem de war rival facut de mine si le-am definit cu zOwner,zColor,Float:zMinX,etc...

zColor = reprezinta culoarea gangului

Iar in turfs.cfg ar trebuie sa apara de genu

owner|0xFF000069|Float:zMinX|Float:zMinY|Float:zMinX|Float:zMinY
P.S: Daca stii putin scripting cred ca ai inteles la ce ma refer, trebuie sa iti faci o noua functie care sa fie sallvata in .cfg-ul tau care reprezinta culoarea. Trebuie sa folosesti si ShowZones,HideZones Ca sa setezi culoarea trebuie sa faci un stock
stock GetTeamZoneColor(teamid)
{
    switch(teamid)
    {
        case TEAM_GROVE: return 0x00FF0096;
        case TEAM_BALLAS: return 0x80008096;
        case TEAM_LCN: return 0xFF800096;
        case TEAM_YAKUZA: return 0x00400096;
        case TEAM_VAGOS: return 0xFFFF0096;
        case TEAM_AZTECAS: return 0x01FCFFC8;
    }
    return -1;
}

In fine e foarte greu pentru un incepator deoarece acest GetTeamZoneColor trebuie pus in foarte multe functii, la onplayerspawn,atunci cand se ataca 2 ganguri/mafii,etc...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.