stworzAutoKomenda = function(gracz) local x,y,z = getElementPosition(gracz) local wlasciciel = "nikt" local id = 475 local r,g,b = 255,255,0 local felgi = 1074 local cena = 500000 local newid = autoid+1 local query = dbQuery(handler, "INSERT INTO auta_pojazdy (nr,wlasciciel,id, x,y,z,r,g,b,felgi,cena) VALUES ('"..newid.."','"..wlasciciel.."','"..id.."','"..x.."','"..y.."','"..z.."','"..r.."','"..g.."','"..b.."','"..felgi.."','"..cena.."')") stworzAuto(newid,wlasciciel,id,x,y,z,r,g,b,felgi,cena) end addCommandHandler("stworzauto",stworzAutoKomenda)