[POMOC]Checkpointi

Započeo Sef, Jun 03, 2017, 15:38:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Sef

*

Skripta koju koristim:FG
Detaljan opis problema:Radim posao cistac prozora i kad postavim checkpoint na mjesto gde je mapana kao struktura za hodanje checkpoint ne staje na tu strukturu vec dolje na pod. Ne znam sta da radim mogul nekako to sredit il da zamjenim sa necim drugim?
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Promijeni Z koordinate,ako sam te dobro skontao :/


EDIT: Npr. ako ti je Z koordinata 10 stavi npr. 15 i sve tako dok ne "ubodes" tu visinu koja ti treba
Poslednja Izmena: Jun 03, 2017, 15:41:01 POSLE PODNE od #Stiflerâ„¢

Sef

*

Pa jesam al idalje je isto nece da mi stoji na taj objekat koji sam mapao  :'(
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Ako po default taj objekat nema collision ja mislim da ne moze
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Sef

*

Ja mogu da stojim na taj objekat.
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Moze slika?
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Sef

*

Eo slika gdje bi on trebao stojiti znaci ja sam odradio /save i stavio te coordinate al nece spawna se na iste coordinate samo sto je na podu.Takodje imam i problem kad udjem u checkpoint nista se ne desava samo stoji tu checkpoint a stavio sam sve i setplayercheckpoint i isplayerinrange znas mozda do cega je ?

http://imgur.com/a/16pjA inace ja sam ovo mapao cisto da bih imao da vidim kako radi dok maper ne sredi.
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Sef

*

Da li zna neko?
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Mislim da taj objekat nema collision sa cpom
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Koliko je se ja u samp razumem, cp ne može stajati na mapanom objektu, ako se ne varam

"I choose to have faith, because without that, I have nothing."


Citat: ogi corleone poslato Jun 03, 2017, 16:32:11 POSLE PODNE
Koliko je se ja u samp razumem, cp ne može stajati na mapanom objektu, ako se ne varam
Pa i ja mislim,taj objekat nema collision,nije kodiran u default gta
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Sef

*

A znas li mozda zasto nece nikakva akcija da se pokrene kada stanem u checkpoint
"/?
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Citat: Sef poslato Jun 03, 2017, 16:39:18 POSLE PODNE
A znas li mozda zasto nece nikakva akcija da se pokrene kada stanem u checkpoint
"/?
Posalji kod onplayerentercheckpoint
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Sef

*

[pawn]   case 41: {
            
            if( PlayerInfo[ playerid ][ xPosao ] == POSAO_CISTACPROZORA ) {
                if( CistiProzore[ playerid ] == 1 ) {
                  if( IsPlayerInRangeOfPoint( playerid, 7, 1770.6914, -1299.4327, 33.1323 ) ) {
                     TogglePlayerControllable( playerid, false );
                     GameTextForPlayer( playerid, "~w~sacekajte, cistite prozor...", 5000, 5);
                     CistacProzoraTimer[ playerid ] = SetTimerEx( "CistiProzor", 15000, false, "d", playerid );
                     Niixi_SetPlayerCheckpoint( playerid, 1770.6914, -1302.8490, 33.1323, 3.0 );
                     CistiProzore[ playerid ] = 2;
               }
            }
               else if( CistiProzore[ playerid ] == 2 ) {
                  if( IsPlayerInRangeOfPoint( playerid, 7, 1770.6914, -1302.8490, 33.1323 ) ) {
                     TogglePlayerControllable( playerid, false );
                     GameTextForPlayer( playerid, "~w~sacekajte, cistite prozor...", 5000, 5);
                     CistacProzoraTimer[ playerid ] = SetTimerEx( "CistiProzor", 15000, false, "d", playerid );
                     Niixi_SetPlayerCheckpoint( playerid, 1770.1370, -1299.4530, 32.4134, 3.0 );
                     CistiProzore[ playerid ] = 3;
                     }
                  }
                  else if( CistiProzore[ playerid ] == 3 ) {
                  if( IsPlayerInRangeOfPoint( playerid, 7, 1770.1370 ,-1299.4530, 32.4134 ) ) {
                     TogglePlayerControllable( playerid, false );
                     GameTextForPlayer( playerid, "~w~sacekajte, cistite prozor...", 5000, 5);
                     CistacProzoraTimer[ playerid ] = SetTimerEx( "CistiProzor", 15000, false, "d", playerid );
                     Niixi_SetPlayerCheckpoint( playerid, 1770.6914 ,-1305.9937, 33.1323, 3.0 );
                     CistiProzore[ playerid ] = 4;
                  }
               }
               else if( CistiProzore[ playerid ] == 4 ) {
                  if( IsPlayerInRangeOfPoint( playerid, 7, 1770.6914 ,-1305.9937, 33.1323 ) ) {
                     TogglePlayerControllable( playerid, false );
                     GameTextForPlayer( playerid, "~w~Ostavljate stvari za ciscenje...", 5000, 5);
                     CistacProzoraTimer[ playerid ] = SetTimerEx( "CistiProzor", 15000, false, "d", playerid );
                     Niixi_SetPlayerCheckpoint( playerid, 1771.4060 ,-1319.9817, 13.5842, 3.0 );
                     CistiProzore[ playerid ] = 5;
                     }
                  }
               else if( CistiProzore[ playerid ] == 5) {
                  if( IsPlayerInRangeOfPoint( playerid, 7.0, 1771.4060 ,-1319.9817, 13.5842 ) ) {

                  }
                      CheckpointStatus[ playerid ] = 0;
                            TogglePlayerControllable( playerid, false );
                            SetTimerEx( "SlobodnoSada", 2000, false, "i", playerid );
                     new bonus = random(50);
                     PlayerInfo[ playerid ][ xPlatniRacun ] += (10000+bonus);
                     SavePlayer( playerid ); UpdatePlataTD( playerid );
                     BussinesJobMoney( POSAO_CISTACPROZORA, ((10000+bonus)/10) );
                     format( globalstring, sizeof( globalstring ), ""col_job"Uspesno ste zavrsili ciscenje prozora!\n\n"col_white"Plata: "col_job"10000$\n"col_white"Bonus: "col_job"%d$", bonus );
                     ShowPlayerDialog( playerid, 0, DSMSG, D_NASLOV, globalstring, "Ok", "" );
                     CistiProzore[ playerid ] = 0;
                     DisablePlayerCheckpoint( playerid );
                     }
               }
         }[/pawn]
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”

Sef

*

Da li zna neko?
Life Quotes:
"Successful people do what unsuccessful people are not willing to do. Don't wish it were easier; wish you were better."

“To learn something new, you need to try new things and not be afraid to be wrong.”