pomoc oko /otvori

Započeo hamo, Septembar 07, 2009, 22:50:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

e imam problem hocu da mi jednom komandom i FBI , SWAT i ostala kompanija da otvraju svojekapije ali mi nikako ne uspjeva da ga ustimam
ovo je dole komanda i za /otvori i odmah na /zatvori kako sad da mi ostali otvaraju na komandu /otvori i /zatvori

pls pomoc ja kad pravim izbaca mi nekad don't send nekad warninng nekad radi ali kad hocu da otvorim bazu Pd od mi otvara SWAT jer se svatovac nalazi prvi na popisu komande /otvori


//___________________kapija pd garaza_______________________________________

   if(strcmp(cmd,"/otvoripd",true)==0)
{
   if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
   {
MoveObject(pdvrata, 1587.370972, -1638.394409, 18.846130,5.000);
SendClientMessage(playerid, COLOR_GRAD1, "Otvarate vrata PD garaze.");
}
return 1;
}
if(strcmp(cmd,"/zatvoripd",true)==0)
{
   if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
   {
MoveObject(pdvrata, 1587.356934, -1638.439819, 15.123281,5.000 );

SendClientMessage(playerid, COLOR_GRAD1, "Zatvarate vrata PD garaze.");
}
return 1;
}
Poslednja Izmena: Septembar 07, 2009, 23:53:10 POSLE PODNE od hamo

Nekuzim sta zelis reci da se sa istom komandom otvaraju 2 razlicite kapije ili sto
Ex CroHerze DM HEAD Administrator

turker_kc

pogledaj moj primjer i svoj primjer i pogledaj dal je sta drugacije  ::) ::)

/-------------------Kapija---------------------------

if(strcmp(cmd,"/Otvori",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
MoveObject(Kapija, x,y,z dok je otvoreno ,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata PD Baze.");
    }
else return SendClientMessage(playerid, COLOR_RED, "Nisi Clan organizacije PD.");
}


if(strcmp(cmd,"/Zatvori",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
MoveObject(Kapija, x,y,z dok je zatvoreno,7.000 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata PD Baze.");
    }
else return SendClientMessage(playerid, COLOR_GREEN, "Nisi Clan organizacije PD.");
}

//-------------------------------[pdgate>------------------------------------------------//
if(strcmp(cmd, "/openpd", true) == 0)
{
    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
   {
    MoveStreamObject(PDGATE,1598.102172,-1638.277832,14.609522,2.00);
SendClientMessage(playerid,COLOR_GREEN, "Otvarate kapiju PDa .");
         }
         else
         {
            SendClientMessage(playerid, COLOR_RED, "Niste pd/fbi clan!");
         }
return 1;
}
//-------------------------------[pdgate>------------------------------------------------//
if(strcmp(cmd, "/closepd", true) == 0)
{
    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
   {
    MoveStreamObject(PDGATE,1588.239868,-1638.272827,14.609522,2.00);
SendClientMessage(playerid,COLOR_GREEN, "Zatvarate kapiju PDa.");
         }
         else
         {
            SendClientMessage(playerid, COLOR_RED, "Niste  pd/fbi clan!");
         }
return 1;


evo probaj samo svoje kordinate ubaciti i onda javi
Ex CroHerze DM HEAD Administrator

evo ti garazna i prednja vrata :P

//--------------------------------------vrata-------------------------------------------------------
if (strcmp("/pdo", cmdtext, true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
MoveObject(pd, 1544.766357, -1627.689453, 9.431292, 5);  //-- LS --
SendClientMessage(playerid, COLOR_RED, "PD vrata otvorena !");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Clan PDa.");
}
return 1;
}
//--------------------------------------vrata-------------------------------------------------------
if (strcmp("/pdc", cmdtext, true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
MoveObject(pd, 1544.793823, -1627.692261, 15.156204, 5);  //-- LS --
SendClientMessage(playerid, COLOR_RED, "PD vrata zatvorena !");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Clan PDa.");
}
return 1;
}
//--------------------------------------vrata-------------------------------------------------------
if (strcmp("/pddo", cmdtext, true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
MoveObject(pd1, 1598.290039, -1638.205078, 15.230049, 5);  //-- LS --
SendClientMessage(playerid, COLOR_RED, "PD garazna vrata otvorena !");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Clan PDa.");
}
return 1;
}
//--------------------------------------vrata-------------------------------------------------------
if (strcmp("/pddc", cmdtext, true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
MoveObject(pd1, 1587.866821, -1638.250488, 15.155937, 5);  //-- LS --
SendClientMessage(playerid, COLOR_RED, "PD garazna vrata zatvorena !");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Clan PDa.");
}
return 1;
}

Ajde, Klikcite, Jos je u jajetu xD

On oce da svaka organizacija otvara svoju kapiju tom komandom a ne da sve organizacije otvaraju PD tom komandom kolko sam ja skuzio...


Znaci radi se sa else if(PlayerInfo.....

pa moze napravit :D uzima koomandu i nek mjenja ID orge i koordinate :S :D :D

Ajde, Klikcite, Jos je u jajetu xD

MA RADIJO SAM SA

else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)

ali mi izbaci warning

ovako sam ja radijo ali kad sam PD on mi otvori od FBI-a kapiju i tako sve izmjesano a samo jedu kapiju otvara i to PD a nisam clan PD vec sam FBI ili SWAT 

/___________________kapija pd garaza_______________________________________

   if(strcmp(cmd,"/otvoripd",true)==0)
{
   if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
   {
MoveObject(pdvrata, 1587.370972, -1638.394409, 18.846130,5.000);
SendClientMessage(playerid, COLOR_GRAD1, "Otvarate vrata PD garaze.");
}
return 1;
}
if(strcmp(cmd,"/zatvoripd",true)==0)
{
   if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
   {
MoveObject(pdvrata, 1587.356934, -1638.439819, 15.123281,5.000 );

SendClientMessage(playerid, COLOR_GRAD1, "Zatvarate vrata PD garaze.");
}
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] ==2)
   {
MoveObject(pdvrata, 1587.370972, -1638.394409, 18.846130,5.000);
SendClientMessage(playerid, COLOR_GRAD1, "Otvarate vrata FBI garaze.");
}
        if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
   {
MoveObject(pdvrata, 1587.356934, -1638.439819, 15.123281,5.000 );

SendClientMessage(playerid, COLOR_GRAD1, "Zatvarate vrata FBI garaze.");
}
      if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] ==3)
   {
MoveObject(pdvrata, 1587.370972, -1638.394409, 18.846130,5.000);
SendClientMessage(playerid, COLOR_GRAD1, "Otvarate vrata SWAT garaze.");
}
        if(PlayerInfo[playerid][pMember] ==3||PlayerInfo[playerid][pLeader] == 3)
   {
MoveObject(pdvrata, 1587.356934, -1638.439819, 15.123281,5.000 );

SendClientMessage(playerid, COLOR_GRAD1, "Zatvarate vrata SWAT garaze.");
}
return 1;
}
Poslednja Izmena: Septembar 07, 2009, 23:57:47 POSLE PODNE od hamo

