Rob Banke

Započeo noddy_, Septembar 14, 2021, 19:03:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Errora ni warninga nema ali, kada zapocnem rob odma se zavrsi i kaze da sam opljackao 0$ u pitanju Savana by Smoke
Deo skripte:
[pawn]
forward PljackanjeBankice( playerid );
public PljackanjeBankice( playerid ) {
   new string[ 128 ];
   if( IsPlayerInRangeOfPoint( playerid, 2, 919.4484,-24.7338,1493.4854 ) ) {
       if( PljackaVreme[ playerid ] > 0 ) {

           new novac = random(51)+300;

           if( ServerInfo[ NovacBanka ] >= (PljackaNovac[ playerid ] + novac) )  {

              PljackaNovac[ playerid ] += novac;
              format( string, sizeof( string ), "~b~Ostanite u sefu jos ~w~%d ~b~sekundi", PljackaVreme[ playerid ] );
              GameTextForPlayer( playerid, string, 1000, 4 ) ;
              PljackaVreme[ playerid ]--;
              ApplyAnimation(playerid,"BOMBER","BOM_PLANT_LOOP",4.0,1,0,0,0,-1);

         }
         else if( ServerInfo[ NovacBanka ] < (PljackaNovac[ playerid ] + novac) ) {
               GameTextForPlayer( playerid, "~w~Nema vise novca u sefu!", 1000, 4) ;
              PljackaVreme[ playerid ] = 0;
              SendClientMessageEx( playerid, NARACRVENA, "Opljackali ste Los Angeles banku i uzeli ~g~$%d !", PljackaNovac[ playerid ] );
              SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag
              ClearAnimations(playerid);
              TogglePlayerControllable(playerid, 1);
             Chupo_KillterTime( PljackanjeBankeTimer[ playerid ] );

             new orgID = PlayerInfo [ playerid ] [ xClan ];
             Chupo_SetPlayerCheckpoint(playerid, OI[ orgID ][ oPozExtX ], OI[ orgID ][ oPozExtY ], OI[ orgID ][ oPozExtZ ], 2.0 );
             CheckpointStatus[ playerid ] = 43;

            Pljackas[ playerid ] = 1;

             PljackaUToku = false;

            ServerInfo[ NovacBanka ] -= PljackaNovac[ playerid ];
            SaveServerStats( );

            new novacstring[ 256 ];
            format( novacstring, sizeof( novacstring ), ""col_white"Trenutno u sefu ima "col_srvboja"$%d\n"col_white"Da opljackate banku koristite\n"col_srvboja"[ /postavidinamit /provalilozinku /pljackajbanku ]", ServerInfo[ NovacBanka ] );
            UpdateDynamic3DTextLabelText( ServerInfo[ NovacLabel ], BELA, novacstring );
            
            

            format( novacstring, sizeof( novacstring ), ""col_white"- STANJE NOVCA -\n"col_white"Trenutno u sefu ima "col_srvboja"$%d\n"col_white"Maksimalno moze imati "col_srvboja"1 000 000$\n"col_srvboja"Banka", ServerInfo[ NovacBanka ] );
             UpdateDynamic3DTextLabelText( ServerInfo[ NovacLabel2 ], BELA, novacstring );

             format( globalstring, sizeof( globalstring ), "[CNN] Vesti | "col_white"Glavna Banka Los Angelesa je opljackana i ukradeno je $%d.", PljackaNovac[ playerid ] );
              OOCNews( 0xFFA500AA, globalstring );
           }
       }
       else if( PljackaVreme[ playerid ] == 0 ) {
            PljackaNovac[ playerid ] = random(950) + 100;

            if(PlayerInfo[playerid][xLevel] == 5) PljackaNovac[ playerid ] += 6000;
          if(PlayerInfo[playerid][xLevel] == 6) PljackaNovac[ playerid ] += 8000;
          if(PlayerInfo[playerid][xLevel] == 7) PljackaNovac[ playerid ] += 10000;
          if(PlayerInfo[playerid][xLevel] == 8) PljackaNovac[ playerid ] += 12000;
          if(PlayerInfo[playerid][xLevel] == 9) PljackaNovac[ playerid ] += 14000;
          if(PlayerInfo[playerid][xLevel] == 10) PljackaNovac[ playerid ] += 16000;
          if(PlayerInfo[playerid][xLevel] == 11) PljackaNovac[ playerid ] += 18000;
          if(PlayerInfo[playerid][xLevel] == 12) PljackaNovac[ playerid ] += 20000;
          if(PlayerInfo[playerid][xLevel] == 13) PljackaNovac[ playerid ] += 22000;
          if(PlayerInfo[playerid][xLevel] == 14) PljackaNovac[ playerid ] += 24000;
          if(PlayerInfo[playerid][xLevel] == 15) PljackaNovac[ playerid ] += 26000;
          if(PlayerInfo[playerid][xLevel] == 16) PljackaNovac[ playerid ] += 28000;
          if(PlayerInfo[playerid][xLevel] == 17) PljackaNovac[ playerid ] += 30000;
          if(PlayerInfo[playerid][xLevel] == 18) PljackaNovac[ playerid ] += 32000;
          if(PlayerInfo[playerid][xLevel] == 19) PljackaNovac[ playerid ] += 34000;
          if(PlayerInfo[playerid][xLevel] == 20) PljackaNovac[ playerid ] += 36000;
          if(PlayerInfo[playerid][xLevel] == 21) PljackaNovac[ playerid ] += 38000;
          if(PlayerInfo[playerid][xLevel] == 22) PljackaNovac[ playerid ] += 40000;
          if(PlayerInfo[playerid][xLevel] == 23) PljackaNovac[ playerid ] += 42000;
          if(PlayerInfo[playerid][xLevel] == 24) PljackaNovac[ playerid ] += 44000;
          if(PlayerInfo[playerid][xLevel] == 25) PljackaNovac[ playerid ] += 46000;
          if(PlayerInfo[playerid][xLevel] == 26) PljackaNovac[ playerid ] += 48000;
          if(PlayerInfo[playerid][xLevel] == 27) PljackaNovac[ playerid ] += 50000;
          if(PlayerInfo[playerid][xLevel] == 28) PljackaNovac[ playerid ] += 52000;
          if(PlayerInfo[playerid][xLevel] == 29) PljackaNovac[ playerid ] += 54000;
          if(PlayerInfo[playerid][xLevel] == 30) PljackaNovac[ playerid ] += 56000;
          if(PlayerInfo[playerid][xLevel] >= 31) PljackaNovac[ playerid ] += 58000;

          format(string, sizeof( string ),"~w~Opljackali ste glavnu banku i uzeli ~g~$%d !", PljackaNovac[ playerid ] );
         GameTextForPlayer( playerid, string, 6000, 4 );
         SendClientMessageEx( playerid, NARACRVENA, "Opljackali ste glavnu banku i uzeli $%d !",PljackaNovac[ playerid ] );
         SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag
         SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag
         SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag
         SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag
         SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag
         SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag
         Chupo_KillterTime( PljackanjeBankeTimer[ playerid ] );
            PljackaVreme[ playerid ] = 0;
            ClearAnimations(playerid);
           TogglePlayerControllable(playerid, 1);
            PljackaUToku = false;

            new orgID = PlayerInfo [ playerid ] [ xClan ];
            Chupo_SetPlayerCheckpoint(playerid, OI[ orgID ][ oPozExtX ], OI[ orgID ][ oPozExtY ], OI[ orgID ][ oPozExtZ ], 2.0 );
            CheckpointStatus[ playerid ] = 43;

         ServerInfo[ NovacBanka ] -= PljackaNovac[ playerid ];
         SaveServerStats( );

         Pljackas[ playerid ] = 1;

         new novacstring[ 256 ];
         format( novacstring, sizeof( novacstring ), ""col_white"Trenutno u sefu ima "col_srvboja"$%d\n"col_white"Da opljackate banku koristite\n"col_srvboja"[ /postavidinamit /provalilozinku /pljackajbanku ]", ServerInfo[ NovacBanka ] );
         UpdateDynamic3DTextLabelText( ServerInfo[ NovacLabel ], BELA, novacstring );

         format( novacstring, sizeof( novacstring ), ""col_white"- STANJE NOVCA -\n"col_white"Trenutno u sefu ima "col_srvboja"$%d\n"col_white"Maksimalno moze imati "col_srvboja"1 000 000$\n"col_srvboja"Banka", ServerInfo[ NovacBanka ] );
          UpdateDynamic3DTextLabelText( ServerInfo[ NovacLabel2 ], BELA, novacstring );

            format( globalstring, sizeof( globalstring ), "[CNN] Vesti | "col_white"Banka je opljackana i opljackano je $%d.", PljackaNovac[ playerid ] );
            OOCNews( 0xFFA500AA, globalstring );
      }
   }
   return true;
}

[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Poslednja Izmena: Septembar 23, 2021, 02:47:08 PRE PODNE od M Ө M Σ N Z I
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

objasnio sam ti na discordu, pogledaj DM.. Novac u sefu moras staviti :D
Poslednja Izmena: Septembar 14, 2021, 19:21:15 POSLE PODNE od ꜱᴍᴏᴋᴇ
https://discord.io/westmont
Westmont Roleplay — A continuation of the San Andreas singleplayer storymode.
SA-MP 0.3.DL gamemode with custom models.

Citat: ꜱᴍᴏᴋᴇ poslato Septembar 14, 2021, 19:18:59 POSLE PODNE
objasnio sam ti na discordu, pogledaj DM.. Novac u sefu moras staviti :D

Novac u sefu vec ima...neko drugi pomoci?????
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Posalji komandu gdje zapocinjes rob usput, ovo izgleda ocajno pa sam malo rewrite


[pawn]

if(PlayerInfo[playerid][xLevel] == 5) PljackaNovac[ playerid ] += 6000;
    if(PlayerInfo[playerid][xLevel] == 6) PljackaNovac[ playerid ] += 8000;
    if(PlayerInfo[playerid][xLevel] == 7) PljackaNovac[ playerid ] += 10000;
    if(PlayerInfo[playerid][xLevel] == 8) PljackaNovac[ playerid ] += 12000;
    if(PlayerInfo[playerid][xLevel] == 9) PljackaNovac[ playerid ] += 14000;
    if(PlayerInfo[playerid][xLevel] == 10) PljackaNovac[ playerid ] += 16000;
    if(PlayerInfo[playerid][xLevel] == 11) PljackaNovac[ playerid ] += 18000;
    if(PlayerInfo[playerid][xLevel] == 12) PljackaNovac[ playerid ] += 20000;
    if(PlayerInfo[playerid][xLevel] == 13) PljackaNovac[ playerid ] += 22000;
    if(PlayerInfo[playerid][xLevel] == 14) PljackaNovac[ playerid ] += 24000;
    if(PlayerInfo[playerid][xLevel] == 15) PljackaNovac[ playerid ] += 26000;
    if(PlayerInfo[playerid][xLevel] == 16) PljackaNovac[ playerid ] += 28000;
    if(PlayerInfo[playerid][xLevel] == 17) PljackaNovac[ playerid ] += 30000;
    if(PlayerInfo[playerid][xLevel] == 18) PljackaNovac[ playerid ] += 32000;
    if(PlayerInfo[playerid][xLevel] == 19) PljackaNovac[ playerid ] += 34000;
    if(PlayerInfo[playerid][xLevel] == 20) PljackaNovac[ playerid ] += 36000;
    if(PlayerInfo[playerid][xLevel] == 21) PljackaNovac[ playerid ] += 38000;
    if(PlayerInfo[playerid][xLevel] == 22) PljackaNovac[ playerid ] += 40000;
    if(PlayerInfo[playerid][xLevel] == 23) PljackaNovac[ playerid ] += 42000;
    if(PlayerInfo[playerid][xLevel] == 24) PljackaNovac[ playerid ] += 44000;
    if(PlayerInfo[playerid][xLevel] == 25) PljackaNovac[ playerid ] += 46000;
    if(PlayerInfo[playerid][xLevel] == 26) PljackaNovac[ playerid ] += 48000;
    if(PlayerInfo[playerid][xLevel] == 27) PljackaNovac[ playerid ] += 50000;
    if(PlayerInfo[playerid][xLevel] == 28) PljackaNovac[ playerid ] += 52000;
    if(PlayerInfo[playerid][xLevel] == 29) PljackaNovac[ playerid ] += 54000;
    if(PlayerInfo[playerid][xLevel] == 30) PljackaNovac[ playerid ] += 56000;
    if(PlayerInfo[playerid][xLevel] >= 31) PljackaNovac[ playerid ] += 58000;
[/pawn]


Zamijeni sa https://fiddle.sa-mp.dev/RitzyBlithesomeWoollybearcaterpillar


Ovo koristis 10 puta iz nepoznatog razloga dovoljna je samo jedna linija



SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1); // Da mu stavi money bag

posalji nam cmd za pljackanje banke, da vidimo na koliko je setano PljackaVreme
Upwork Skills
Back-end:
• PHP Frameworks (Laravel, Symfony,Codeigniter)
• Python/Django
• Node.js

Front-end:
• HTML
• CSS pre-processing (SASS, LESS)
• Javascript (JQuery, Ajax, Vue, Angular, React, etc.)
• Bootstrap

CMS
• Wordpress (Woocommerce)
• Shopify, Magento

Ti attachovi su izbrisani kao i sami rob kreirao sam svoj sys....timer je bio dobar Timer je na 1 sekundu a PljackaVreme na 120, i svaku sekundu bi trebao dobivati novac...ali je uvijek bilo 0$, hvala svima sto su pokusali pomoc.
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama