Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Luka. poslato Mart 10, 2016, 21:05:33 POSLE PODNE

Naslov: [POMOC] Garaza
Poruka od: Luka. poslato Mart 10, 2016, 21:05:33 POSLE PODNE
Skripta koju koristim:/
Detaljan opis problema:Znaci kad ulazim s autom u garazu sve super ali kad izlazim me baci s neba
Dio skripte:evo u pastebinu http://pastebin.com/AX2GYQCX
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Naslov: Odg: [POMOC] Garaza
Poruka od: Scripter Braun poslato Mart 10, 2016, 23:11:17 POSLE PODNE
Jel te baca kada si u auto ili kada nisi ??
Naslov: Odg: [POMOC] Garaza
Poruka od: Luka. poslato Mart 11, 2016, 20:21:44 POSLE PODNE
I kad sam u autu i kad nisam
Naslov: Odg: [POMOC] Garaza
Poruka od: VuKaN poslato Mart 11, 2016, 21:57:16 POSLE PODNE
Nije ti lepo postavljen izlazX, izlazY, izlazZ iz garaze.
Naslov: Odg: [POMOC] Garaza
Poruka od: Luka. poslato Mart 11, 2016, 22:02:33 POSLE PODNE
nista mi ne pise ovdje za te izlaze da vidim da bi podesio
Naslov: Odg: [POMOC] Garaza
Poruka od: VuKaN poslato Mart 11, 2016, 22:07:03 POSLE PODNE
Daj mi ovo garageVehiclePos
Naslov: Odg: [POMOC] Garaza
Poruka od: Luka. poslato Mart 11, 2016, 22:10:05 POSLE PODNE
ResetGarage( id ) {
garageInfo[ id ][ garageOwned ] = false;
strmid( garageInfo[ id ][ garageOwned ], "Drzava", 0, strlen( "Drzava" ), MAX_PLAYER_NAME );
garageInfo[ id ][ garagePrice ] = 0;
garageInfo[ id ][ garageLevel ] = 0;
garageInfo[ id ][ garageLocked ] = false;
garageInfo[ id ][ garagePos ][ 0 ] = 0.0;
garageInfo[ id ][ garagePos ][ 1 ] = 0.0;
garageInfo[ id ][ garagePos ][ 2 ] = 0.0;
garageInfo[ id ][ garageVehiclePos ][ 0 ] = 0.0;
garageInfo[ id ][ garageVehiclePos ][ 1 ] = 0.0;
garageInfo[ id ][ garageVehiclePos ][ 2 ] = 0.0;
garageInfo[ id ][ garageVehiclePos ][ 3 ] = 0.0;
garageInfo[ id ][ garageVW ] = 0;
garageInfo[ id ][ garageType ] = -1;
}
Naslov: Odg: [POMOC] Garaza
Poruka od: VuKaN poslato Mart 11, 2016, 22:16:38 POSLE PODNE
Ocigledno da nemas nigde da igrac izlazi, zato te baca skroz u nebo. Napravi gGarageIzlaz i tako stavljaj, radi po principu kada kuca /gexit da ga stvori ispred te garaze, isto kao za ulaz samo obrnuto.
Naslov: Odg: [POMOC] Garaza
Poruka od: Luka. poslato Mart 11, 2016, 22:30:56 POSLE PODNE
Probacu to sredit,hvala
Naslov: Odg: [POMOC] Garaza
Poruka od: Luka. poslato Mart 12, 2016, 13:27:14 POSLE PODNE
pogledaj ovu komandu kad ulazim u garazu
CMD:genter( playerid, params[] ) {

    new id = GetNearestGarage( playerid );
    if( id == -1 ) return GRESKA( playerid, "Nema garaze u blizini." );
    new gtype = garageInfo[ id ][ garageType ];
if( garageInfo[ id ][ garageLocked ] == true ) return GRESKA( playerid, "Ova garaza je zakljucana." );

if( GetPlayerState( playerid ) == PLAYER_STATE_ONFOOT ) {
SetPlayerPos( playerid, GarageInteriors[ gtype ][ 0 ], GarageInteriors[ gtype ][ 1 ], GarageInteriors[ gtype ][ 2 ] );
        GameTextForPlayer( playerid, "Ucitavanje ...", 1000, 4 );
    SetTimerEx( "SlobodnoSada", 2000, false, "i", playerid );
    SetCameraBehindPlayer( playerid );
    TogglePlayerControllable( playerid, false );
    SetPlayerInterior( playerid, floatround( GarageInteriors[ gtype ][ 4 ] ) );
SetPlayerVirtualWorld( playerid, garageInfo[ id ][ garageVW ] );
SetPlayerFacingAngle( playerid, GarageInteriors[ gtype ][ 3 ] );
EnteredGarage[ playerid ] = id;
SendInfoMessage( playerid, "Da izadjete iz garaze kucajte /gexit." );
}
    else if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) {
new vehicle = GetPlayerVehicleID( playerid );
LinkVehicleToInterior( vehicle, floatround( GarageInteriors[ gtype ][ 4 ] ) );
SetVehicleVirtualWorld( vehicle, garageInfo[ id ][ garageVW ] );
SetVehiclePos( vehicle, GarageInteriors[ gtype ][ 0 ], GarageInteriors[ gtype ][ 1 ], GarageInteriors[ gtype ][ 2 ] );
        GameTextForPlayer( playerid, "Ucitavanje ...", 1000, 4 );
    SetTimerEx( "SlobodnoSada", 2000, false, "i", playerid );
    SetCameraBehindPlayer( playerid );
    TogglePlayerControllable( playerid, false );
SetPlayerInterior( playerid, floatround( GarageInteriors[ gtype ][ 4 ] ) );
SetPlayerVirtualWorld( playerid, garageInfo[ id ][ garageVW ] );
SetVehicleZAngle( vehicle, GarageInteriors[ gtype ][ 3 ] );
EnteredGarage[ playerid ] = id;
SendInfoMessage( playerid, "Da izadjete iz garaze kucajte /gexit." );
}
else return GRESKA( playerid, "Komandu mozes koristiti samo ako si na nogama ili na vozacevom mestu." );
return true;
}