Witam,mam taki problem ?e przenios?em marker do interioru i go w tym interiorze wogule nie wida?.
KOD:
[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
local marker=createMarker(-2022.36108, -116.64605, 1035.17188, "cylinder", 1, 50, 90, 200, 75)
setElementInterior(marker, 0)
createBlip( 415.67,2531.83,22.51, 5,2,0,0,0,0,0,275)
local marker2=createMarker(415.51, 2532.14, 19.15-0.90, "cylinder", 1, 50, 90, 200, 75)
setElementInterior(marker2, 0)
local t=createElement("text")
setElementInterior(t, 0)
setElementPosition(t, -2022.36108, -116.64605, 1035.17188)
setElementData(t,"name","Zdawanie na prawo jazdy")
local t2=createElement("text")
setElementInterior(t2, 0)
setElementPosition(t2, 415.51, 2532.14, 19.15)
setElementData(t2,"name","Zdawanie licencji lotniczej")
local wm={}
wm.window=guiCreateWindow(0.21, 0.20, 0.57, 0.54, "Zdawanie prawa jazdy", true)
guiWindowSetSizable(wm.window, false)
guiWindowSetMovable(wm.window, false)
guiSetVisible(wm.window, false)
wm.label=guiCreateLabel(0.02, 0.06, 0.96, 0.05, "Z poni?szej listy wybierz kategori? prawa jazdy do kt?rej chcesz przyst?pi? p??niej kliknij Przyst?p", true, wm.window)
guiLabelSetHorizontalAlign(wm.label, "c...
[lua]function zabieranie(player,cmd,account,kate)
local account = getPlayerAccount(source)
if getPlayerTeam(player) == getTeamFromName("Policja") then
setAccountData(account, "kat"..kate, false)
else
outputChatBox("Nie jeste? z polcji",player,255,255,255,true)
end
end
addCommandHandler("zab.prawo",zabieranie)[/lua]
ale np to dzia?a
[lua]function sprawdzPrawoJazdy(player, cmd, gracz)
if getPlayerTeam(player) == getTeamFromName("Policja") then
if gracz then
local gracz = getPlayerFromName(gracz)
if gracz then
local account = getPlayerAccount(gracz)
if account then
outputChatBox("Wybrany gracz: "..getPlayerName(gracz)..".", player, 240, 240, 240, true)
local a = getAccountData(account, "katA")
if a == true then
ka = "Tak"
else
ka = "Nie"
end
local b = getAccountData(account, "katB")
if b == true then
kb = "Tak"
else
kb = "Nie"
end
local c = getAccountData(account, "katC")
if c == true then
kc = "Tak"
else
kc = "Nie"
end
outputChatBox("Kategoria A: "..ka..".", player, 230, 230, 230, true)
outputChatBox("Kategoria B: "..kb..".", player, 230, 230, 230, true)
outputChatBox("Kategoria C: &qu...
if ( prawojazdykatb[getElementModel(source)] ) and isObjectInACLGroup ( 'user.'..playerName, aclGetGroup ( "PJKB" ) ) then
else
cancelEvent()
outputChatBox ("Panie! Potrzebne ci Prawko Kart.B", thePlayer, [color=#00ffe0]0,0,0[/color] )
end
end
end
addEventHandler ( 'onVehicleStartEnter', root, prawoKatB )
function dajPrawkoB(thePlayer, commandName, accountName)
Otusz pisz? sobie skrypt na Prawo Jazdy i nie wiem jaka funkcja odpowiada za to ?e jak uderz? w co? to pojazd znika i ?e si? z pojazdu nie da wyj?? do ko?ca egzaminu.