|pomoc|Kako da srediti oko /lpariraj

31. Jan. 2014. Zaključano
198
pregleda
3
postova
Martin_Jankovic
4
Shot Caller
31. Jan. 2014.
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:
Quote
CMD:lparkiraj(playerid, params[])
{
if(PI == 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 == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            PDInfo = Poz;
            PDInfo = Poz;
            PDInfo = Poz;
            PDInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(PD);
            PD = CreateVehicle_H(PDInfo, Poz, Poz, Poz, Poz+1.5, 79, 1, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            FBIInfo = Poz;
            FBIInfo = Poz;
            FBIInfo = Poz;
            FBIInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(FBI);
            FBI = CreateVehicle_H(FBIInfo, Poz, Poz, Poz, Poz+1.5, 0, 0, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            SWATInfo = Poz;
            SWATInfo = Poz;
            SWATInfo = Poz;
            SWATInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(SWAT);
            SWAT = CreateVehicle_H(SWATInfo, Poz, Poz, Poz, Poz+1.5, 79, 79, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            MDInfo = Poz;
            MDInfo = Poz;
            MDInfo = Poz;
            MDInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(MD);
            MD = CreateVehicle_H(MDInfo, Poz, Poz, Poz, Poz+1.5, 79, 1, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            SCFInfo = Poz;
            SCFInfo = Poz;
            SCFInfo = Poz;
            SCFInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(SCF);
            SCF = CreateVehicle_H(SCFInfo, Poz, Poz, Poz, Poz+1.5, 1, 1, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            WTMInfo = Poz;
            WTMInfo = Poz;
            WTMInfo = Poz;
            WTMInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(WTM);
            WTM = CreateVehicle_H(WTMInfo, Poz, Poz, Poz, Poz+1.5, 0, 0, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            MayorInfo = Poz;
            MayorInfo = Poz;
            MayorInfo = Poz;
            MayorInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(Mayor);
            Mayor = CreateVehicle_H(MayorInfo, Poz, Poz, Poz, Poz+1.5, 0, 0, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 😎
{
    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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            HAInfo = Poz;
            HAInfo = Poz;
            HAInfo = Poz;
            HAInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(HA);
            HA = CreateVehicle_H(HAInfo, Poz, Poz, Poz, Poz+1.5, 0, 0, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            CNNInfo = Poz;
            CNNInfo = Poz;
            CNNInfo = Poz;
            CNNInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(GUR);
            GUR = CreateVehicle_H(CNNInfo, Poz, Poz, Poz, Poz+1.5, 79, 1, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            TCInfo = Poz;
            TCInfo = Poz;
            TCInfo = Poz;
            TCInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(TC);
            TC = CreateVehicle_H(TCInfo, Poz, Poz, Poz, Poz+1.5, 6, 6, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            GSFInfo = Poz;
            GSFInfo = Poz;
            GSFInfo = Poz;
            GSFInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(GSF);
            GSF = CreateVehicle_H(GSFInfo, Poz, Poz, Poz, Poz+1.5, 86, 86, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            LSBInfo = Poz;
            LSBInfo = Poz;
            LSBInfo = Poz;
            LSBInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(LSB);
            LSB = CreateVehicle_H(LSBInfo, Poz, Poz, Poz, Poz+1.5, 149, 149, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            NGRInfo = Poz;
            NGRInfo = Poz;
            NGRInfo = Poz;
            NGRInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(NGR);
            NGR = CreateVehicle_H(NGRInfo, Poz, Poz, Poz, Poz+1.5, 112, 112, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            BMCInfo = Poz;
            BMCInfo = Poz;
            BMCInfo = Poz;
            BMCInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(BMC);
            BMC = CreateVehicle_H(BMCInfo, Poz, Poz, Poz, Poz+1.5, 125, 125, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            ICFInfo = Poz;
            ICFInfo = Poz;
            ICFInfo = Poz;
            ICFInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(ICF);
            ICF = CreateVehicle_H(ICFInfo, Poz, Poz, Poz, Poz+1.5, 110, 110, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            VLAInfo = Poz;
            VLAInfo = Poz;
            VLAInfo = Poz;
            VLAInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(VLA);
            VLA = CreateVehicle_H(VLAInfo, Poz, Poz, Poz, Poz+1.5, 125, 125, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
else if(PI == 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😛oz;
            GetPlayerPos(playerid, Poz, Poz, Poz);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), Poz);
            RMInfo = Poz;
            RMInfo = Poz;
            RMInfo = Poz;
            RMInfo = Poz+1.5;
            SetPlayerPos_H(playerid, Poz, Poz, Poz+1);
            DestroyVehicle(RM);
            RM = CreateVehicle_H(RMInfo, Poz, Poz, Poz, Poz+1.5, 31, 31, 100);
SCM(playerid, SVETLOPLAVA, "Vozilo uspesno parkirano!");
break;
}
}
}
SacuvajOrg(PI, 2);
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Ako treba sta izbrisati recite mi
ermin.a
5
Underboss
1. Feb. 2014.
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 ]
Martin_Jankovic
4
Shot Caller
1. Feb. 2014.
Ermin. wrote on February 1, 2014, 12:21 am:
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

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha