Checkpoint

Započeo Dark0, Septembar 20, 2021, 16:19:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): radio sam posao prevoznik zlata e sad seta onu njemo prvi cp uzme uniformu zaposli se i ostalo e sad ode do prvog cp i nista samo stoji tu cp
Deo skripte: ne znam koi bi deo mogao biti
Pawno Code: [Izaberi] /
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): /
Poslednja Izmena: Septembar 27, 2021, 21:54:47 POSLE PODNE od M Ө M Σ N Z I



Citat: Dark0 poslato Septembar 20, 2021, 17:12:20 POSLE PODNE
nije hahaha opet me zajebava
pa brate ako ti je zadnji cp bio lupam

CP = 15 iduci je 16 i tako u krug.....
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

if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) == 428 && GetPlayerState( playerid ) == 2 ) {

                 if( PrevozzLinija[ playerid ] < 4 ) {
                  Novi_DisablePlayerCheckpoint( playerid );
                  PrevozzLinija[ playerid ]++;
                  CheckpointStatus[ playerid ] = 13;
               }

               if( PrevozzLinija[ playerid ] == 2 ) Novi_SetPlayerCheckpoint( playerid, 1089.2715,-1705.7452,13.5459, 5.0 );
               else if( PrevozzLinija[ playerid ] == 3 ) Novi_SetPlayerCheckpoint( playerid, 1711.3513,-1327.2654,13.3828, 5.0 );
               else if(PrevozzLinija[ playerid ] == 4 ) {

                   new time = gettime( );
                    new ostatak = ( NovoVreme[ playerid ] - ( time - StaroVreme[ playerid ] ) );
                    if( ( time - StaroVreme[ playerid ] ) < NovoVreme[ playerid ] ) {
                      SendErrorMessage( playerid, "Dosli ste ranije na marker nego sto je predvidjeno. " );
                      SendErrorMessage( playerid, "Sacekajte jos %d sekundi i udjite ponovo u marker.", ostatak );
                      format( globalstring, sizeof( globalstring ), "| SD:AC | %s[ID: %d] je stigao na marker pre vremena( za %d od %d sekundi ).", ImeIgraca( playerid ), playerid, (NovoVreme[ playerid ]-ostatak), NovoVreme[ playerid ] );
                       AdminPoruka( ANTICHEAT, globalstring );
                     return 1;
                   }

                   SetVehicleToRespawn( GetPlayerVehicleID( playerid ) );
                   Novi_DisablePlayerCheckpoint( playerid );
                   TogglePlayerControllable( playerid, true );
                   PrevozzLinija[ playerid ] = 0;
                   CheckpointStatus[ playerid ] = 0;
                   Novi_KillTimer( Prevozz[ playerid ] );

                   new bonus = random( 400 );

                  format( globalstring, sizeof( globalstring ), ""col_job"Uspesno ste zavrsili razvoz zlata!\n\n"col_white"Plata: "col_job"1500$\n"col_white"Bonus: "col_job"%d$", bonus );
                  SPD( playerid, 0, DSMSG, D_NASLOV, globalstring, "Ok", "" );

                  PlayerInfo[ playerid ][ xPlatniRacun ] += (2800+bonus);
                  SavePlayer( playerid );

                  StaroVreme[ playerid ] = 0;
                   NovoVreme[ playerid ] = 0;

                   BussinesJobMoney( POSAO_PREVOZZ, ((1500+bonus)/10) );
                   return 1;
               }
               TogglePlayerControllable( playerid, false );
               Prevozz[ playerid ] = SetTimerEx( "UtovariZlato", 5000, false, "d", playerid );
               GameTextForPlayer( playerid, "~y~Nova lokacija dostave", 5000, 3 );
             }
         }

Da li si siguran da je to vozilo sa modelom 428 ?


pa posalji nam dio kada udje u taj prvi cp ili checkpint status
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