Jump to content
  • 0

BUG la o comanda


ShadowFirenze.it

Question

Salut, am o comanda buguita care inca nam reusit sa o rezolv asa ca o postez aici cu speranta ca cineva stie unde ar fi scrisa gresit.

[pawn] if(strcmp(cmd, "/acceptwar", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(acceptwar == 1)

            {

              if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pLeader] == 17)

                {

                    new alianta1, accepts;

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

{

if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pLeader] == 17)

{

alianta1++;

}

}

accepts++;

format(string, sizeof(string), "Leaderul %s a acceptat warul!", sendername);

SendRadioMessage(5, 0x33CCFFAA, string);

SendRadioMessage(17, 0x33CCFFAA, string);

SendRadioMessage(16, 0x33CCFFAA, string);

if(accepts == alianta1/2)

{

acceptwar = 0;

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");

SendClientMessageToAll(COLOR_BLUE,"{EE2C2C}Mafia{D3D3D3}-{97FFFF}VLA{D3D3D3}-{CD3278}Ballas {00FA9A}au acceptat WARUL!");

if(warzone == 1)

{

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona GS-LS!");

GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);

}

else if(warzone == 2)

{

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona BS-LS!");

GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);

}

else

{

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Red Country!");

GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);

}

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|_____WAR Started_____|");

SetTimer("WarOver", 1800000, 0);

TimeLeft = 1800;

wartimer2 = SetTimer("WarTime", 1000, 1);

for(new i;i < MAX_TEAMS;i++)

{

Killing = 0;

}

IsWar = true;

KillTimer(WarRefuseTime);

}

                }

else

                {

                    SendClientMessage(playerid, COLOR_GREY,"    Alianta adversa trebuie sa accepte !");

                }

}

else if(acceptwar == 2)

{

                if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 18)

                {

                    acceptwar = 0;

                    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");

                    SendClientMessageToAll(COLOR_BLUE,"{8B5A2B}Triads-{DBDB70}LSV{D3D3D3}-{66CD00}Grove {00FA9A}au acceptat WARUL!");

                    if(warzone == 1)

{

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona GS-LS!");

GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);

}

else if(warzone == 2)

{

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona BS-LS!");

GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);

}

else

{

SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Red Country!");

GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);

}

                    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");

SetTimer("WarOver", 1800000, 0);

TimeLeft = 1800;

wartimer2 = SetTimer("WarTime", 1000, 1);

                    for(new i;i < MAX_TEAMS;i++)

                    {

                        Killing = 0;

                    }

                    IsWar = true;

KillTimer(WarRefuseTime);

                }

else

                {

                    SendClientMessage(playerid, COLOR_GREY,"    Alianta adversa trebuie sa accepte !)");

                }

}

            else

            {

                SendClientMessage(playerid, COLOR_GREY, "  there wasn't any war proposed");

            }

        }

        return 1;

    }[/pawn]

Pentru membri din The Triads - Grove - LSV merge ( 6 - 15 - 18 ), pentru membrii din The Mafia / Ballas / VLA nu merge ( 5 - 16 - 17 )

signature.php?bg=000000&text=FFFFFF&border=a0a0a0&ip=93.119.26.222&port=7777&bg_image=
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.