Zna li neko, da vam sad ne dajem kod za svaki td, do cega moze biti? ATH je mod
Ne mozemo ti pomoc bez koda ili slike, preporucujem da ostavis OnPlayerClickPlayerTextDraw funkciju pa cemo vidit sta se moze uradit poz.
Citat: Jack1337 poslato Mart 24, 2019, 01:21:07 PRE PODNE
Ne mozemo ti pomoc bez koda ili slike, preporucujem da ostavis OnPlayerClickPlayerTextDraw funkciju pa cemo vidit sta se moze uradit poz.
Eto auto salon, ali ne radi ni
[pawn] public OnPlayerClickPlayerTextDraw( playerid, PlayerText:playertextid )
{
if( _:playertextid != INVALID_TEXT_DRAW )
{
if( playertextid == BuyCar[ playerid ][ 1 ] )
{
new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 )
{
if( ModelCar[ playerid ] == (AutoSalon[ as ][ aMaxVehModel ]-1) ) return 1;
ModelCar[ playerid ]++;
new string[ 128 ];
format( string, sizeof( string ), "%s", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 3 ], string );
format( string, sizeof( string ), "~w~%d$", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 7 ], string );
format( string, sizeof( string ), "~w~%dg", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 2 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 11 ], string );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 5 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 5 ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 12 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 12 ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 9 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 9 ] );
SetPlayerCameraPos( playerid, AutoSalon[ as ][ aCameraPos ][ 0 ], AutoSalon[ as ][ aCameraPos ][ 1 ], AutoSalon[ as ][ aCameraPos ][ 2 ] );
SetPlayerCameraLookAt( playerid, AutoSalon[ as ][ aCameraLookAt ][ 0 ], AutoSalon[ as ][ aCameraLookAt ][ 1 ], AutoSalon[ as ][ aCameraLookAt ][ 2 ] );
Dimi_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Dimi_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], VehicleInfo[ slotid ][ vFuelProperty ], AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], AutoSalonBojaVozila[ playerid ], AutoSalonBojaVozila[ playerid ], -1 );
SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );
//==============================================================================//////
if( VoziloJeDizel( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Dizel" );
}
else if( VoziloJeBenzin( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Benzin" );
}
else if( VoziloJeKerozin( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Kerozin" );
}
else if( VoziloNemaGorivo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~N/A" );
}
//==============================================================================///////
if( VoziloJe2Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~2" );
}
else if( VoziloJe4Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~4" );
}
else if( VoziloNemaVrata( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~0" );
}
//==============================================================================////////////////
if( SportVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~sportsko" );
}
else if( PutnickoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~putnicko" );
}
else if( IsVehicleMotor( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~motocikl" );
}
else if( IsVehicleBajs( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~bicikl" );
}
else if( IsVehicleLetelica( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~letilica" );
}
else if( IsVehicleBrod( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~plovilo" );
}
else if( TeretnoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~teretno" );
}
else
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~N/A" );
}
//==============================================================================//////////
new Cboja1 = AutoSalonBojaVozila[ playerid ];
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ],Cboja1, Cboja1);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ],Cboja1, Cboja1);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ],Cboja1, Cboja1);
SelectTextDraw( playerid, SSBOJA );
}
return true;
}
if( playertextid == BuyCar[ playerid ][ 4 ] )
{
new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 )
{
if( ModelCar[ playerid ] == 0 ) return 1;
ModelCar[ playerid ]--;
new string[ 128 ];
format( string, sizeof( string ), "%s", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 3 ], string );
format( string, sizeof( string ), "~w~%d$", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 7 ], string );
format( string, sizeof( string ), "~w~%dg", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 2 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 11 ], string );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 5 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 5 ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 12 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 12 ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 9 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 9 ] );
SetPlayerCameraPos( playerid, AutoSalon[ as ][ aCameraPos ][ 0 ], AutoSalon[ as ][ aCameraPos ][ 1 ], AutoSalon[ as ][ aCameraPos ][ 2 ] );
SetPlayerCameraLookAt( playerid, AutoSalon[ as ][ aCameraLookAt ][ 0 ], AutoSalon[ as ][ aCameraLookAt ][ 1 ], AutoSalon[ as ][ aCameraLookAt ][ 2 ] );
Dimi_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Dimi_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], VehicleInfo[ slotid ][ vFuelProperty ], AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], AutoSalonBojaVozila[ playerid ], AutoSalonBojaVozila[ playerid ], -1 );
SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );
//==============================================================================//////
if( VoziloJeDizel( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Dizel" );
}
else if( VoziloJeBenzin( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Benzin" );
}
else if( VoziloJeKerozin( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Kerozin" );
}
else if( VoziloNemaGorivo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~N/A" );
}
//==============================================================================///////
if( VoziloJe2Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~2" );
}
else if( VoziloJe4Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~4" );
}
else if( VoziloNemaVrata( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~0" );
}
//==============================================================================////////////////
if( SportVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~sportsko" );
}
else if( PutnickoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~putnicko" );
}
else if( IsVehicleMotor( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~motocikl" );
}
else if( IsVehicleBajs( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~bicikl" );
}
else if( IsVehicleLetelica( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~letilica" );
}
else if( IsVehicleBrod( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~plovilo" );
}
else if( TeretnoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~teretno" );
}
else
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~N/A" );
}
//==============================================================================//////////
new Cboja1 = AutoSalonBojaVozila[ playerid ];
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ],Cboja1, Cboja1);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ],Cboja1, Cboja1);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ],Cboja1, Cboja1);
SelectTextDraw( playerid, SSBOJA );
}
return true;
}
if( playertextid == BuyCar[ playerid ][ 8 ] )
{
new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 )
{
AutoSalon[ as ][ AlreadyBuying ] = false;
PlayerBuyingAS[ playerid ] = -1;
AutoSalonBojaVozila[ playerid ] = -1;
ModelCar[ playerid ] = 0;
Dimi_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Dimi_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], VehicleInfo[ slotid ][ vFuelProperty ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], -1, -1, -1 );
SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );
BuyCarTDControl( playerid, false );
BojaVozilaTDControl( playerid, false );
TogPlayerHud( playerid );
TogglePlayerControllable( playerid, true );
SetCameraBehindPlayer( playerid );
CancelSelectTextDraw( playerid );
}
return true;
}
if( playertextid == BuyCar[ playerid ][ 10 ] )
{
new as = GetNearestSalon( playerid );
if( as != -1 ) {
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
strcat( DialogStrgEx, ""SS_BOJA"__________________________________________________________________\n");
format( globalstring, sizeof( globalstring ),""col_white"Da li ste sigurni da zelite kupiti vozilo "SS_BOJA"%s.\n", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ] );
strcat( DialogStrgEx, globalstring );
format( globalstring, sizeof( globalstring ),""col_white"Cena: "SS_BOJA"%dg zlata.\n", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]- 400 ][ 2 ] );
strcat( DialogStrgEx, globalstring );
strcat( DialogStrgEx, ""SS_BOJA"__________________________________________________________________");
ShowPlayerDialog( playerid, dialog_VEHGOLDBUY, DSMSG, D_NASLOV, DialogStrgEx, "Kupi", "Odustani" );
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
}
return true;
}
if( playertextid == BuyCar[ playerid ][ 6 ] )
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
strcat( DialogStrgEx, ""SS_BOJA"__________________________________________________________________\n");
format( globalstring, sizeof( globalstring ),""col_white"Da li ste sigurni da zelite kupiti vozilo "SS_BOJA"%s.\n", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ] );
strcat( DialogStrgEx, globalstring );
format( globalstring, sizeof( globalstring ),""col_white"Cena: "SS_BOJA"%d$.\n", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]- 400 ][ 1 ] );
strcat( DialogStrgEx, globalstring );
strcat( DialogStrgEx, ""SS_BOJA"__________________________________________________________________");
ShowPlayerDialog( playerid, dialog_VEHMONEYBUY, DSMSG, D_NASLOV, DialogStrgEx, "Kupi", "Odustani" );
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
}
return true;
}
////////////////////////////////////////////////////////////////////////
if( playertextid == ASBojaVozila[ 4 ] [ playerid ] )//crna
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 0;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 5 ] [ playerid ] )//bijela
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 1;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 6 ] [ playerid ] )//svijetlo plava
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 135;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 7 ] [ playerid ] )//crvena
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 3;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 8 ] [ playerid ] )//zelenoplava
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 165;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 9 ] [ playerid ] )//pink
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 126;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 10 ] [ playerid ] )//zuta
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 6;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 11 ] [ playerid ] )//zelena
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 191;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 12 ] [ playerid ] )//tamno ljubicasta
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 179;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 13 ] [ playerid ] )//svijetlo zelena
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 145;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 14 ] [ playerid ] )//narandjasta
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 219;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 15 ] [ playerid ] )//tamnoplava
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 93;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 16 ] [ playerid ] )//zelenoplava
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 155;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 17 ] [ playerid ] )//tamno siva
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 63;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
if( playertextid == ASBojaVozila[ 18 ] [ playerid ] )//tamno crvena
{
new as = GetNearestSalon( playerid );
if( as != -1 )
{
AutoSalonBojaVozila[ playerid ] = 17;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
[/pawn]