ATH MOD

Započeo <sel1m>
16. Nov. 2017.
1,480
pregleda
8
postova
nickydefacto
4
Made Man
16. Nov. 2017.
Pitanje: Problem sa dinamicnim organizacijama
Komentar: Trazim vec 2 dana u cemu je problem ali nikako da nadjem u skripti.Problem je u tome setam sebi lidera za drzavnu organizaciju PD/Zandarmerija itd.. A kada setam za bande i ostalo pise mi da nisam lider/clan organizacije. Pa zna li neko u cemu je frka?
PedjaZakon
5
Godfather
16. Nov. 2017.
daj sve pod linije "CMD😮rghelp"
nickydefacto
4
Made Man
16. Nov. 2017.
★ Pɪɴᴋɪ ★ wrote on November 16, 2017, 12:19 pm:
daj sve pod linije "CMD😮rghelp"
CMD:orghelp( playerid, params[] ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
if( GetFactionType( playerid ) == ORG_TIP_PD ) {
strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/duty /r /f /d /alcotest /computer /arrest /cuff /uncuff /pu /cctv /ugasikamere\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/tazer /m /wanted /su /rb /rrb /rrball /bk /bkc /govrepair /undercover /pdslap\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/srusivrata /frisk /take /ticket /orgstats /siren /gov /pokaziznacku /clear /suspend\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/mandescription /removearm /equipment  /vuci /pusti /proveripojas /carsign\n" );
strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/narcotest /narcoresults /unistidrogu /destroygun /ram /namestibvrata\n" );
strcat( DialogStrgEx, ""col_pinki"Lider | "col_white"/lider" );
if( GetFactionType( playerid ) == ORG_TIP_PD ) {
    strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/orghelp /prisonhelp /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MD ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /d /mduty /medicine /recover /muniform /dajinekciju /nadji /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_CNN ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /vesti /live /newsstats /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_ELEK ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /electric /clanovi /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_TAXI ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /taxi /clanovi /togfr\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MAFIJA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /clanovi /togfr /zauzmifirmu\n" ); }
else if( PlayerInfo[ playerid ][ xLider ] != 0 ) {
    strcat( DialogStrgEx, ""col_pinki"LEADER | "col_white"/lider(sve opcije lidera)\n" ); }
SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "Ok", "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
}else return GRESKA( playerid, ""col_chating"Nisi clan nijedne organizacije!" );
return 1;
}
PedjaZakon
5
Godfather
16. Nov. 2017.
Evo ti primer pa ti sastavljaj dalje, cist primer proveri ovako ti na cmd😮rghelp nisi povezao sve kao sto je vec definisano
#define ORG_TIP_PD 	    1
#define ORG_TIP_BANDA 2
#define ORG_TIP_MAFIJA  3
#define ORG_TIP_MC 4
#define ORG_TIP_SR 5
#define ORG_TIP_MD 6
#define ORG_TIP_CNN 7
#define ORG_TIP_HITM 8
#define ORG_TIP_ELEK  9
#define ORG_TIP_TAXI 10
#define ORG_TIP_PS     11


U CMD😮rghelp imas svega samo
ORG_TIP_PD
ORG_TIP_MD
ORG_TIP_CNN
ORG_TIP_ELEK
ORG_TIP_TAXI
ORG_TIP_MAFIJA
Tebi ovo je ubaceno za orghelp da fukcionise, dakle fali ti onoliko koliko ti je gore navedeno, nedostaje
ORG_TIP_BANDA
ORG_TIP_PS
ORG_TIP_HITM
ORG_TIP_MC
ORG_TIP_SR
Nadam se da si razumeo 😄
nickydefacto
4
Made Man
16. Nov. 2017.
★ Pɪɴᴋɪ ★ wrote on November 16, 2017, 12:30 pm:
Evo ti primer pa ti sastavljaj dalje, cist primer proveri ovako ti na cmd😮rghelp nisi povezao sve kao sto je vec definisano
#define ORG_TIP_PD 	    1
#define ORG_TIP_BANDA 2
#define ORG_TIP_MAFIJA  3
#define ORG_TIP_MC 4
#define ORG_TIP_SR 5
#define ORG_TIP_MD 6
#define ORG_TIP_CNN 7
#define ORG_TIP_HITM 8
#define ORG_TIP_ELEK  9
#define ORG_TIP_TAXI 10
#define ORG_TIP_PS     11


U CMD😮rghelp imas svega samo
ORG_TIP_PD
ORG_TIP_MD
ORG_TIP_CNN
ORG_TIP_ELEK
ORG_TIP_TAXI
ORG_TIP_MAFIJA
Tebi ovo je ubaceno za orghelp da fukcionise, dakle fali ti onoliko koliko ti je gore navedeno, nedostaje
ORG_TIP_BANDA
ORG_TIP_PS
ORG_TIP_HITM
ORG_TIP_MC
ORG_TIP_SR
Nadam se da si razumeo 😄

vec je definisano to
PedjaZakon
5
Godfather
16. Nov. 2017.
PS: evo ti pa proveri
CMD:orghelp( playerid, params[] ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
if( GetFactionType( playerid ) == ORG_TIP_PD ) {
strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/duty /r /f /d /alcotest /computer /arrest /cuff /uncuff /pu /cctv /ugasikamere\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/tazer /m /wanted /su /rb /rrb /rrball /bk /bkc /govrepair /undercover /pdslap\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/srusivrata /frisk /take /ticket /orgstats /siren /gov /pokaziznacku /clear /suspend\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/mandescription /removearm /equipment  /vuci /pusti /proveripojas /carsign\n" );
strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/narcotest /narcoresults /unistidrogu /destroygun /ram /namestibvrata\n" );
strcat( DialogStrgEx, ""col_pinki"Lider | "col_white"/lider" );
if( GetFactionType( playerid ) == ORG_TIP_PD ) {
    strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/orghelp /prisonhelp /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MD ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /d /mduty /medicine /recover /muniform /dajinekciju /nadji /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_CNN ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /vesti /live /newsstats /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_ELEK ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /electric /clanovi /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_TAXI ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /taxi /clanovi /togfr\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MAFIJA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /clanovi /togfr /zauzmifirmu\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_BANDA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_HITM ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MC ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_SR ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_PS ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
else if( PlayerInfo[ playerid ][ xLider ] != 0 ) {
    strcat( DialogStrgEx, ""col_pinki"LEADER | "col_white"/lider(sve opcije lidera)\n" ); }
SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "Ok", "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
}else return GRESKA( playerid, ""col_chating"Nisi clan nijedne organizacije!" );
return 1;
}
nickydefacto
4
Made Man
16. Nov. 2017.
★ Pɪɴᴋɪ ★ wrote on November 16, 2017, 12:33 pm:
PS: evo ti pa proveri
CMD:orghelp( playerid, params[] ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
if( GetFactionType( playerid ) == ORG_TIP_PD ) {
strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/duty /r /f /d /alcotest /computer /arrest /cuff /uncuff /pu /cctv /ugasikamere\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/tazer /m /wanted /su /rb /rrb /rrball /bk /bkc /govrepair /undercover /pdslap\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/srusivrata /frisk /take /ticket /orgstats /siren /gov /pokaziznacku /clear /suspend\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/mandescription /removearm /equipment  /vuci /pusti /proveripojas /carsign\n" );
strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/narcotest /narcoresults /unistidrogu /destroygun /ram /namestibvrata\n" );
strcat( DialogStrgEx, ""col_pinki"Lider | "col_white"/lider" );
if( GetFactionType( playerid ) == ORG_TIP_PD ) {
    strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/orghelp /prisonhelp /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MD ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /d /mduty /medicine /recover /muniform /dajinekciju /nadji /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_CNN ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /vesti /live /newsstats /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_ELEK ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /electric /clanovi /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_TAXI ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /taxi /clanovi /togfr\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MAFIJA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /clanovi /togfr /zauzmifirmu\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_BANDA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_HITM ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MC ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_SR ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_PS ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
else if( PlayerInfo[ playerid ][ xLider ] != 0 ) {
    strcat( DialogStrgEx, ""col_pinki"LEADER | "col_white"/lider(sve opcije lidera)\n" ); }
SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "Ok", "" );
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
}else return GRESKA( playerid, ""col_chating"Nisi clan nijedne organizacije!" );
return 1;
}

ISTO IDALJE
nickydefacto
4
Made Man
16. Nov. 2017.
Tako ti je to kad ne citas text.. Nista treba se sredit jer nije uradjeno LOL XD

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha