addEventHandler ( "onClientMarkerHit", marker,
function(thePlayer)
local kasa = getPlayerMoney(thePlayer)
if kasa < 500 then
outputChatBox("Nie masz tylu pieni?dzy",thePlayer)
return
end
takePlayerMoney(500)
moveObject(object,1000,2000, -1371.53, 866.27, 46.88,+0.25,0,90,0)
setElementData(object,"zamknieta",false)
setElementData(object,"otwarta",true)
setTimer ( zamknij, 6000, 1 )
end
)
nwm dla czego ale nie dzia?aja mi outpChatBoxy ktore dodalem
local object=createObject(968, -1371.32,867.05,47.09, 0, 270, -42)
local marker=createMarker(-1371.32,867.05,47.09-1, "cylinder", 6, 0, 0, 0, 0)
setElementData(object,"zamknieta",true)
function zamknij()
if getElementData(object,"otwarta") then
moveObject(object,968, -1371.32,867.05,47.09)
setElementData(object,"zamknieta",true)
setElementData(object,"otwarta",false)
outputChatBox("[Autostrada Premium] Przejazd Zostaje zamkni?ty",thePlayer)
end
end
addEventHandler ( "onClientMarkerHit", marker,
function(thePlayer)
local kasa = getPlayerMoney(thePlayer)
if 500 > kasa then
outputChatBox("[Autostrada Premium] Nie masz tylu pieni?dzy",thePlayer)
return
end
takePlayerMoney(5000)
moveObject(object,968, -1371.32,867.05,45.09)
setElementData(object,"zamknieta",false)
setElementData(object,"otwarta",true)
setTimer ( zamknij, 3000, 1 )
outputChatBox("[Autostrada Premium] Zakupi?e? bilet na P?atnej Autostradzie",thePlayer)
end
)
Podpis
Aktualny projekt: LSgame
Na scenie MTA od: 2015 roku.
Discord: Chwilowoo, brak
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach