|pomoc|Kako da srediti oko /lpariraj


Započeo Martin_Jankovic, Januar 31, 2014, 23:34:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.


Skripta koju koristim:NL
Detaljan opis problema:  Kako da namijestim da moze se svugdje parkirati vozilo od mafije/org/bande da ne pise niste u svojoj bazi
Dio skripte:
CitatCMD:lparkiraj(playerid, params[])
{
   if(PI[playerid][Lider] == 0) return SCM(playerid, CRVENA, "BcAC Nemate autorizaciju za koristenje ove naredbe!");
   if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu!");
   if(PI[playerid][Lider] == 1)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == PD)
           {
               if(!IsPlayerInArea(playerid, 1505.077, -1752.921, 1638.176, -1587.116)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               PDInfo[VehX] = Poz[0];
               PDInfo[VehY] = Poz[1];
               PDInfo[VehZ] = Poz[2];
               PDInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(PD);
               PD = CreateVehicle_H(PDInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 79, 1, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 2)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == FBI)
           {
               if(!IsPlayerInArea(playerid, 1607.753, -1748.974, 1702.824, -1587.116)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               FBIInfo[VehX] = Poz[0];
               FBIInfo[VehY] = Poz[1];
               FBIInfo[VehZ] = Poz[2];
               FBIInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(FBI);
               FBI = CreateVehicle_H(FBIInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 0, 0, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 3)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == SWAT)
           {
               if(!IsPlayerInArea(playerid, 280.5633, -1591.064, 474.508, -1437.102)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               SWATInfo[VehX] = Poz[0];
               SWATInfo[VehY] = Poz[1];
               SWATInfo[VehZ] = Poz[2];
               SWATInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(SWAT);
               SWAT = CreateVehicle_H(SWATInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 79, 79, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 4)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == MD)
           {
               if(!IsPlayerInArea(playerid, 1984.234, -1460.788, 2109.728, -1342.356)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               MDInfo[VehX] = Poz[0];
               MDInfo[VehY] = Poz[1];
               MDInfo[VehZ] = Poz[2];
               MDInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(MD);
               MD = CreateVehicle_H(MDInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 79, 1, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 5)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == SCF)
           {
               if(!IsPlayerInArea(playerid, 1098.173, -2104.27, 1318.738, -1997.681)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               SCFInfo[VehX] = Poz[0];
               SCFInfo[VehY] = Poz[1];
               SCFInfo[VehZ] = Poz[2];
               SCFInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(SCF);
               SCF = CreateVehicle_H(SCFInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 1, 1, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 6)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == WTM)
           {
               if(!IsPlayerInArea(playerid, 938.454, -1330.513, 1094.37, -1219.976)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               WTMInfo[VehX] = Poz[0];
               WTMInfo[VehY] = Poz[1];
               WTMInfo[VehZ] = Poz[2];
               WTMInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(WTM);
               WTM = CreateVehicle_H(WTMInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 0, 0, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 7)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == Mayor)
           {
               if(!IsPlayerInArea(playerid, 1368.174, -1895.04, 1615.359, -1737.13)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               MayorInfo[VehX] = Poz[0];
               MayorInfo[VehY] = Poz[1];
               MayorInfo[VehZ] = Poz[2];
               MayorInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(Mayor);
               Mayor = CreateVehicle_H(MayorInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 0, 0, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 8)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == HA)
           {
               if(!IsPlayerInArea(playerid, 1459.443, -1444.997, 1581.133, -1314.722)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               HAInfo[VehX] = Poz[0];
               HAInfo[VehY] = Poz[1];
               HAInfo[VehZ] = Poz[2];
               HAInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(HA);
               HA = CreateVehicle_H(HAInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 0, 0, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 9)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == GUR)
           {
               if(!IsPlayerInArea(playerid, 1714.233, -1330.513, 1847.332, -1235.767)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               CNNInfo[VehX] = Poz[0];
               CNNInfo[VehY] = Poz[1];
               CNNInfo[VehZ] = Poz[2];
               CNNInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(GUR);
               GUR = CreateVehicle_H(CNNInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 79, 1, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 10)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == TC)
           {
               if(!IsPlayerInArea(playerid, 1185.638, -1871.354, 1314.935, -1717.392)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               TCInfo[VehX] = Poz[0];
               TCInfo[VehY] = Poz[1];
               TCInfo[VehZ] = Poz[2];
               TCInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(TC);
               TC = CreateVehicle_H(TCInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 6, 6, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 11)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == GSF)
           {
               if(!IsPlayerInArea(playerid, 2360.715, -1780.555, 2509.025, -1638.437)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               GSFInfo[VehX] = Poz[0];
               GSFInfo[VehY] = Poz[1];
               GSFInfo[VehZ] = Poz[2];
               GSFInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(GSF);
               GSF = CreateVehicle_H(GSFInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 86, 86, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 12)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == LSB)
           {
               if(!IsPlayerInArea(playerid, 2086.91, -1745.026, 2193.39, -1606.855)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               LSBInfo[VehX] = Poz[0];
               LSBInfo[VehY] = Poz[1];
               LSBInfo[VehZ] = Poz[2];
               LSBInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(LSB);
               LSB = CreateVehicle_H(LSBInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 149, 149, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 13)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == NGR)
           {
               if(!IsPlayerInArea(playerid, 2695.364, -1527.9, 2858.886, -1381.833)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               NGRInfo[VehX] = Poz[0];
               NGRInfo[VehY] = Poz[1];
               NGRInfo[VehZ] = Poz[2];
               NGRInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(NGR);
               NGR = CreateVehicle_H(NGRInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 112, 112, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 14)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == BMC)
           {
               if(!IsPlayerInArea(playerid, 2284.658, -1310.774, 2368.32, -1148.917)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               BMCInfo[VehX] = Poz[0];
               BMCInfo[VehY] = Poz[1];
               BMCInfo[VehZ] = Poz[2];
               BMCInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(BMC);
               BMC = CreateVehicle_H(BMCInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 125, 125, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 15)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == ICF)
           {
               if(!IsPlayerInArea(playerid, 2159.164, -1227.872, 2265.644, -1109.439)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               ICFInfo[VehX] = Poz[0];
               ICFInfo[VehY] = Poz[1];
               ICFInfo[VehZ] = Poz[2];
               ICFInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(ICF);
               ICF = CreateVehicle_H(ICFInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 110, 110, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 16)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == VLA)
           {
               if(!IsPlayerInArea(playerid, 2406.349, -2049.002, 2524.237, -1993.733)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               VLAInfo[VehX] = Poz[0];
               VLAInfo[VehY] = Poz[1];
               VLAInfo[VehZ] = Poz[2];
               VLAInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(VLA);
               VLA = CreateVehicle_H(VLAInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 125, 125, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   else if(PI[playerid][Lider] == 17)
   {
       for(new i = 1; i < 22; i++)
       {
           if(i == 21) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u vozilu svoje organizacije!");
           if(GetPlayerVehicleID(playerid) == RM)
           {
               if(!IsPlayerInArea(playerid, 820.566, -1496.318, 949.8625, -1393.677)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");
               new Float:Poz[4];
               GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
               GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz[3]);
               RMInfo[VehX] = Poz[0];
               RMInfo[VehY] = Poz[1];
               RMInfo[VehZ] = Poz[2];
               RMInfo[VehA] = Poz[3]+1.5;
               SetPlayerPos_H(playerid, Poz[0], Poz[1], Poz[2]+1);
               DestroyVehicle(RM);
               RM = CreateVehicle_H(RMInfo[VehModel], Poz[0], Poz[1], Poz[2], Poz[3]+1.5, 31, 31, 100);
            SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
            break;
         }
      }
   }
   SacuvajOrg(PI[playerid][Lider], 2);
   return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Ako treba sta izbrisati recite mi
Tko oce samnom otvoriti srv i da zna spojiti datubazu. Ja cu placati hosting .NEek me doda na FB https://www.facebook.com/jankovic.martin

if(!IsPlayerInArea(playerid, 1505.077, -1752.921, 1638.176, -1587.116)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");

brisi to i u buduce ne stavljaj kod (pogotovo ne tako dug) u [ quote ] nego koristi [ code ]
Poslednja Izmena: Februar 01, 2014, 01:22:08 PRE PODNE od Ermin.

Citat: Ermin. poslato Februar 01, 2014, 01:21:27 PRE PODNE
if(!IsPlayerInArea(playerid, 1505.077, -1752.921, 1638.176, -1587.116)) return SCM(playerid, CRVENA, "BcAC Ne nalazite se u svojoj bazi!");

brisi to i u buduce ne stavljaj kod (pogotovo ne tako dug) u [ quote ] nego koristi [ code ]

Tnx moze lock
Tko oce samnom otvoriti srv i da zna spojiti datubazu. Ja cu placati hosting .NEek me doda na FB https://www.facebook.com/jankovic.martin