Započeo SariX.tde
•15. Sep. 2017.• ZaključanoCMD
663
pregleda
5
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
111
Postovi:
24
Teme:
Pridružio se:Jul 2017
15. Sep. 2017.
Skripta koju koristim: United Gaming
Detaljan opis problema: Garaza CMD,CMD za /gexit radi bez problema,ali CMD za /genter postoji u skripti sve je pravilno postavljeno,ali kad u igri upisem "/genter" pise "Unijeli ste komandu koja ne postoji"
Dio skripte:Komande
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Detaljan opis problema: Garaza CMD,CMD za /gexit radi bez problema,ali CMD za /genter postoji u skripti sve je pravilno postavljeno,ali kad u igri upisem "/genter" pise "Unijeli ste komandu koja ne postoji"
Dio skripte:Komande
Neke slike/video za lakse dobivanje pomoci(neobavezno):
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 mjestu." );
return true;
}Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,084
Postovi:
84
Teme:
Pridružio se:Okt. 2016
15. Sep. 2017.
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 mjestu." );
return true;
}copy paste na tu cmd probaj opravio sam neš neda mi se pisat fon sam
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
111
Postovi:
24
Teme:
Pridružio se:Jul 2017
16. Sep. 2017.
NapaćeniBošnjo wrote on September 15, 2017, 12:29 pm:
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 mjestu." );
return true;
}copy paste na tu cmd probaj opravio sam neš neda mi se pisat fon sam
Hvala
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava