Pomoc oko porta

Započeo llDzonill, Novembar 15, 2017, 00:15:42 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

kripta koju koristim: ATH by Traxx
Detaljan opis problema: Vip port komanda nece  da radi jednostavno upisem je ono nista se ne desi
Dio skripte:Nzm koji treba
Neke slike/video za lakse dobivanje pomoci(neobavezno):

daj cmd
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

Ovo je prvi ima dva komada


/*CMD:vport( playerid, params[] ) {
    if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
        if( PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
            if( NaUtrci[ playerid ] ) return GRESKA( playerid, "Ne mozes dok si na trci." );
            if( NaDmEventu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
            if( PoliceDuty[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
            if( UzeoOpremu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas opremu posla." );
         if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
         if( PlayerInfo[ playerid ][ xMaraton ] > 0 ) return GRESKA( playerid, "Ne mozete to kod ste na maratonu !");
         if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
      }
        if( VIPPort[ playerid ] != 0 ) return GRESKA( playerid, "Jos %d sekundi do sledeceg porta.", VIPPort[ playerid ] );
      SPD( playerid, dialog_SELECTVPORT, DSL, D_NASLOV, "Vip Baza\nLos Santos\nSan Fierro\nLas Venturas\nBurg\nBanka\nBolnica\nLotto\nZlatara\nSpawn\nMarket kod Burga\nMarket Konzum\nPlaza\nAerodrom\nPumpa", D_ODABERI, D_ODUSTANI );
   }
   else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
    return true;
}*/

ovo je drugi


/*CMD:vport( playerid, params[] ) {
    if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
        if( PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
            if( NaUtrci[ playerid ] ) return GRESKA( playerid, "Ne mozes dok si na trci." );
            if( NaDmEventu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
            if( PoliceDuty[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
            if( UzeoOpremu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas opremu posla." );
         if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
         if( PlayerInfo[ playerid ][ xMaraton ] > 0 ) return GRESKA( playerid, "Ne mozete to kod ste na maratonu !");
         if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
      }
      strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
      for( new i = 0; i < MAX_VPORTS; i++ ) {
         if( vportInfo[ i ][ vportCreated ] == 1 ) {
            format( DialogStrgEx, sizeof( DialogStrgEx ), "%s%s\n", DialogStrgEx, vportInfo[ i ][ vportName ] );
         }
      }
      SPD( playerid, dialog_SELECTVPORT, DSL, D_NASLOV, DialogStrgEx, D_ODABERI, D_ODUSTANI );
   }
   else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
    return true;
}*/

[pawn]CMD:vport( playerid, params[] ) {
    if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
        if( PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
            if( NaUtrci[ playerid ] ) return GRESKA( playerid, "Ne mozes dok si na trci." );
            if( NaDmEventu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
            if( PoliceDuty[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
            if( UzeoOpremu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas opremu posla." );
         if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
         if( PlayerInfo[ playerid ][ xMaraton ] > 0 ) return GRESKA( playerid, "Ne mozete to kod ste na maratonu !");
         if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
      }
        if( VIPPort[ playerid ] != 0 ) return GRESKA( playerid, "Jos %d sekundi do sledeceg porta.", VIPPort[ playerid ] );
      SPD( playerid, dialog_SELECTVPORT, DSL, D_NASLOV, "Vip Baza\nLos Santos\nSan Fierro\nLas Venturas\nBurg\nBanka\nBolnica\nLotto\nZlatara\nSpawn\nMarket kod Burga\nMarket Konzum\nPlaza\nAerodrom\nPumpa", D_ODABERI, D_ODUSTANI );
   }
   else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
    return true;
}[/pawn]

ukloni ovo na pocetku cmd /* i na kraju */