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: mk1
1. mk1 pys
Chce zrobic mk1 pod pysa gdzie dla kazdego pojazdu mk1 dodaje +5 engineAcceleration. lecz nie dzia?a

Kod:

addEvent("mk1", true)
addEventHandler("mk1", root, function()
local veh = getPedOccupiedVehicle(source)
local id = getElementData(veh, "vehicle:id")
setVehicleHandling(veh, "engineAcceleration", +5)
exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET mk1=1 WHERE id=?", id)
end)
2. Sprawdzanie mk1
Wie kto? mo?e co robie ?le? Chc? zrobi?, aby my pokazywa?o przyk?adowo, Deluxo: TAK, czyli ?e posiada, a jak nie posiada to Deluxo: NIE

Daje piwka za pomoc!

if getElementData(veh,"deluxo") == 1 then
deluxo 
"TAK" 
else
deluxo "NIE"
end
3. Jak zrobic w bazie mk1 mk2
Witam posiadam paczke pys 3.0 lecz nie dziala do niego mk1 mk2 czy moglby ktos mi pomoc ?Jest taki skrypt jak montowaniemk ale jak zamontuje i zresetuje auto to nie mam tego mk1 i mk2
4. Mk1, mk2, mk3
Witam,

Posiadam paczke z PYSA,
Oraz mam wgrany skrypt r?wnie? z tej paczki, montowaniemk
Wszystko dzia?a, montowanie i ceny si? zgadzaj?, lecz poprawiaj? si? osi?gi auta u np. turismo tylko o 10km/h, jak to powi?kszy??

Kod:

[lua] --[[
@author Mikael <[email protected]>
Skrypt wykonany dla New World 2016
]]

mk1 = 500000
mk2 = 700000
rh = 900000


local licz = {}
local t=createElement('text')
setElementData(t,'name','Automatyczny monta? tuningu mechanicznego')
setElementPosition(t,-2052.77, 159.02, 28.84+0.5)

--createBlip(-1770.96,1205.90,25.13, 53) -- fancy workshop blip

addEvent("mk1", true)
addEventHandler("mk1", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(mk1)) then
local id = getElementData(pojazd, "vehicle:id")
exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET mk1=1 WHERE id=?", id)
outputChatBox("* Pomy?lnie zamontowano MK1.", source,true)
outputChatBox("* Oddaj auto do przecho aby zobaczy? efekty!", source,true)
takePlayerMoney( source, mk1 )
else
outputChatBox("* Nie sta? Ci? na to.", source,true)
end
end
)


addEvent("mk2", true)
addEventHandler("mk2", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(mk2)) then
local id = ...
5. ogrpg-tune MK1 MK2 4x4
Witam mam problem bo mam tego tune z ogrpg i nie zapisuje mi jak odda auto do przecho tego MK1 MK2 4x4 bo trzeba co? gdzie? dopisa? ?eby zapisywa?o chyba trzeba co? dopisa? do ogrpg-vehicles albo do tego skrypty tune ?eby dzia?a?o i dopisywa?o w bazie danych wszystkie tabele mam do tego
6. Mk1
Witam, mam tutaj kod na mk1 i mam debugscript 3

[lua]
--TUNE STANOWISKO 1
function tune (thePlayer, seat)
if isElementWithinMarker(thePlayer, mk) then
local hajs = getPlayerMoney(thePlayer)
if (hajs < 30000 ) then
outputChatBox("Nie masz wystarczajaco pieniedzy",thePlayer, 0, 170, 255, true)
else
if isPedInVehicle ( thePlayer ) then
local car = getPedOccupiedVehicle ( thePlayer )
local acceleration = getVehicleHandlingProperty(car,"engineAcceleration")
setVehicleHandling(car,"engineAcceleration",tonumber(acceleration)+10)
takePlayerMoney(thePlayer, 30000)
outputChatBox("Dodales do auta mk1 zaplaciles 30000$", thePlayer, 0, 170, 255, true)
else
outputChatBox ("nie jestes w aucie!", thePlayer, 0, 170, 255, true)
end
end
end
end
addCommandHandler("dodaj.mk1", tune)

function wjechal (thePlayer)
outputChatBox ("Wpisz /dodaj.mk1 ( koszt 30000$ )", thePlayer, 0, 170, 255, true)
end
addEventHandler("onMarkerHit",mk,wjechal)

--TUNE STANOWISKO 2
function tune1 (thePlayer, seat)
if isElementWithinMarker(thePlayer, mk1) then
local hajs = getPlayerMoney(thePlayer)
if (hajs < 35000 ) then
outputChatBox("Nie masz wystarczajaco pieniedzy",thePlayer, 0, 170, 255, true)
else
if isPedInVehicle ( thePlayer ) then
local car = getPedOccupiedVehicle ( thePlayer )
local driveType = getVehicleHandlingProperty(car,"driveType")
setVehicleHandling(car...
7. Mk1
Witma jakiej funkcji u?y? do mk1 ?? ??by da?o speed :d