Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: poprawnych
1. [GF] Naprawa poprawnych częsći pojazdu.
[center][b]Posiadam taki kod:[/b]
[code] case 1://napraw panele
{
GetVehicleDamageStatus(veh, panels, doors, lights, tires);
if(panels==0)
{
GuiInfo(playerid,"Panele tego pojazdu nie wymagaj? naprawy!");
return 1;
}
if(dKasa[playerid]<100)
{
GuiInfo(playerid,"Nie sta? Ciebie na naprawy! (100$)");
return 1;
}
dDodajKase(playerid,-100);
UpdateVehicleDamageStatus(veh,0, doors, lights,tires);
SamochodInfo[veh][sUszkodzenia]=0;
GuiInfo(playerid,""MAPA"Naprawi?e? panele tego pojazdu za 100$");
return 1;
}
case 2://drzwi
{
GetVehicleDamageStatus(veh, panels, doors, lights, tires);
if(doors==0)
{
GuiInfo(playerid,"Drzwi tego pojazdu nie wymagaj? naprawy!");
return 1;
}
if(dKasa[playerid]<100)
{
GuiInfo(playerid,"Nie sta? Ciebie na naprawy! 100$)");
return 1;
}
dDodajKase(playerid,-100);
UpdateVehicleDamageStatus(veh,panels,0, lights,tires);
SamochodInfo[veh][sUszkodzenia2]=0;
GuiInfo(playerid,""MAPA"Naprawi?e? drzwi tego pojazdu za 100$");
return 1;
}
case 3://lampy
{
GetVehicleDamageStatus(veh, panels, doors, lights, tires);
if(lights==0)
{
GuiInfo(playerid,"Lampy tego pojazdu nie wymagaj? naprawy!");
re...