[Pomoc] Kapije za org/bande

Započeo Zlatan_Ibrahimovic, Novembar 15, 2010, 16:03:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Zlatan_Ibrahimovic

Trebao bih pomoc u vezi kapija.Danas sam dodao za 6. bandu i radilo je u vezi kapija.Poslije kad sam dodao za 9,10 i 4 org onda se sve poremetilo.Neke se ne mogu otvoriti a neke mogu.A za sve org/bande mi je komanda bila /otvori.Evo pa provjerite te kapije

Citatif(!strcmp(cmdtext, "/otvori", true)) // By Luis
{
   if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
      {
           MoveDynamicObject(pdgate1,X,Y,Z, 0.8);
           SetTimer("GateClose", 12000, 0);
           SendClientMessage(playerid, COLOR_BLUE,"Garaza je otvorena,zatvorit ce seza 7 sekundi.");
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara garazu.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           PlayerPlaySound(playerid, 1153, X,Y,Z);
      }
      else if (PlayerToPoint(15, playerid,X,Y,Z))
      {
           DestroyObject( pdgate2 );
           pdgate3 = CreateDynamicObject(968,X,Y,Z,0.000000,0.000000,270.972869);
           SetTimer("GateClose5", 6000, 0);
           SendClientMessage(playerid, COLOR_BLUE,"Kapija je otvorena,zatvorit ce seza 10 sekundi.");
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara kapiju.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      }
      else if (PlayerToPoint(15, playerid,X,Y,Z,12.6))
      {
           MoveDynamicObject(armygate1,X,Y,Z, 12.6, 3.5);
           SetTimer("GateClose2", 7000, 0);
           SendClientMessage(playerid, COLOR_BLUE,"Kapija vojnika Nr. 1 je otvorena,zatvorit ce seza 7 sekundi.");
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara kapija vojnika #1.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      }
      else if (PlayerToPoint(15, playerid,X,Y,Z,12.6))
      {
           MoveDynamicObject(armygate2,X,Y,Z, 12.6, 3.5);
           SetTimer("GateClose2", 7000, 0);
           SendClientMessage(playerid, COLOR_BLUE,"Kapija vojnika Nr. 2 je otvorena,zatvorit ce seza 7 sekundi.");
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara kapija vojnika #2.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      }
      else if (PlayerToPoint(15, playerid,X,Y,Z))
      {
           MoveDynamicObject(hspdgate,X,Y,Z, 1.5);
           SetTimer("GateClose4", 7000, 0);
           SendClientMessage(playerid, COLOR_BLUE,"HSPD kapija je otvorena i zatvorit ce seza 7 sekundi.");
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapija.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      }
      else { SendClientMessage(playerid, COLOR_GREY,"Predaleko ste."); }
}
   else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(lucianogate,X,Y,Z, 2.2);
           SetTimer("GateClose6", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapija.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
       else { SendClientMessage(playerid, COLOR_GREY,"Predaleko ste."); }
   }
   else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(gate10,X,Y,Z, 2.2);
           SetTimer("GateClose10", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
       else { SendClientMessage(playerid, COLOR_GREY,"Predaleko ste."); }
}
   else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(teror1,X,Y,Z, 2.2);
           SetTimer("GateClose11", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju 1.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }

       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(teror2,X,Y,Z, 2.2);
           SetTimer("GateClose11", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju 2.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
   }
   else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(hitman1,X,Y,Z, 2.2);
           SetTimer("GateClose12", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara hitman kapiju 1.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }

       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(hitman2,X,Y,Z, 2.2);
           SetTimer("GateClose12", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara hitman kapiju 2.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           }
       }
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(hitman3,X,Y,Z, 2.2);
           SetTimer("GateClose12", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara hitman kapiju 3.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
         }
   }
   else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(cnn1,X,Y,Z, 2.2);
           SetTimer("GateClose26", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara cnn kapiju 1 .", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(cnn2,X,Y,Z, 2.2);
           SetTimer("GateClose26", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara cnn kapiju 2 .", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           }
   }
   else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(abgate,X,Y,Z, 2.2);
           SetTimer("GateClose13", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju .", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           }
}
   else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(md1,X,Y,Z, 2.2);
           SetTimer("GateClose22", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara ** kapiju 1.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           }
       }
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(md2,X,Y,Z, 2.2);
           SetTimer("GateClose22", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara ** kapiju 2.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
  }
   else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(bbgate,X,Y,Z, 2.2);
           SetTimer("GateClose14", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
   else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(scm1,X,Y,Z, 2.2);
           SetTimer("GateClose20", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju 1.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(scm2,X,Y,Z, 2.2);
           SetTimer("GateClose20", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju 2.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(scm3,X,Y,Z, 2.2);
           SetTimer("GateClose20", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju 3.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
   }
   else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(rdgate,X,Y,Z, 2.2);
           SetTimer("GateClose15", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara *** kapiju.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           }
   }
   else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
   {
       if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(taxi,X,Y,Z, 2.2);
           SetTimer("GateClose26", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara taxi kapiju.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           }
   }
   else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
   {
      if (PlayerToPoint(15, playerid,X,Y,Z))
       {
           MoveDynamicObject(urgate1,X,Y,Z, 2.2);
           SetTimer("GateClose16", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara ** kapiju 1.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
       if (PlayerToPoint(15, playerid,1287.86999512,-967.18847656,34.90460205))
       {
           MoveDynamicObject(urgate2,1287.86914062,-967.18847656,31.15460205, 2.2);
           SetTimer("GateClose16", 7000, 0);
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "* %s uzima svoj daljinski i otvara ** kapiju 2.", sendername);
           ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       }
}

Ako netko zna neka odgovori.Ovo mi treba hitno.
Poslednja Izmena: Novembar 15, 2010, 16:04:58 POSLE PODNE od Luis Mendoza