napraviti organizaciju da moze preko 50-100 clanova

Započeo Carera, Avgust 09, 2018, 23:36:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kako da napravim kao na SA modu da dodam koliko hocu clanova,jer ovdje ima i bug,kada ga kickas preko admin komande ili nekad preko lider komande iz org da ne mozes vise dodati pise da je puna org a kada kucas lista svih clanova pise da ima mjesta
Dio skripte:

else if( dialogid == dialog_ORGCREATE  )
{
    if( response )
{
    new ime[ ORG_IME ], fileorge[ 40 ], Float:PozX, Float:PozY, Float:PozZ;
    GetPlayerPos( playerid, PozX, PozY, PozZ );
    if(sscanf( inputtext, "s[64]", ime ) ) return SPD( playerid, dialog_ORGCREATE, DSI, D_NASLOV, "Unesite zeljeno ime vase organizacije!", D_ODABERI, D_NAZAD);
for( new id = 1; id < MAX_ORG; id++ )
{
format(fileorge, sizeof( fileorge ), O_FILE, id);
if( !fexist( fileorge ) )
{
            strmid(OI[ id ][ oName ], ime, 0, strlen(ime), ORG_IME);
OI[ id ][oID] = id;
OI[ id ][oCreated] = 1;

                    strmid( OI[ id ][ oLider1 ], "Niko", 0, strlen( "Niko" ), ORG_LIDER );
strmid( OI[ id ][ oLider2 ], "Niko", 0, strlen( "Niko" ), ORG_LIDER );

strmid( OI[ id ][ oClan1 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan2 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan3 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan4 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan5 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan6 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan7 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan8 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan9 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
strmid( OI[ id ][ oClan10 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan11 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan12 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan13 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan14 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan15 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan16 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan17 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan18 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan19 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan20 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan21 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan22 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan23 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan24 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan25 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan26 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan27 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan28 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan29 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan30 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan31 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan32 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
            strmid( OI[ id ][ oClan33 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );

    OI[ id ][ oPozExtX ] = PozX; OI[ id ][ oPozExtY ] = PozY; OI[ id ][ oPozExtZ ] = PozZ;

                    OI[ id ][ oSavez ] = -1;

OrgKreiranje[ playerid ] = id;
SaveOrganization( id) ;
new string[ 256 ];
format( string, sizeof( string ),""col_ugblue"|| %s ||\n"col_white"Da udjete koristite\n"col_ugblue"F", OI[ id ][ oName ] );
Org3D[ id ] = Create3DTextLabel( string, -1, OI[ id ][ oPozExtX ], OI[ id ][ oPozExtY ], OI[ id ][ oPozExtZ ], 25, 0, 1);
        OrgPickup[ id ] = CreateDynamicPickup(19133, 1, PozX, PozY, PozZ);
SPD( playerid, dialog_ORGPREFIX, DSI, D_NASLOV, "Unesite skracenicu organizacije. Primer: LSPD", D_ODABERI, D_ODUSTANI );
break;
}
}
}
else { SPD( playerid, dialog_NAPRAVISVE, DSL, D_NASLOV, "Organizacije\nVozila\nFirmu\nKontejner\nKuca\nStan\nVikendica\nEvent\nBankomat\nAuto salon\nHotel\nKapija\nImanje\nGaraza\nGPS Lokacija\nAdmin port\nSupp port\nRadar\nGang Zona\nPoklon\nJelka\nLampa\nPumpa\nParking", D_ODABERI, D_NAZAD );  }
}
else if( dialogid == dialog_ORGPREFIX && response )
{
    new id = GetNearestOrganization( playerid );
    new prefix[ 10 ];
    if( sscanf( inputtext, "s[10]", prefix ) ) return SPD( playerid, dialog_ORGPREFIX, DSI, D_NASLOV, "Unesite skracenicu organizacije. Primer: LSPD", D_ODABERI, D_ODUSTANI );
    if( OrgKreiranje[ playerid ] == 0 )
{
        strmid( OI[ id ][ oPreFix ], prefix, 0, strlen( prefix ), 10 );
        SaveOrganization( id );
        SendInfoMessage( playerid, "Uspjesno ste promenili prefix organizacije!" );
}
else
{
    strmid( OI[ id ][ oPreFix ], prefix, 0, strlen( prefix ), 10 );
    SaveOrganization( id );
    SPD( playerid, dialog_ORGINT1, DSL, D_NASLOV, "Default Interior\nUnesi sam kordinate\nInterior bande\nInterior mafije\nInterior hitmana\nInterior taksista\nInterior bolnice\nInterior novinara", D_ODABERI, D_ODUSTANI );
}
}
else if( dialogid == dialog_ORGINT1 && response )
{
    new id = GetNearestOrganization( playerid );
if( listitem ==  0 )
{
        if( OrgKreiranje[ playerid ] == 0 )
{
            OI[ id ][ oPozIntX ] = 246.7840;
OI[ id ][ oPozIntY ] = 63.9002;
OI[ id ][ oPozIntZ ] = 1003.6406;
          OI[ id ][ oInt ] = 6;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili default interior!" );
}
else
{
        OI[ id ][ oPozIntX ] = 246.7840;
OI[ id ][ oPozIntY ] = 63.9002;
OI[ id ][ oPozIntZ ] = 1003.6406;
          OI[ id ][ oInt ] = 6;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
}
}
    if( listitem ==  1 )
{
        SPD( playerid, dialog_ORGINT2, DSI, D_NASLOV, "Unesi id interiora i kordinate interiora\n Primer: 6 246.7840 63.9002 1003.6406", D_ODABERI, D_ODUSTANI );
}
if( listitem ==  2 )
{
        if( OrgKreiranje[ playerid ] == 0 )
{
            OI[ id ][ oPozIntX ] = 2258.0603;
OI[ id ][ oPozIntY ] = -1080.9207;
OI[ id ][ oPozIntZ ] = 1048.9668;
          OI[ id ][ oInt ] = 6;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili banda interior!" );
}
else
{
        OI[ id ][ oPozIntX ] = 2258.0603;
OI[ id ][ oPozIntY ] = -1080.9207;
OI[ id ][ oPozIntZ ] = 1048.9668;
          OI[ id ][ oInt ] = 6;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
}
}
if( listitem ==  3 )
{
        if( OrgKreiranje[ playerid ] == 0 )
{
            OI[ id ][ oPozIntX ] = 93.9262;
OI[ id ][ oPozIntY ] = 643.1198;
OI[ id ][ oPozIntZ ] = 1392.0549;
          OI[ id ][ oInt ] = 6;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili mafija interior!" );
}
else
{
        OI[ id ][ oPozIntX ] = 93.9262;
OI[ id ][ oPozIntY ] = 643.1198;
OI[ id ][ oPozIntZ ] = 1392.0549;
          OI[ id ][ oInt ] = 6;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
}
}
if( listitem ==  4 )
{
        if( OrgKreiranje[ playerid ] == 0 )
{
            OI[ id ][ oPozIntX ] = 390.7695;
OI[ id ][ oPozIntY ] = 173.8225;
OI[ id ][ oPozIntZ ] = 1008.3828;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili hitman interior!" );
}
else
{
        OI[ id ][ oPozIntX ] = 390.7695;
OI[ id ][ oPozIntY ] = 173.8225;
OI[ id ][ oPozIntZ ] = 1008.3828;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
}
}
if( listitem == 5 )
{
        if( OrgKreiranje[ playerid ] == 0 )
{
            OI[ id ][ oPozIntX ] = 2793.1833;
OI[ id ][ oPozIntY ] = -1593.9452;
OI[ id ][ oPozIntZ ] = -48.5485;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili taksista interior!" );
}
else
{
        OI[ id ][ oPozIntX ] = 2793.1833;
OI[ id ][ oPozIntY ] = -1593.9452;
OI[ id ][ oPozIntZ ] = -48.5485;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
}
}
if( listitem == 6 )
{
        if( OrgKreiranje[ playerid ] == 0 )
{
            OI[ id ][ oPozIntX ] = -2330.1714;
OI[ id ][ oPozIntY ] = 111.5213;
OI[ id ][ oPozIntZ ] = -5.3942;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili interior bolnice!" );
}
else
{
        OI[ id ][ oPozIntX ] = -2330.1714;
OI[ id ][ oPozIntY ] = 111.5213;
OI[ id ][ oPozIntZ ] = -5.3942;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
}
}
if( listitem == 7 )
{
        if( OrgKreiranje[ playerid ] == 0 )
{
            OI[ id ][ oPozIntX ] = 929.7870;
OI[ id ][ oPozIntY ] = -1022.8786;
OI[ id ][ oPozIntZ ] = -49.3566;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili interior novinara!" );
}
else
{
        OI[ id ][ oPozIntX ] = 929.7870;
OI[ id ][ oPozIntY ] = -1022.8786;
OI[ id ][ oPozIntZ ] = -49.3566;
          OI[ id ][ oInt ] = 3;
          OI[ id ][ oVw ] = id;
          SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
}
}
}
else if( dialogid == dialog_ORGINT2 && response)
{
    new id = GetNearestOrganization( playerid );
    new Float:Poz[ 3 ];
    new intid;
if( sscanf( inputtext, "ifff", intid, Poz[ 0 ], Poz[ 1 ], Poz[ 2 ] ) ) return SPD( playerid, dialog_ORGINT2, DSI, D_NASLOV, "Unesi id interiora i kordinate interiora\n Primer: 6 246.7840 63.9002 1003.6406", D_ODABERI, D_ODUSTANI );
    if( OrgKreiranje[ playerid ] == 0 )
{
    OI[ id ][ oPozIntX ] = Poz[ 0 ];
OI[ id ][ oPozIntY ] = Poz[ 1 ];
OI[ id ][ oPozIntZ ] = Poz[ 2 ];
    OI[ id ][ oInt ] = intid;
    OI[ id ][ oVw ] = id;
        SaveOrganization( id ); SCM( playerid, CRVENA, "Uspjesno ste promenili interior!" );
    }
else
{
OI[ id ][ oPozIntX ] = Poz[ 0 ];
OI[ id ][ oPozIntY ] = Poz[ 1 ];
OI[ id ][ oPozIntZ ] = Poz[ 2 ];
    OI[ id ][ oInt ] = intid;
    OI[ id ][ oVw ] = id;
        SaveOrganization( id );
    SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI ); }
}
else if( dialogid == dialog_ORGTIP && response)
{
    new id = GetNearestOrganization( playerid );
    if( OrgKreiranje[ playerid ] == 0 )
{
if(listitem ==  0)
{
OI[ id ][ oTip ] = ORG_TIP_PD;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : MUP/SAJ" );
}
if(listitem ==  1)
{
OI[ id][ oTip ] = ORG_TIP_BANDA;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Banda" );
}
if(listitem ==  2)
{
OI[ id ][ oTip ] = ORG_TIP_MAFIJA;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Mafija" );
}
            if(listitem ==  3)
{
OI[ id ][ oTip ] = ORG_TIP_MC;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Bajkeri" );
}
        if(listitem ==  4)
{
OI[ id ][ oTip ] = ORG_TIP_SR;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Street Raceri" );
}
            if(listitem ==  5)
{
OI[ id ][ oTip ] = ORG_TIP_MD;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Bolnicari" );
}
            if(listitem ==  6)
{
OI[ id ][ oTip ] = ORG_TIP_CNN;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Novinari" );
}
        if(listitem == 7 )
{
OI[ id ][ oTip ] = ORG_TIP_HITM;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Hitmani" );
}
        if( listitem == 8 )
{
OI[ id ][ oTip ] = ORG_TIP_ELEK;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Elektricar" );
}
if( listitem == 9 )
{
OI[ id ][ oTip ] = ORG_TIP_TAXI;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Taksisti" );
}
}
else
{
    if(listitem ==  0)
{
OI[ id ][ oTip ] = ORG_TIP_PD;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : MUP/SAJ" );
}
if(listitem ==  1)
{
OI[ id][ oTip ] = ORG_TIP_BANDA;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Banda" );
}
if(listitem ==  2)
{
OI[ id ][ oTip ] = ORG_TIP_MAFIJA;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Mafija" );
}
            if(listitem ==  3)
{
OI[ id ][ oTip ] = ORG_TIP_MC;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Bajkeri" );
}
        if(listitem ==  4)
{
OI[ id ][ oTip ] = ORG_TIP_SR;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Street Raceri" );
}
            if(listitem ==  5)
{
OI[ id ][ oTip ] = ORG_TIP_MD;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Bolnicari" );
}
            if(listitem ==  6)
{
OI[ id ][ oTip ] = ORG_TIP_CNN;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Novinari" );
}
            if(listitem ==  7)
{
OI[ id ][ oTip ] = ORG_TIP_HITM;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Hitmani" );
}
            if( listitem ==  8 )
{
OI[ id ][ oTip ] = ORG_TIP_ELEK;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Elektricar" );
}
if( listitem == 9 )
{
OI[ id ][ oTip ] = ORG_TIP_TAXI;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Tip : Taksisti" );
}

SPD( playerid, dialog_ORGRANK1, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 1 ove organizacije.", D_ODABERI, D_ODUSTANI );
}
return 1;
}
else if( dialogid == dialog_ORGRANK1 )
{
    new id = GetNearestOrganization( playerid );
new ime[ORG_RANK];
if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK1, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 1 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 )
{
strmid( OI[ id ][ oRank1 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank1 ] ); }
else
{
    strmid( OI[ id ][ oRank1 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank1 ] );
SPD( playerid, dialog_ORGRANK2, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 2 ove organizacije.", D_ODABERI, D_ODUSTANI );
}
}
else if( dialogid == dialog_ORGRANK2) {
    new id = GetNearestOrganization( playerid );
new ime[ORG_RANK];
if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK2, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 2 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
strmid( OI[ id ][ oRank2 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank2 ] ); }
else {
strmid( OI[ id ][ oRank2 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank2 ] );
SPD( playerid, dialog_ORGRANK3, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 3 ove organizacije.", D_ODABERI, D_ODUSTANI); }
}
else if( dialogid == dialog_ORGRANK3) {
    new id = GetNearestOrganization( playerid );
new ime[ORG_RANK];
if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK3, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 3 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            strmid(OI[ id ][ oRank3 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank3 ] ); }
else {
strmid(OI[ id ][ oRank3 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank3 ] );
SPD( playerid, dialog_ORGRANK4, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 4 ove organizacije.", D_ODABERI, D_ODUSTANI ); }
}
else if( dialogid == dialog_ORGRANK4) {
    new id = GetNearestOrganization( playerid );
new ime[ORG_RANK];
if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK4, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 4 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            strmid( OI[ id][ oRank4 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank4 ] ); }
else {
strmid( OI[ id][ oRank4 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank4 ] );
SPD( playerid, dialog_ORGRANK5, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 5 ove organizacije.", D_ODABERI, D_ODUSTANI ); }
}
else if( dialogid == dialog_ORGRANK5) {
    new id = GetNearestOrganization( playerid );
new ime[ORG_RANK];
if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK5, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 5 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
        strmid( OI[ id ][ oRank5 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank5 ] ); }
else {
strmid( OI[ id ][ oRank5 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization(id);
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank5 ] );
SPD( playerid, dialog_ORGRANK6, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 6 ove organizacije.", D_ODABERI, D_ODUSTANI ); }
}
else if( dialogid == dialog_ORGRANK6) {
    new id = GetNearestOrganization( playerid );
new ime[ORG_RANK];
if( sscanf( inputtext, "s[64]", ime ) ) return SPD( playerid, dialog_ORGRANK6, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 6 ove organizacije.", D_ODABERI, D_ODUSTANI );
strmid( OI[ id ][ oRank6 ], ime, 0, strlen(ime), ORG_RANK);
SaveOrganization( id );
SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank6 ] );
SPD( playerid, dialog_ORGSKINS, DSI, D_NASLOV, "Unesite id-ove muskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
}
else if( dialogid == dialog_ORGSKINS && response ) {
    new id = GetNearestOrganization(playerid);
    new rank1, rank2, rank3, rank4, rank5, rank6;
    if(sscanf(inputtext, "iiiiii", rank1, rank2, rank3, rank4, rank5, rank6)) return SPD( playerid, dialog_ORGSKINS, DSI, D_NASLOV, "Unesite id-ove muskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            OI[ id ][ oSkin1 ] = rank1;
    OI[ id ][ oSkin2 ] = rank2;
    OI[ id ][ oSkin3 ] = rank3;
    OI[ id ][ oSkin4 ] = rank4;
    OI[ id ][ oSkin5 ] = rank5;
    OI[ id ][ oSkin6 ] = rank6;
    SaveOrganization( id );
SendInfoMessage( playerid, "Uspjesno ste promenili id-ove muskih skinova za rankove!" );
}
        else {
OI[ id ][ oSkin1 ] = rank1;
    OI[ id ][ oSkin2 ] = rank2;
    OI[ id ][ oSkin3 ] = rank3;
    OI[ id ][ oSkin4 ] = rank4;
    OI[ id ][ oSkin5 ] = rank5;
    OI[ id ][ oSkin6 ] = rank6;
    SaveOrganization( id );
    SendInfoMessage( playerid, "Uspjesno ste postavili id-ove muskih skinova za rankove!" );
    SPD( playerid, dialog_ORGZSKINS, DSI, D_NASLOV, "Unesite id-ove zenskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
}
}
else if( dialogid == dialog_ORGZSKINS && response ) {
    new id = GetNearestOrganization(playerid);
    new rank1, rank2, rank3, rank4, rank5, rank6;
    if(sscanf(inputtext, "iiiiii", rank1, rank2, rank3, rank4, rank5, rank6)) return SPD( playerid, dialog_ORGZSKINS, DSI, D_NASLOV, "Unesite id-ove zenskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            OI[ id ][ oZSkin1 ] = rank1;
    OI[ id ][ oZSkin2 ] = rank2;
    OI[ id ][ oZSkin3 ] = rank3;
    OI[ id ][ oZSkin4 ] = rank4;
    OI[ id ][ oZSkin5 ] = rank5;
    OI[ id ][ oZSkin6 ] = rank6;
    SaveOrganization( id );
SendInfoMessage( playerid, "Uspjesno ste promenili id-ove zenskih skinova za rankove!" );
}
        else {
OI[ id ][ oZSkin1 ] = rank1;
    OI[ id ][ oZSkin2 ] = rank2;
    OI[ id ][ oZSkin3 ] = rank3;
    OI[ id ][ oZSkin4 ] = rank4;
    OI[ id ][ oZSkin5 ] = rank5;
    OI[ id ][ oZSkin6 ] = rank6;
    SPD( playerid, dialog_ORGMAXMEMB, DSI, D_NASLOV, "Unesti broj koliko ova orga moze imati maksimalno clanova(8-30)", D_ODABERI, D_ODUSTANI );
    SaveOrganization( id );
    SendInfoMessage( playerid, "Uspjesno ste postavili id-ove zenskih skinova za rankove!" );
}
}
else if( dialogid == dialog_ORGMAXMEMB && response ) {
    new id = GetNearestOrganization( playerid ), maxmemb;
    if( sscanf( inputtext, "i", maxmemb ) ) return SPD( playerid, dialog_ORGMAXMEMB, DSI, D_NASLOV, "Unesti broj koliko ova orga moze imati maksimalno clanova(8-300)", D_ODABERI, D_ODUSTANI );
if( maxmemb < 8 || maxmemb > 300 ) return SPD( playerid, dialog_ORGMAXMEMB, DSI, D_NASLOV, "Unesti broj koliko ova orga moze imati maksimalno clanova(8-300)", D_ODABERI, D_ODUSTANI );
OI[ id ][ oMaxClanova ] = maxmemb;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Uspjesno ste postavili broj maksimalno clanova na %d!", maxmemb );
        SendInfoMessage( playerid, "Uspjesno ste zavrsili kreiranje organizacija." );
        OrgKreiranje[ playerid ] = 0;
}
else if( dialogid == dialog_ORGDRUGCHOSE && response ) {
    new id = GetNearestOrganization( playerid );
    switch( listitem ) {
case 0: {
    OI[ id ][ oControlType ] = CTIP_KOKAIN;
    SendInfoMessage( playerid, "Postavili da ova mafija upravlja Kokainom." );
    SendInfoMessage( playerid, "Sada trebas sacuvati poziciju poljanje gde ce moci da se sadi droga." );
                SendInfoMessage( playerid, "Odi na zeljeno mesto i kucaj /orgpolje." );
                PoljeDroge[ playerid ] = id;
}
case 1: {
    OI[ id ][ oControlType ] = CTIP_BMETH;
    SendInfoMessage( playerid, "Postavili da ova mafija upravlja Plavi Methamphetaminom." );
}
}
SaveOrganization( id );
}
else if( dialogid == dialog_ORGDRUGCHOSE_2 && response ) {
    new id = GetNearestOrganization( playerid );
    switch( listitem ) {
case 0: {
    OI[ id ][ oControlType ] = CTIP_MARIHUANA;
    SendInfoMessage( playerid, "Postavili da ova banda upravlja Marihuanom." );
    SendInfoMessage( playerid, "Sada trebas sacuvati poziciju poljanje gde ce moci da se sadi droga." );
                SendInfoMessage( playerid, "Odi na zeljeno mesto i kucaj /orgpolje." );
                PoljeDroge[ playerid ] = id;
}
case 1: {
    OI[ id ][ oControlType ] = CTIP_METH;
    SendInfoMessage( playerid, "Postavili da ova banda upravlja Methamphetaminom." );
}
}
SaveOrganization( id );
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem): link slike


daj nam tu admin komandu..da vidimo kako igrača izbacuješ iz orge


Admin cmd

CMD:aizbaci( playerid, params[] )
{
    if( PlayerInfo[ playerid ][ xAdmin ] >= 5 || PlayerInfo[ playerid ][ xSkriptaRank ] == 4  )
{
   
    if( PlayerInfo[ playerid ][ xAdmin ] >= 5  ) { if( !AdminDuty[ playerid ] ) return GRESKA( playerid, "Morate biti na Admin duznosti!" ); }
new igrac;
if( sscanf( params, "u", igrac ) ) return SendUsageMessage( playerid, "/aizbaci [ ID/Ime ]." );
if( igrac == IPI ) return GRESKA( playerid, "Taj igrac je offline!");
if( PlayerInfo[ igrac ][ xClan ] == 0 ) return GRESKA( playerid, "Taj igrac nije u organizaciji." );
        if( PlayerInfo[ igrac ][ xLider ] != 0 ) return GRESKA( playerid, "Taj igrac je lider." );
new OrgID = PlayerInfo[ igrac ][ xClan ], name[ MAX_PLAYER_NAME ];
GetPlayerName( igrac, name, sizeof( name ) );
        if( OI[ OrgID ][ oSuspended ] ) return GRESKA( playerid, "Ova organizacija je zakljucana od strane vlasnika." );
        if( strcmp( name, OI[ OrgID ][ oClan1 ], true ) == 0) { strmid( OI[ OrgID ][ oClan1], "Niko", 0, strlen( "Niko" ), ORG_CLAN); }
else if( strcmp( name, OI[ OrgID ][ oClan2 ], true ) == 0) { strmid( OI[ OrgID ][ oClan2 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan3 ], true ) == 0) { strmid( OI[ OrgID ][ oClan3 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan4 ], true ) == 0) { strmid( OI[ OrgID ][ oClan4 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan5 ], true ) == 0) { strmid( OI[ OrgID ][ oClan5 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan6 ], true ) == 0) { strmid( OI[ OrgID ][ oClan6 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan7 ], true ) == 0) { strmid( OI[ OrgID ][ oClan7 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan8 ], true ) == 0) { strmid( OI[ OrgID ][ oClan8 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan9 ], true ) == 0) { strmid( OI[ OrgID ][ oClan9 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan10 ], true ) == 0) { strmid( OI[ OrgID ][ oClan10 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan11 ], true ) == 0) { strmid( OI[ OrgID ][ oClan11 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan12 ], true ) == 0) { strmid( OI[ OrgID ][ oClan12 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan13 ], true ) == 0) { strmid( OI[ OrgID ][ oClan13 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan14 ], true ) == 0) { strmid( OI[ OrgID ][ oClan14 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan15 ], true ) == 0) { strmid( OI[ OrgID ][ oClan15 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan16 ], true ) == 0) { strmid( OI[ OrgID ][ oClan16 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan17 ], true ) == 0) { strmid( OI[ OrgID ][ oClan17 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan18 ], true ) == 0) { strmid( OI[ OrgID ][ oClan18 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan19 ], true ) == 0) { strmid( OI[ OrgID ][ oClan19 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan20 ], true ) == 0) { strmid( OI[ OrgID ][ oClan20 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan21 ], true ) == 0) { strmid( OI[ OrgID ][ oClan21 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan22 ], true ) == 0) { strmid( OI[ OrgID ][ oClan22 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan23 ], true ) == 0) { strmid( OI[ OrgID ][ oClan23 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan24 ], true ) == 0) { strmid( OI[ OrgID ][ oClan24 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan25 ], true ) == 0) { strmid( OI[ OrgID ][ oClan25 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan26 ], true ) == 0) { strmid( OI[ OrgID ][ oClan26 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan27 ], true ) == 0) { strmid( OI[ OrgID ][ oClan27 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan28 ], true ) == 0) { strmid( OI[ OrgID ][ oClan28 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan29 ], true ) == 0) { strmid( OI[ OrgID ][ oClan29 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan30 ], true ) == 0) { strmid( OI[ OrgID ][ oClan30 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan31 ], true ) == 0) { strmid( OI[ OrgID ][ oClan31 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan32 ], true ) == 0) { strmid( OI[ OrgID ][ oClan32 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
else if( strcmp( name, OI[ OrgID ][ oClan33 ], true ) == 0) { strmid( OI[ OrgID ][ oClan33 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }

OI[ OrgID ][ oUbacenihClanova ]--;
    ResetAllWeapons( igrac );
PlayerInfo[ igrac ][ xClan ] = 0; PlayerInfo[ igrac ][ xRank ] = 0; PlayerInfo[ igrac ][ xSpawn ] = SetRandomSpawn( igrac ); SaveOrganization( OrgID );
        PlayerInfo[ igrac ][ xOrgUgovor ] = 0; SavePlayer( igrac ); PlayerInfo[ igrac ][ xSkin ] = SetSexSkin( igrac ); SetPlayerSkin( igrac, SetSexSkin( igrac ) );
    SendClientMessageEx( igrac, CRVENA, "Izbacen si iz organizcaije od Admina %s", ImeIgraca( playerid ) );
    SendClientMessageEx( playerid, CRVENA, "Izbacili ste igraca %s iz organizacije", ImeIgraca( igrac ) );
    }
else return GRESKA( playerid, "Niste ovlasteni za ovu komandu!" );
return 1;
}

Lider CMD

else if( dialogid == dialog_IZBACIIZORG && response )
{
    new igrac, OrgID = PlayerInfo[ playerid ][ xLider ];
    if( sscanf( inputtext, "u", igrac ) ) return GRESKA( playerid, "Pogresan ID!" );
if( igrac == INVALID_PLAYER_ID ) return GRESKA( playerid, "Pogresan ID ili je OFFLINE!" );
if( igrac == playerid ) return GRESKA( playerid, "Ne mozes sebe izbaciti!" );
if( PlayerInfo[ igrac ][ xClan ] != OrgID ) return GRESKA( playerid, "Igrac nije clan vase organizacije!" );
        if( PlayerInfo[ igrac ][ xLider ] > 0  ) return GRESKA( playerid, "Ne mozes njemu on je lider!" );
new ImaFajl[ 40 ], name[ MAX_PLAYER_NAME ];
GetPlayerName( igrac, name, sizeof( name ) );
    format( ImaFajl, sizeof( ImaFajl ), O_FILE, OrgID );
if( !fexist( ImaFajl ) ) return GRESKA( playerid, "Tvoja organizacija ne postoji u bazi." );

        if( strcmp( name, OI[ OrgID ][ oClan1 ], true ) == 0) { strmid( OI[ OrgID ][ oClan1], "Niko", 0, strlen( "Niko" ), ORG_CLAN); }
if( strcmp( name, OI[ OrgID ][ oClan2 ], true ) == 0) { strmid( OI[ OrgID ][ oClan2 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan3 ], true ) == 0) { strmid( OI[ OrgID ][ oClan3 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan4 ], true ) == 0) { strmid( OI[ OrgID ][ oClan4 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan5 ], true ) == 0) { strmid( OI[ OrgID ][ oClan5 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan6 ], true ) == 0) { strmid( OI[ OrgID ][ oClan6 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan7 ], true ) == 0) { strmid( OI[ OrgID ][ oClan7 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan8 ], true ) == 0) { strmid( OI[ OrgID ][ oClan8 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan9 ], true ) == 0) { strmid( OI[ OrgID ][ oClan9 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan10 ], true ) == 0) { strmid( OI[ OrgID ][ oClan10 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan11 ], true ) == 0) { strmid( OI[ OrgID ][ oClan11 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan12 ], true ) == 0) { strmid( OI[ OrgID ][ oClan12 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan13 ], true ) == 0) { strmid( OI[ OrgID ][ oClan13 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan18 ], true ) == 0) { strmid( OI[ OrgID ][ oClan18 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan19 ], true ) == 0) { strmid( OI[ OrgID ][ oClan19 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan20 ], true ) == 0) { strmid( OI[ OrgID ][ oClan20 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan21 ], true ) == 0) { strmid( OI[ OrgID ][ oClan21 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan22 ], true ) == 0) { strmid( OI[ OrgID ][ oClan22 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan23 ], true ) == 0) { strmid( OI[ OrgID ][ oClan23 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan24 ], true ) == 0) { strmid( OI[ OrgID ][ oClan24 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan25 ], true ) == 0) { strmid( OI[ OrgID ][ oClan25 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan26 ], true ) == 0) { strmid( OI[ OrgID ][ oClan26 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan27 ], true ) == 0) { strmid( OI[ OrgID ][ oClan27 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan28 ], true ) == 0) { strmid( OI[ OrgID ][ oClan28 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan29 ], true ) == 0) { strmid( OI[ OrgID ][ oClan29 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan30 ], true ) == 0) { strmid( OI[ OrgID ][ oClan30 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan31 ], true ) == 0) { strmid( OI[ OrgID ][ oClan31 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan32 ], true ) == 0) { strmid( OI[ OrgID ][ oClan32 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
if( strcmp( name, OI[ OrgID ][ oClan33 ], true ) == 0) { strmid( OI[ OrgID ][ oClan33 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }


ResetAllWeapons( igrac );
        OI[ OrgID ][ oUbacenihClanova ]--;
PlayerInfo[ igrac ][ xClan ] = 0; PlayerInfo[ igrac ][ xRank ] = 0; PlayerInfo[ igrac ][ xSpawn ] = SetRandomSpawn( igrac );
        PlayerInfo[ igrac ][ xOrgUgovor ] = 0; SavePlayer( igrac ); PlayerInfo[ igrac ][ xSkin ] = SetSexSkin( igrac ); SetPlayerSkin( igrac, SetSexSkin( igrac ) );
    SendClientMessageEx( igrac, CRVENA, "Lider vas je izbacio iz organizacije %s!", getOrgName( OrgID ) ); SaveOrganization( OrgID );
    SendClientMessageEx( playerid, CRVENA, "Clan %s je izbacen iz organizacije!", ImeIgraca( igrac ) );
}


kao sto sam ti rekao prije, pozabavi se sa oClan znaci sve vezano za to obrisi (oClan1,oClan2,oClan3,...oClan33) ako ne zelis limit clanova u organizaciji  i kod /invitea vidi
OI[ OrgID ][ oUbacenihClanova ] ako ima neka provjera za limit samo je obrises i to je to
69

[pawn]
else if( dialogid == dialog_ORGCREATE  )
   {
       if( response )
      {
          new ime[ ORG_IME ], fileorge[ 40 ], Float:PozX, Float:PozY, Float:PozZ;
          GetPlayerPos( playerid, PozX, PozY, PozZ );
          if(sscanf( inputtext, "s[64]", ime ) ) return SPD( playerid, dialog_ORGCREATE, DSI, D_NASLOV, "Unesite zeljeno ime vase organizacije!", D_ODABERI, D_NAZAD);
         for( new id = 1; id < MAX_ORG; id++ )
         {
            format(fileorge, sizeof( fileorge ), O_FILE, id);
            if( !fexist( fileorge ) )
            {
                  strmid(OI[ id ][ oName ], ime, 0, strlen(ime), ORG_IME);
               OI[ id ][oID] = id;
               OI[ id ][oCreated] = 1;

                    strmid( OI[ id ][ oLider1 ], "Niko", 0, strlen( "Niko" ), ORG_LIDER );
               strmid( OI[ id ][ oLider2 ], "Niko", 0, strlen( "Niko" ), ORG_LIDER );

             strmid( OI[ id ][ oClan1 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan2 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan3 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan4 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan5 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan6 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan7 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan8 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan9 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN );
             strmid( OI[ id ][ oClan10 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan11 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan12 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan13 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan14 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan15 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan16 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan17 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan18 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan19 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan20 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan21 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan22 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan23 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan24 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan25 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan26 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan27 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan28 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan29 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan30 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan31 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan32 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan33 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan34 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan35 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan36 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan37 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan38 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan39 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan40 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan41 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan42 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan43 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan44 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan45 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan46 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan47 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan48 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan49 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );
                  strmid( OI[ id ][ oClan50 ], "Niko", 0, strlen("Niko" ), ORG_CLAN );

                  OI[ id ][ oPozExtX ] = PozX; OI[ id ][ oPozExtY ] = PozY; OI[ id ][ oPozExtZ ] = PozZ;

                    OI[ id ][ oSavez ] = -1;

               OrgKreiranje[ playerid ] = id;
               SaveOrganization( id) ;
               new string[ 256 ];
               format( string, sizeof( string ),""col_ugblue"|| %s ||\n"col_white"Da udjete koristite\n"col_ugblue"F", OI[ id ][ oName ] );
               Org3D[ id ] = Create3DTextLabel( string, -1, OI[ id ][ oPozExtX ], OI[ id ][ oPozExtY ], OI[ id ][ oPozExtZ ], 25, 0, 1);
                 OrgPickup[ id ] = CreateDynamicPickup(19133, 1, PozX, PozY, PozZ);
               SPD( playerid, dialog_ORGPREFIX, DSI, D_NASLOV, "Unesite skracenicu organizacije. Primer: LSPD", D_ODABERI, D_ODUSTANI );
               break;
            }
         }
      }
      else { SPD( playerid, dialog_NAPRAVISVE, DSL, D_NASLOV, "Organizacije\nVozila\nFirmu\nKontejner\nKuca\nStan\nVikendica\nEvent\nBankomat\nAuto salon\nHotel\nKapija\nImanje\nGaraza\nGPS Lokacija\nAdmin port\nSupp port\nRadar\nGang Zona\nPoklon\nJelka\nLampa\nPumpa\nParking", D_ODABERI, D_NAZAD );  }
   }
   else if( dialogid == dialog_ORGPREFIX && response )
   {
       new id = GetNearestOrganization( playerid );
       new prefix[ 10 ];
       if( sscanf( inputtext, "s[10]", prefix ) ) return SPD( playerid, dialog_ORGPREFIX, DSI, D_NASLOV, "Unesite skracenicu organizacije. Primer: LSPD", D_ODABERI, D_ODUSTANI );
       if( OrgKreiranje[ playerid ] == 0 )
      {
           strmid( OI[ id ][ oPreFix ], prefix, 0, strlen( prefix ), 10 );
           SaveOrganization( id );
           SendInfoMessage( playerid, "Uspjesno ste promenili prefix organizacije!" );
      }
      else
      {
          strmid( OI[ id ][ oPreFix ], prefix, 0, strlen( prefix ), 10 );
          SaveOrganization( id );
          SPD( playerid, dialog_ORGINT1, DSL, D_NASLOV, "Default Interior\nUnesi sam kordinate\nInterior bande\nInterior mafije\nInterior hitmana\nInterior taksista\nInterior bolnice\nInterior novinara", D_ODABERI, D_ODUSTANI );
      }
   }
   else if( dialogid == dialog_ORGINT1 && response )
   {
       new id = GetNearestOrganization( playerid );
      if( listitem ==  0 )
      {
           if( OrgKreiranje[ playerid ] == 0 )
         {
               OI[ id ][ oPozIntX ] = 246.7840;
             OI[ id ][ oPozIntY ] = 63.9002;
             OI[ id ][ oPozIntZ ] = 1003.6406;
               OI[ id ][ oInt ] = 6;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili default interior!" );
          }
         else
         {
              OI[ id ][ oPozIntX ] = 246.7840;
             OI[ id ][ oPozIntY ] = 63.9002;
             OI[ id ][ oPozIntZ ] = 1003.6406;
               OI[ id ][ oInt ] = 6;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id );
               SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
         }
      }
       if( listitem ==  1 )
      {
           SPD( playerid, dialog_ORGINT2, DSI, D_NASLOV, "Unesi id interiora i kordinate interiora\n Primer: 6 246.7840 63.9002 1003.6406", D_ODABERI, D_ODUSTANI );
      }
      if( listitem ==  2 )
      {
           if( OrgKreiranje[ playerid ] == 0 )
         {
               OI[ id ][ oPozIntX ] = 2258.0603;
             OI[ id ][ oPozIntY ] = -1080.9207;
             OI[ id ][ oPozIntZ ] = 1048.9668;
               OI[ id ][ oInt ] = 6;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili banda interior!" );
          }
         else
         {
              OI[ id ][ oPozIntX ] = 2258.0603;
             OI[ id ][ oPozIntY ] = -1080.9207;
             OI[ id ][ oPozIntZ ] = 1048.9668;
               OI[ id ][ oInt ] = 6;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id );
               SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
         }
       }
      if( listitem ==  3 )
      {
           if( OrgKreiranje[ playerid ] == 0 )
         {
               OI[ id ][ oPozIntX ] = 93.9262;
             OI[ id ][ oPozIntY ] = 643.1198;
             OI[ id ][ oPozIntZ ] = 1392.0549;
               OI[ id ][ oInt ] = 6;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili mafija interior!" );
          }
         else
         {
              OI[ id ][ oPozIntX ] = 93.9262;
             OI[ id ][ oPozIntY ] = 643.1198;
             OI[ id ][ oPozIntZ ] = 1392.0549;
               OI[ id ][ oInt ] = 6;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id );
               SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
         }
      }
      if( listitem ==  4 )
      {
           if( OrgKreiranje[ playerid ] == 0 )
         {
               OI[ id ][ oPozIntX ] = 390.7695;
             OI[ id ][ oPozIntY ] = 173.8225;
             OI[ id ][ oPozIntZ ] = 1008.3828;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili hitman interior!" );
          }
         else
         {
              OI[ id ][ oPozIntX ] = 390.7695;
             OI[ id ][ oPozIntY ] = 173.8225;
             OI[ id ][ oPozIntZ ] = 1008.3828;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id );
               SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
         }
      }
      if( listitem == 5 )
      {
           if( OrgKreiranje[ playerid ] == 0 )
         {
               OI[ id ][ oPozIntX ] = 2793.1833;
             OI[ id ][ oPozIntY ] = -1593.9452;
             OI[ id ][ oPozIntZ ] = -48.5485;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili taksista interior!" );
          }
         else
         {
              OI[ id ][ oPozIntX ] = 2793.1833;
             OI[ id ][ oPozIntY ] = -1593.9452;
             OI[ id ][ oPozIntZ ] = -48.5485;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id );
               SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
         }
      }
      if( listitem == 6 )
      {
           if( OrgKreiranje[ playerid ] == 0 )
         {
               OI[ id ][ oPozIntX ] = -2330.1714;
             OI[ id ][ oPozIntY ] = 111.5213;
             OI[ id ][ oPozIntZ ] = -5.3942;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili interior bolnice!" );
          }
         else
         {
              OI[ id ][ oPozIntX ] = -2330.1714;
             OI[ id ][ oPozIntY ] = 111.5213;
             OI[ id ][ oPozIntZ ] = -5.3942;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id );
               SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
         }
      }
      if( listitem == 7 )
      {
           if( OrgKreiranje[ playerid ] == 0 )
         {
               OI[ id ][ oPozIntX ] = 929.7870;
             OI[ id ][ oPozIntY ] = -1022.8786;
             OI[ id ][ oPozIntZ ] = -49.3566;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id ); SendInfoMessage( playerid, "Uspjesno ste stavili interior novinara!" );
          }
         else
         {
              OI[ id ][ oPozIntX ] = 929.7870;
             OI[ id ][ oPozIntY ] = -1022.8786;
             OI[ id ][ oPozIntZ ] = -49.3566;
               OI[ id ][ oInt ] = 3;
               OI[ id ][ oVw ] = id;
               SaveOrganization( id );
               SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI );
         }
      }
   }
   else if( dialogid == dialog_ORGINT2 && response)
   {
       new id = GetNearestOrganization( playerid );
       new Float:Poz[ 3 ];
       new intid;
      if( sscanf( inputtext, "ifff", intid, Poz[ 0 ], Poz[ 1 ], Poz[ 2 ] ) ) return SPD( playerid, dialog_ORGINT2, DSI, D_NASLOV, "Unesi id interiora i kordinate interiora\n Primer: 6 246.7840 63.9002 1003.6406", D_ODABERI, D_ODUSTANI );
       if( OrgKreiranje[ playerid ] == 0 )
      {
          OI[ id ][ oPozIntX ] = Poz[ 0 ];
          OI[ id ][ oPozIntY ] = Poz[ 1 ];
          OI[ id ][ oPozIntZ ] = Poz[ 2 ];
            OI[ id ][ oInt ] = intid;
            OI[ id ][ oVw ] = id;
             SaveOrganization( id ); SCM( playerid, CRVENA, "Uspjesno ste promenili interior!" );
         }
      else
      {
         OI[ id ][ oPozIntX ] = Poz[ 0 ];
          OI[ id ][ oPozIntY ] = Poz[ 1 ];
          OI[ id ][ oPozIntZ ] = Poz[ 2 ];
            OI[ id ][ oInt ] = intid;
            OI[ id ][ oVw ] = id;
             SaveOrganization( id );
          SPD( playerid, dialog_ORGTIP, DSL, D_NASLOV, "Tip: MUP/SAJ\nTip: Banda\nTip: Mafija\nTip: Bajkeri\nTip: Raceri\nTip: Bolnicari\nTip: Novinari\nTip: Hitmani\nTip: Elektricari\nTip: Taksisti", D_ODABERI, D_ODUSTANI ); }
   }
   else if( dialogid == dialog_ORGTIP && response)
   {
       new id = GetNearestOrganization( playerid );
       if( OrgKreiranje[ playerid ] == 0 )
      {
         if(listitem ==  0)
         {
            OI[ id ][ oTip ] = ORG_TIP_PD;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : MUP/SAJ" );
         }
         if(listitem ==  1)
         {
            OI[ id][ oTip ] = ORG_TIP_BANDA;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Banda" );
         }
         if(listitem ==  2)
         {
            OI[ id ][ oTip ] = ORG_TIP_MAFIJA;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Mafija" );
         }
            if(listitem ==  3)
         {
            OI[ id ][ oTip ] = ORG_TIP_MC;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Bajkeri" );
         }
           if(listitem ==  4)
         {
            OI[ id ][ oTip ] = ORG_TIP_SR;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Street Raceri" );
         }
            if(listitem ==  5)
         {
            OI[ id ][ oTip ] = ORG_TIP_MD;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Bolnicari" );
         }
            if(listitem ==  6)
         {
            OI[ id ][ oTip ] = ORG_TIP_CNN;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Novinari" );
         }
           if(listitem == 7 )
         {
            OI[ id ][ oTip ] = ORG_TIP_HITM;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Hitmani" );
         }
           if( listitem == 8 )
         {
            OI[ id ][ oTip ] = ORG_TIP_ELEK;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Elektricar" );
         }
         if( listitem == 9 )
         {
            OI[ id ][ oTip ] = ORG_TIP_TAXI;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Taksisti" );
         }
      }
      else
      {
          if(listitem ==  0)
         {
            OI[ id ][ oTip ] = ORG_TIP_PD;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : MUP/SAJ" );
         }
         if(listitem ==  1)
         {
            OI[ id][ oTip ] = ORG_TIP_BANDA;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Banda" );
         }
         if(listitem ==  2)
         {
            OI[ id ][ oTip ] = ORG_TIP_MAFIJA;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Mafija" );
         }
            if(listitem ==  3)
         {
            OI[ id ][ oTip ] = ORG_TIP_MC;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Bajkeri" );
         }
           if(listitem ==  4)
         {
            OI[ id ][ oTip ] = ORG_TIP_SR;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Street Raceri" );
         }
            if(listitem ==  5)
         {
            OI[ id ][ oTip ] = ORG_TIP_MD;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Bolnicari" );
         }
            if(listitem ==  6)
         {
            OI[ id ][ oTip ] = ORG_TIP_CNN;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Novinari" );
         }
            if(listitem ==  7)
         {
            OI[ id ][ oTip ] = ORG_TIP_HITM;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Hitmani" );
         }
            if( listitem ==  8 )
         {
            OI[ id ][ oTip ] = ORG_TIP_ELEK;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Elektricar" );
         }
         if( listitem == 9 )
         {
            OI[ id ][ oTip ] = ORG_TIP_TAXI;
              SaveOrganization( id );
              SendInfoMessage( playerid, "Tip : Taksisti" );
         }

         SPD( playerid, dialog_ORGRANK1, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 1 ove organizacije.", D_ODABERI, D_ODUSTANI );
      }
      return 1;
   }
   else if( dialogid == dialog_ORGRANK1 )
   {
       new id = GetNearestOrganization( playerid );
      new ime[ORG_RANK];
      if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK1, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 1 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 )
      {
         strmid( OI[ id ][ oRank1 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank1 ] ); }
      else
      {
          strmid( OI[ id ][ oRank1 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank1 ] );
         SPD( playerid, dialog_ORGRANK2, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 2 ove organizacije.", D_ODABERI, D_ODUSTANI );
      }
   }
   else if( dialogid == dialog_ORGRANK2) {
       new id = GetNearestOrganization( playerid );
      new ime[ORG_RANK];
      if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK2, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 2 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
         strmid( OI[ id ][ oRank2 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank2 ] ); }
      else {
         strmid( OI[ id ][ oRank2 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank2 ] );
         SPD( playerid, dialog_ORGRANK3, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 3 ove organizacije.", D_ODABERI, D_ODUSTANI); }
   }
   else if( dialogid == dialog_ORGRANK3) {
       new id = GetNearestOrganization( playerid );
      new ime[ORG_RANK];
      if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK3, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 3 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            strmid(OI[ id ][ oRank3 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank3 ] ); }
      else {
         strmid(OI[ id ][ oRank3 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank3 ] );
         SPD( playerid, dialog_ORGRANK4, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 4 ove organizacije.", D_ODABERI, D_ODUSTANI ); }
   }
   else if( dialogid == dialog_ORGRANK4) {
       new id = GetNearestOrganization( playerid );
      new ime[ORG_RANK];
      if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK4, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 4 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            strmid( OI[ id][ oRank4 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank4 ] ); }
      else {
         strmid( OI[ id][ oRank4 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank4 ] );
         SPD( playerid, dialog_ORGRANK5, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 5 ove organizacije.", D_ODABERI, D_ODUSTANI ); }
   }
   else if( dialogid == dialog_ORGRANK5) {
       new id = GetNearestOrganization( playerid );
      new ime[ORG_RANK];
      if(sscanf(inputtext, "s[64]", ime)) return SPD( playerid, dialog_ORGRANK5, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 5 ove organizacije.", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
           strmid( OI[ id ][ oRank5 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank5 ] ); }
      else {
         strmid( OI[ id ][ oRank5 ], ime, 0, strlen(ime), ORG_RANK);
         SaveOrganization(id);
         SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank5 ] );
         SPD( playerid, dialog_ORGRANK6, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 6 ove organizacije.", D_ODABERI, D_ODUSTANI ); }
   }
   else if( dialogid == dialog_ORGRANK6) {
       new id = GetNearestOrganization( playerid );
      new ime[ORG_RANK];
      if( sscanf( inputtext, "s[64]", ime ) ) return SPD( playerid, dialog_ORGRANK6, DSI, D_NASLOV, "U prazni prostor ispod unesite ime za rank 6 ove organizacije.", D_ODABERI, D_ODUSTANI );
      strmid( OI[ id ][ oRank6 ], ime, 0, strlen(ime), ORG_RANK);
      SaveOrganization( id );
      SendInfoMessage( playerid, "Postavili ste ime ranka na %s", OI[ id ][ oRank6 ] );
      SPD( playerid, dialog_ORGSKINS, DSI, D_NASLOV, "Unesite id-ove muskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
   }
   else if( dialogid == dialog_ORGSKINS && response ) {
       new id = GetNearestOrganization(playerid);
       new rank1, rank2, rank3, rank4, rank5, rank6;
       if(sscanf(inputtext, "iiiiii", rank1, rank2, rank3, rank4, rank5, rank6)) return SPD( playerid, dialog_ORGSKINS, DSI, D_NASLOV, "Unesite id-ove muskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            OI[ id ][ oSkin1 ] = rank1;
          OI[ id ][ oSkin2 ] = rank2;
          OI[ id ][ oSkin3 ] = rank3;
          OI[ id ][ oSkin4 ] = rank4;
          OI[ id ][ oSkin5 ] = rank5;
          OI[ id ][ oSkin6 ] = rank6;
          SaveOrganization( id );
         SendInfoMessage( playerid, "Uspjesno ste promenili id-ove muskih skinova za rankove!" );
      }
        else {
         OI[ id ][ oSkin1 ] = rank1;
          OI[ id ][ oSkin2 ] = rank2;
          OI[ id ][ oSkin3 ] = rank3;
          OI[ id ][ oSkin4 ] = rank4;
          OI[ id ][ oSkin5 ] = rank5;
          OI[ id ][ oSkin6 ] = rank6;
          SaveOrganization( id );
          SendInfoMessage( playerid, "Uspjesno ste postavili id-ove muskih skinova za rankove!" );
          SPD( playerid, dialog_ORGZSKINS, DSI, D_NASLOV, "Unesite id-ove zenskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
      }
   }
   else if( dialogid == dialog_ORGZSKINS && response ) {
       new id = GetNearestOrganization(playerid);
       new rank1, rank2, rank3, rank4, rank5, rank6;
       if(sscanf(inputtext, "iiiiii", rank1, rank2, rank3, rank4, rank5, rank6)) return SPD( playerid, dialog_ORGZSKINS, DSI, D_NASLOV, "Unesite id-ove zenskih skinova za rankove koje zelite:\n Mora biti 6 id-a(rank1-6)\nPrimer: 1 2 3 4 5 6", D_ODABERI, D_ODUSTANI );
        if( OrgKreiranje[ playerid ] == 0 ) {
            OI[ id ][ oZSkin1 ] = rank1;
          OI[ id ][ oZSkin2 ] = rank2;
          OI[ id ][ oZSkin3 ] = rank3;
          OI[ id ][ oZSkin4 ] = rank4;
          OI[ id ][ oZSkin5 ] = rank5;
          OI[ id ][ oZSkin6 ] = rank6;
          SaveOrganization( id );
         SendInfoMessage( playerid, "Uspjesno ste promenili id-ove zenskih skinova za rankove!" );
      }
        else {
         OI[ id ][ oZSkin1 ] = rank1;
          OI[ id ][ oZSkin2 ] = rank2;
          OI[ id ][ oZSkin3 ] = rank3;
          OI[ id ][ oZSkin4 ] = rank4;
          OI[ id ][ oZSkin5 ] = rank5;
          OI[ id ][ oZSkin6 ] = rank6;
          SPD( playerid, dialog_ORGMAXMEMB, DSI, D_NASLOV, "Unesti broj koliko ova orga moze imati maksimalno clanova(8-30)", D_ODABERI, D_ODUSTANI );
          SaveOrganization( id );
          SendInfoMessage( playerid, "Uspjesno ste postavili id-ove zenskih skinova za rankove!" );
      }
   }
   else if( dialogid == dialog_ORGMAXMEMB && response ) {
       new id = GetNearestOrganization( playerid ), maxmemb;
       if( sscanf( inputtext, "i", maxmemb ) ) return SPD( playerid, dialog_ORGMAXMEMB, DSI, D_NASLOV, "Unesti broj koliko ova orga moze imati maksimalno clanova(8-300)", D_ODABERI, D_ODUSTANI );
      if( maxmemb < 8 || maxmemb > 300 ) return SPD( playerid, dialog_ORGMAXMEMB, DSI, D_NASLOV, "Unesti broj koliko ova orga moze imati maksimalno clanova(8-300)", D_ODABERI, D_ODUSTANI );
      OI[ id ][ oMaxClanova ] = maxmemb;
        SaveOrganization( id );
        SendInfoMessage( playerid, "Uspjesno ste postavili broj maksimalno clanova na %d!", maxmemb );
        SendInfoMessage( playerid, "Uspjesno ste zavrsili kreiranje organizacija." );
        OrgKreiranje[ playerid ] = 0;
   }
   else if( dialogid == dialog_ORGDRUGCHOSE && response ) {
       new id = GetNearestOrganization( playerid );
       switch( listitem ) {
          case 0: {
              OI[ id ][ oControlType ] = CTIP_KOKAIN;
              SendInfoMessage( playerid, "Postavili da ova mafija upravlja Kokainom." );
              SendInfoMessage( playerid, "Sada trebas sacuvati poziciju poljanje gde ce moci da se sadi droga." );
                SendInfoMessage( playerid, "Odi na zeljeno mesto i kucaj /orgpolje." );
                PoljeDroge[ playerid ] = id;
          }
          case 1: {
              OI[ id ][ oControlType ] = CTIP_BMETH;
              SendInfoMessage( playerid, "Postavili da ova mafija upravlja Plavi Methamphetaminom." );
          }
      }
      SaveOrganization( id );
   }
   else if( dialogid == dialog_ORGDRUGCHOSE_2 && response ) {
       new id = GetNearestOrganization( playerid );
       switch( listitem ) {
          case 0: {
              OI[ id ][ oControlType ] = CTIP_MARIHUANA;
              SendInfoMessage( playerid, "Postavili da ova banda upravlja Marihuanom." );
              SendInfoMessage( playerid, "Sada trebas sacuvati poziciju poljanje gde ce moci da se sadi droga." );
                SendInfoMessage( playerid, "Odi na zeljeno mesto i kucaj /orgpolje." );
                PoljeDroge[ playerid ] = id;
         }
          case 1: {
              OI[ id ][ oControlType ] = CTIP_METH;
              SendInfoMessage( playerid, "Postavili da ova banda upravlja Methamphetaminom." );
          }
      }
      SaveOrganization( id );
   }
[/pawn]
[pawn]
CMD:aizbaci( playerid, params[] )
{
    if( PlayerInfo[ playerid ][ xAdmin ] >= 5 || PlayerInfo[ playerid ][ xSkriptaRank ] == 4  )
   {
   
       if( PlayerInfo[ playerid ][ xAdmin ] >= 5  ) { if( !AdminDuty[ playerid ] ) return GRESKA( playerid, "Morate biti na Admin duznosti!" ); }
      new igrac;
      if( sscanf( params, "u", igrac ) ) return SendUsageMessage( playerid, "/aizbaci [ ID/Ime ]." );
      if( igrac == IPI ) return GRESKA( playerid, "Taj igrac je offline!");
      if( PlayerInfo[ igrac ][ xClan ] == 0 ) return GRESKA( playerid, "Taj igrac nije u organizaciji." );
        if( PlayerInfo[ igrac ][ xLider ] != 0 ) return GRESKA( playerid, "Taj igrac je lider." );
      new OrgID = PlayerInfo[ igrac ][ xClan ], name[ MAX_PLAYER_NAME ];
      GetPlayerName( igrac, name, sizeof( name ) );
        if( OI[ OrgID ][ oSuspended ] ) return GRESKA( playerid, "Ova organizacija je zakljucana od strane vlasnika." );
        if( strcmp( name, OI[ OrgID ][ oClan1 ], true ) == 0) { strmid( OI[ OrgID ][ oClan1], "Niko", 0, strlen( "Niko" ), ORG_CLAN); }
      else if( strcmp( name, OI[ OrgID ][ oClan2 ], true ) == 0) { strmid( OI[ OrgID ][ oClan2 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan3 ], true ) == 0) { strmid( OI[ OrgID ][ oClan3 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan4 ], true ) == 0) { strmid( OI[ OrgID ][ oClan4 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan5 ], true ) == 0) { strmid( OI[ OrgID ][ oClan5 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan6 ], true ) == 0) { strmid( OI[ OrgID ][ oClan6 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan7 ], true ) == 0) { strmid( OI[ OrgID ][ oClan7 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan8 ], true ) == 0) { strmid( OI[ OrgID ][ oClan8 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan9 ], true ) == 0) { strmid( OI[ OrgID ][ oClan9 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan10 ], true ) == 0) { strmid( OI[ OrgID ][ oClan10 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan11 ], true ) == 0) { strmid( OI[ OrgID ][ oClan11 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan12 ], true ) == 0) { strmid( OI[ OrgID ][ oClan12 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan13 ], true ) == 0) { strmid( OI[ OrgID ][ oClan13 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan14 ], true ) == 0) { strmid( OI[ OrgID ][ oClan14 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan15 ], true ) == 0) { strmid( OI[ OrgID ][ oClan15 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan16 ], true ) == 0) { strmid( OI[ OrgID ][ oClan16 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan17 ], true ) == 0) { strmid( OI[ OrgID ][ oClan17 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan18 ], true ) == 0) { strmid( OI[ OrgID ][ oClan18 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan19 ], true ) == 0) { strmid( OI[ OrgID ][ oClan19 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan20 ], true ) == 0) { strmid( OI[ OrgID ][ oClan20 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan21 ], true ) == 0) { strmid( OI[ OrgID ][ oClan21 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan22 ], true ) == 0) { strmid( OI[ OrgID ][ oClan22 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan23 ], true ) == 0) { strmid( OI[ OrgID ][ oClan23 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan24 ], true ) == 0) { strmid( OI[ OrgID ][ oClan24 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan25 ], true ) == 0) { strmid( OI[ OrgID ][ oClan25 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan26 ], true ) == 0) { strmid( OI[ OrgID ][ oClan26 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan27 ], true ) == 0) { strmid( OI[ OrgID ][ oClan27 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan28 ], true ) == 0) { strmid( OI[ OrgID ][ oClan28 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan29 ], true ) == 0) { strmid( OI[ OrgID ][ oClan29 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan30 ], true ) == 0) { strmid( OI[ OrgID ][ oClan30 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan31 ], true ) == 0) { strmid( OI[ OrgID ][ oClan31 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan32 ], true ) == 0) { strmid( OI[ OrgID ][ oClan32 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan33 ], true ) == 0) { strmid( OI[ OrgID ][ oClan33 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan34 ], true ) == 0) { strmid( OI[ OrgID ][ oClan34 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan35 ], true ) == 0) { strmid( OI[ OrgID ][ oClan35 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan36 ], true ) == 0) { strmid( OI[ OrgID ][ oClan36 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan37 ], true ) == 0) { strmid( OI[ OrgID ][ oClan37 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan38 ], true ) == 0) { strmid( OI[ OrgID ][ oClan38 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan39 ], true ) == 0) { strmid( OI[ OrgID ][ oClan39 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan40 ], true ) == 0) { strmid( OI[ OrgID ][ oClan40 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan41 ], true ) == 0) { strmid( OI[ OrgID ][ oClan41 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan42 ], true ) == 0) { strmid( OI[ OrgID ][ oClan42 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan43 ], true ) == 0) { strmid( OI[ OrgID ][ oClan43 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan44 ], true ) == 0) { strmid( OI[ OrgID ][ oClan44 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan45 ], true ) == 0) { strmid( OI[ OrgID ][ oClan45 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan46 ], true ) == 0) { strmid( OI[ OrgID ][ oClan46 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan47 ], true ) == 0) { strmid( OI[ OrgID ][ oClan47 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan48 ], true ) == 0) { strmid( OI[ OrgID ][ oClan48 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan49 ], true ) == 0) { strmid( OI[ OrgID ][ oClan49 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      else if( strcmp( name, OI[ OrgID ][ oClan50 ], true ) == 0) { strmid( OI[ OrgID ][ oClan50 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      OI[ OrgID ][ oUbacenihClanova ]--;
       ResetAllWeapons( igrac );
      PlayerInfo[ igrac ][ xClan ] = 0; PlayerInfo[ igrac ][ xRank ] = 0; PlayerInfo[ igrac ][ xSpawn ] = SetRandomSpawn( igrac ); SaveOrganization( OrgID );
        PlayerInfo[ igrac ][ xOrgUgovor ] = 0; SavePlayer( igrac ); PlayerInfo[ igrac ][ xSkin ] = SetSexSkin( igrac ); SetPlayerSkin( igrac, SetSexSkin( igrac ) );
       SendClientMessageEx( igrac, CRVENA, "Izbacen si iz organizcaije od Admina %s", ImeIgraca( playerid ) );
       SendClientMessageEx( playerid, CRVENA, "Izbacili ste igraca %s iz organizacije", ImeIgraca( igrac ) );
    }
   else return GRESKA( playerid, "Niste ovlasteni za ovu komandu!" );
   return 1;
}[/pawn]
[pawn]
   else if( dialogid == dialog_IZBACIIZORG && response )
   {
       new igrac, OrgID = PlayerInfo[ playerid ][ xLider ];
       if( sscanf( inputtext, "u", igrac ) ) return GRESKA( playerid, "Pogresan ID!" );
       if( igrac == INVALID_PLAYER_ID ) return GRESKA( playerid, "Pogresan ID ili je OFFLINE!" );
      if( igrac == playerid ) return GRESKA( playerid, "Ne mozes sebe izbaciti!" );
       if( PlayerInfo[ igrac ][ xClan ] != OrgID ) return GRESKA( playerid, "Igrac nije clan vase organizacije!" );
        if( PlayerInfo[ igrac ][ xLider ] > 0  ) return GRESKA( playerid, "Ne mozes njemu on je lider!" );
      new ImaFajl[ 40 ], name[ MAX_PLAYER_NAME ];
      GetPlayerName( igrac, name, sizeof( name ) );
       format( ImaFajl, sizeof( ImaFajl ), O_FILE, OrgID );
      if( !fexist( ImaFajl ) ) return GRESKA( playerid, "Tvoja organizacija ne postoji u bazi." );

        if( strcmp( name, OI[ OrgID ][ oClan1 ], true ) == 0) { strmid( OI[ OrgID ][ oClan1], "Niko", 0, strlen( "Niko" ), ORG_CLAN); }
      if( strcmp( name, OI[ OrgID ][ oClan2 ], true ) == 0) { strmid( OI[ OrgID ][ oClan2 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan3 ], true ) == 0) { strmid( OI[ OrgID ][ oClan3 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan4 ], true ) == 0) { strmid( OI[ OrgID ][ oClan4 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan5 ], true ) == 0) { strmid( OI[ OrgID ][ oClan5 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan6 ], true ) == 0) { strmid( OI[ OrgID ][ oClan6 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan7 ], true ) == 0) { strmid( OI[ OrgID ][ oClan7 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan8 ], true ) == 0) { strmid( OI[ OrgID ][ oClan8 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan9 ], true ) == 0) { strmid( OI[ OrgID ][ oClan9 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan10 ], true ) == 0) { strmid( OI[ OrgID ][ oClan10 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan11 ], true ) == 0) { strmid( OI[ OrgID ][ oClan11 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan12 ], true ) == 0) { strmid( OI[ OrgID ][ oClan12 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan13 ], true ) == 0) { strmid( OI[ OrgID ][ oClan13 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan18 ], true ) == 0) { strmid( OI[ OrgID ][ oClan18 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan19 ], true ) == 0) { strmid( OI[ OrgID ][ oClan19 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan20 ], true ) == 0) { strmid( OI[ OrgID ][ oClan20 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan21 ], true ) == 0) { strmid( OI[ OrgID ][ oClan21 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan22 ], true ) == 0) { strmid( OI[ OrgID ][ oClan22 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan23 ], true ) == 0) { strmid( OI[ OrgID ][ oClan23 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan24 ], true ) == 0) { strmid( OI[ OrgID ][ oClan24 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan25 ], true ) == 0) { strmid( OI[ OrgID ][ oClan25 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan26 ], true ) == 0) { strmid( OI[ OrgID ][ oClan26 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan27 ], true ) == 0) { strmid( OI[ OrgID ][ oClan27 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan28 ], true ) == 0) { strmid( OI[ OrgID ][ oClan28 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan29 ], true ) == 0) { strmid( OI[ OrgID ][ oClan29 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan30 ], true ) == 0) { strmid( OI[ OrgID ][ oClan30 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan31 ], true ) == 0) { strmid( OI[ OrgID ][ oClan31 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan32 ], true ) == 0) { strmid( OI[ OrgID ][ oClan32 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan33 ], true ) == 0) { strmid( OI[ OrgID ][ oClan33 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan34 ], true ) == 0) { strmid( OI[ OrgID ][ oClan34 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan35 ], true ) == 0) { strmid( OI[ OrgID ][ oClan35 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan36 ], true ) == 0) { strmid( OI[ OrgID ][ oClan36 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan37 ], true ) == 0) { strmid( OI[ OrgID ][ oClan37 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan38 ], true ) == 0) { strmid( OI[ OrgID ][ oClan38 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan39 ], true ) == 0) { strmid( OI[ OrgID ][ oClan39 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan40 ], true ) == 0) { strmid( OI[ OrgID ][ oClan40 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan41 ], true ) == 0) { strmid( OI[ OrgID ][ oClan41 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan42 ], true ) == 0) { strmid( OI[ OrgID ][ oClan42 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan43 ], true ) == 0) { strmid( OI[ OrgID ][ oClan43 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan44 ], true ) == 0) { strmid( OI[ OrgID ][ oClan44 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan45 ], true ) == 0) { strmid( OI[ OrgID ][ oClan45 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan46 ], true ) == 0) { strmid( OI[ OrgID ][ oClan46 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan47 ], true ) == 0) { strmid( OI[ OrgID ][ oClan47 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan48 ], true ) == 0) { strmid( OI[ OrgID ][ oClan48 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan49 ], true ) == 0) { strmid( OI[ OrgID ][ oClan49 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      if( strcmp( name, OI[ OrgID ][ oClan50 ], true ) == 0) { strmid( OI[ OrgID ][ oClan50 ], "Niko", 0, strlen( "Niko" ), ORG_CLAN ); }
      ResetAllWeapons( igrac );
        OI[ OrgID ][ oUbacenihClanova ]--;
      PlayerInfo[ igrac ][ xClan ] = 0; PlayerInfo[ igrac ][ xRank ] = 0; PlayerInfo[ igrac ][ xSpawn ] = SetRandomSpawn( igrac );
        PlayerInfo[ igrac ][ xOrgUgovor ] = 0; SavePlayer( igrac ); PlayerInfo[ igrac ][ xSkin ] = SetSexSkin( igrac ); SetPlayerSkin( igrac, SetSexSkin( igrac ) );
       SendClientMessageEx( igrac, CRVENA, "Lider vas je izbacio iz organizacije %s!", getOrgName( OrgID ) ); SaveOrganization( OrgID );
       SendClientMessageEx( playerid, CRVENA, "Clan %s je izbacen iz organizacije!", ImeIgraca( igrac ) );
   }
[/pawn]