Jump to content
  • 0

Ajutor va rog!


ReaxoR

Question

Am si eu in GM un sistem de war! Cand dau /war merge bine si incepe batalia pe teritoriu iar dp un timp warul se opreste 0-0 oricat ar fi dar chestia asta nu tot timpul warul e setat la 15 minute si el cateodata se opreste dp 4-5 minute!Ma pueti ajuta sa rezolv problema va rog!

[MAP]Noul Cartier - http://www.sa-mp.ro/forum/index.php?topic=31520.0

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

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

{

    if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15)

{

for(new z=0; z<sizeof(ZoneInfo); z++)

{

    if(IsPlayerInZone(playerid,z))

    {

        if(TimeTakeZone == 0)

        {

            if(takezone == 1)

            {

                SendClientMessage(playerid, COLOR_GRAD1, "{FF0000}• {FFFFFF}Exista alt war care a inceput !");

}

else

{

    new leader[30];

    format(leader,sizeof(leader),"%s" ,ZoneInfo[GetPlayerZone(playerid)][zOwner]);

    #define min 20000

GetPlayerName(playerid, sendername, sizeof(sendername));

    if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 12)

    {

        SendClientMessage(playerid, COLOR_GRAD1, "Acest teritoriu va apartine deja.");

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 13)

    {

        SendClientMessage(playerid, COLOR_GRAD1, "Acest teritoriu va apartine deja.");

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 5)

    {

        SendClientMessage(playerid, COLOR_GRAD1, "Acest teritoriu va apartine deja.");

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 6)

    {

        SendClientMessage(playerid, COLOR_GRAD1, "Acest teritoriu va apartine deja.");

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 14)

    {

        SendClientMessage(playerid, COLOR_GRAD1, "Acest teritoriu va apartine deja.");

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 15)

    {

        SendClientMessage(playerid, COLOR_GRAD1, "Acest teritoriu va apartine deja.");

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 13)

    {

        format(string, sizeof(string), "{FFFF00}War Info: The Stracci Family ataca un teritoriu care apartine The Corleone Family !");

        SendClientMessageToAll(-1, string);

        takezone=1;

                        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), 0xFF0000AA);

    timerdududrago=SetTimer("dududrago",min*20,0);

    TimeTakeZone = 0*0;

    duduvsdrago = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 13)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {FA7406}Duduianu {FFFFFF} ataca teritoriul lui {54575A}Camataru",sendername,leader);

        SendClientMessageToAll(-1, string);

        takezone=1;

                        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Duduianu);

    timerduducama=SetTimer("duducama",min*30,0);

    TimeTakeZone = 0*0;

    duduvscama = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 13)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {FA7406}Duduianu {FFFFFF} ataca teritoriul lui {22C904}Sadoveanu",sendername,leader);

        SendClientMessageToAll(-1, string);

        takezone=1;

                        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Duduianu);

    timerdudusado=SetTimer("dudusado",min*30,0);

    TimeTakeZone = 0*0;

    duduvssado = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 13)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {FA7406}Duduianu {FFFFFF} ataca teritoriul lui {F10B9D}Capone",sendername,leader);

        SendClientMessageToAll(-1, string);

        takezone=1;

                        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Duduianu);

    timerduducapo=SetTimer("duducapo",min*30,0);

    TimeTakeZone = 0*0;

    duduvscapo = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 13)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {FA7406}Duduianu {FFFFFF} ataca teritoriul lui {AB3C05}Corsicanu",sendername,leader);

        SendClientMessageToAll(-1, string);

        takezone=1;

                        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Duduianu);

    timerduducorsi=SetTimer("duducorsi",min*30,0);

    TimeTakeZone = 0*0;

    duduvscorsi = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 12)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {22C904}Sadoveanu {FFFFFF} ataca teritoriul lui {0684FA}Dragonu",sendername,leader);

        SendClientMessageToAll( -1, string);

        takezone=1;

        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Sadoveanu);

                        timersadodrago=SetTimer("sadodrago",min*30,0);

                      TimeTakeZone = 0*0;

                        sadovsdrago = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 12)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {22C904}Sadoveanu {FFFFFF} ataca teritoriul lui {54575A}Camataru",sendername,leader);

        SendClientMessageToAll( -1, string);

        takezone=1;

        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Sadoveanu);

    timersadocama=SetTimer("sadocama",min*30,0);

    TimeTakeZone = 0*0;

    sadovscama = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 12)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {22C904}Sadoveanu{FFFFFF} ataca teritoriul lui {FA7406}Duduianu",sendername,leader);

        SendClientMessageToAll( -1, string);

        takezone=1;

        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Sadoveanu);

    timersadodudu=SetTimer("sadodudu",min*30,0);

    TimeTakeZone = 0*0;

    sadovsdudu = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 12)

    {

                            format(string, sizeof(string), "{FFFFFF}Liderul %s de la {22C904}Sadoveanu {FFFFFF} ataca teritoriul lui {F10B9D}Capone",sendername,leader);

        SendClientMessageToAll( -1, string);

        takezone=1;

        ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Sadoveanu);

    timersadocapo=SetTimer("sadocapo",min*30,0);

    TimeTakeZone = 0*0;

    sadovscapo=1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 12)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {22C904}Sadoveanu {FFFFFF} ataca teritoriul lui {AB3C05}Corsicanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Sadoveanu);

    timersadocorsi=SetTimer("sadocorsi",min*30,0);

    TimeTakeZone = 0*0;

    sadovscorsi = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 14)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {F10B9D}Capone {FFFFFF} ataca teritoriul lui {0684FA}Dragonu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Capone);

    timercapodrago=SetTimer("capodrago",min*30,0);

    TimeTakeZone = 0*0;

    capovsdrago = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 14)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {F10B9D}Capone {FFFFFF} ataca teritoriul lui {54575A}Camataru",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Capone);

    timercapocama=SetTimer("capocama",min*30,0);

    TimeTakeZone = 0*0;

    capovscama=1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 14)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {F10B9D}Capone {FFFFFF} ataca teritoriul lui {22C904}Sadoveanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Capone);

    timercaposado=SetTimer("caposado",min*30,0);

    TimeTakeZone = 0*0;

    capovssado = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 14)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {F10B9D}Capone {FFFFFF}ataca teritoriul lui {FA7406}Duduianu ",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Capone);

    timercapodudu=SetTimer("capodudu",min*30,0);

    TimeTakeZone = 0*0;

    capovsdudu = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 14)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {F10B9D}Capone {FFFFFF} ataca teritoriul lui {AB3C05}Corsicanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

  GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Capone);

  timercapocorsi=SetTimer("capocorsi",min*30,0);

  TimeTakeZone = 0*0;

  capovscorsi = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 15)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {AB3C05}Corsicanu {FFFFFF} ataca teritoriul lui {0684FA}Dragonu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Corsicanu);

    timercorsidrago=SetTimer("corsidrago",min*30,0);

    TimeTakeZone = 0*0;

    corsivsdrago = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 15)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {AB3C05}Corsicanu {FFFFFF} ataca teritoriul lui {54575A}Camataru",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Corsicanu);

    timercorsicama=SetTimer("corsicama",min*30,0);

    TimeTakeZone = 0*0;

    corsivscama =1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 15)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {AB3C05}Corsicanu {FFFFFF} ataca teritoriul lui {22C904}Sadoveanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Corsicanu);

    timercorsisado=SetTimer("corsisado",min*30,0);

    TimeTakeZone = 0*0;

    corsivssado = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 15)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {AB3C05}Corsicanu {FFFFFF}ataca teritoriul lui {FA7406}Duduianu ",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Corsicanu);

    timercorsidudu=SetTimer("corsidudu",min*30,0);

    TimeTakeZone = 0*0;

    corsivsdudu = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 15)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {AB3C05}Corsicanu {FFFFFF} ataca teritoriul lui {F10B9D}Capone",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

  GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Corsicanu);

  timercorsicapo=SetTimer("corsicapo",min*30,0);

  TimeTakeZone = 0*0;

  corsivscapo = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 5)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {0684FA}Dragonu {FFFFFF} ataca teritoriul lui {54575A}Camataru",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Dragonu);

    timerdragocama=SetTimer("dragocama",min*30,0);

    TimeTakeZone = 0*0;

    dragovscama = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 5)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {0684FA}Dragonu {FFFFFF} ataca teritoriul lui {22C904}Sadoveanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Dragonu);

    timerdragosado=SetTimer("dragosado",min*30,0);

    TimeTakeZone = 0*0;

    dragovssado =1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 5)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {0684FA}Dragonu {FFFFFF} ataca teritoriul lui {FA7406}Duduianu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Dragonu);

    timerdragodudu=SetTimer("dragodudu",min*30,0);

    TimeTakeZone = 0*0;

    dragovsdudu = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 5)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {0684FA}Dragonu {FFFFFF}ataca teritoriul lui {F10B9D}Capone",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Dragonu);

    timerdragocapo=SetTimer("dragocapo",min*30,0);

    TimeTakeZone = 0*0;

    dragovscapo = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 5)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {0684FA}Dragonu {FFFFFF} ataca teritoriul lui {AB3C05}Corsicanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

  GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Dragonu);

  timerdragocorsi=SetTimer("dragocorsi",min*30,0);

  TimeTakeZone = 0*0;

  dragovscorsi = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 6)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {54575A}Camataru {FFFFFF} ataca teritoriul lui {0684FA}Dragonu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Camataru);

    timercamadrago=SetTimer("camadrago",min*30,0);

    TimeTakeZone = 0*0;

    camavsdrago = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 6)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {54575A}Camataru {FFFFFF} ataca teritoriul lui {22C904}Sadoveanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Camataru);

    timercamasado=SetTimer("camasado",min*30,0);

    TimeTakeZone = 0*0;

    camavssado =1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 6)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {54575A}Camataru {FFFFFF} ataca teritoriul lui {FA7406}Duduianu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Camataru);

    timercamadudu=SetTimer("camadudu",min*30,0);

    TimeTakeZone = 0*0;

    camavsdudu = 1;

    }

    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 6)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {54575A}Camataru {FFFFFF}ataca teritoriul lui {F10B9D}Capone",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

    GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Camataru);

    timercamacapo=SetTimer("camacapo",min*30,0);

    TimeTakeZone = 0*0;

    camavscapo = 1;

    }

        else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 6)

    {

        format(string, sizeof(string), "{FFFFFF}Liderul %s de la {54575A}Camataru {FFFFFF} ataca teritoriul lui {AB3C05}Corsicanu",sendername,leader);

      SendClientMessageToAll( -1, string);

      takezone=1;

      ZoneInfo[z][zTakeOn] = 1;

  GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_Camataru);

  timercamacorsi=SetTimer("camacorsi",min*30,0);

  TimeTakeZone = 0*0;

  camavscorsi = 1;

    }

}

}

else

{

format(string,256,"  Trebuie sa asteptati 20 de minute pentru un alt war... (%d secunde)",TimeTakeZone);

SendClientMessage(playerid, COLOR_GREY, string);

}

    }

}

    }

    else SendClientMessage(playerid, COLOR_GRAD1, "Doar lideri au permisiunea de a o folosi !");

}[/pawn]

[MAP]Noul Cartier - http://www.sa-mp.ro/forum/index.php?topic=31520.0

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.