Citat: hamo poslato Septembar 07, 2009, 23:56:41 POSLE PODNE
ovako sam ja radijo ali kad sam PD on mi otvori od FBI-a kapiju i tako sve izmjesano a samo jedu kapiju otvara i to PD a nisam clan PD vec sam FBI ili SWAT 

/___________________kapija pd garaza_______________________________________

   if(strcmp(cmd,"/otvoripd",true)==0)
{
   if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
   {
MoveObject(pdvrata, 1587.370972, -1638.394409, 18.846130,5.000);
SendClientMessage(playerid, COLOR_GRAD1, "Otvarate vrata PD garaze.");
}
return 1;
}
if(strcmp(cmd,"/zatvoripd",true)==0)
{
   if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
   {
MoveObject(pdvrata, 1587.356934, -1638.439819, 15.123281,5.000 );

SendClientMessage(playerid, COLOR_GRAD1, "Zatvarate vrata PD garaze.");
}
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] ==2)
   {
MoveObject(pdvrata, 1587.370972, -1638.394409, 18.846130,5.000);
SendClientMessage(playerid, COLOR_GRAD1, "Otvarate vrata FBI garaze.");
}
        if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
   {
MoveObject(pdvrata, 1587.356934, -1638.439819, 15.123281,5.000 );

SendClientMessage(playerid, COLOR_GRAD1, "Zatvarate vrata FBI garaze.");
}
      if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] ==3)
   {
MoveObject(pdvrata, 1587.370972, -1638.394409, 18.846130,5.000);
SendClientMessage(playerid, COLOR_GRAD1, "Otvarate vrata SWAT garaze.");
}
        if(PlayerInfo[playerid][pMember] ==3||PlayerInfo[playerid][pLeader] == 3)
   {
MoveObject(pdvrata, 1587.356934, -1638.439819, 15.123281,5.000 );

SendClientMessage(playerid, COLOR_GRAD1, "Zatvarate vrata SWAT garaze.");
}
return 1;
}


pa moras za drugu organizaciju definirat druga vrata a tebi je sve pdvrata....

kako ga definirati kako da sad mi  FBI i SWAT otvaraju svoje kapije istom komadnom

Imas u larp komandu /opengate vidi kako je tu uradjeno pa po tim uradi  ;)

OK uradijo sam sve sam skontao i nije mi poterban bio larp ali u svako slucaju tnx...

moze LOCK