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: prawojazdy
1. nie działą zapisywanie się prawojazdy i kasy w hudzie
Jak w tytule nie zapisuje sie kasa repputacja oraz prawo jazdy
:piwo: :piwo: :piwo:
2. Niedziałające prawojazdy
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...
3. PrawoJazdy
[lua]

local prawko = createMarker(-362.63,173.68,1008.38, "cylinder", 1.0, 255, 0, 0, 255)
setElementDimension(prawko, 1636)
setElementInterior(prawko, 3)

local punktyJazdy = {
{-1881.22,1075.64,44.88},
{-1879.94,1158.53,44.87},
{-1953.98,1170.94,44.87},
{-2066.12,1169.62,46.31},
{-2149.09,1170.31,55.16},
{-2271.45,1169.63,55.32},
{-2458.87,1197.90,34.64},
{-2551.22,1240.41,34.60},
{-2616.97,1189.02,34.60},
{-2744.18,1051.51,48.73},
{-2748.74,959.01,53.88},
{-2747.11,877.81,65.76},
{-2748.02,701.58,40.71},
{-2742.05,562.50,13.97},
{-2619.64,562.16,14.03},
{-2538.05,562.09,14.04},
{-2401.73,562.44,24.32},
{-2282.18,561.92,34.59},
{-2254.37,654.95,48.88},
{-2251.01,714.64,48.91},
{-2252.19,795.29,48.88},
{-2125.80,806.21,68.98},
{-2014.94,807.74,44.87},
{-1988.56,838.20,44.88},
{-1894.92,864.58,34.59},
{-1894.39,951.55,34.60},
{-1881.46,1047.95,44.88},
}

function showNextCP(plr)
local punkt = getElementData(plr, "egzaminP_postep")
local ile = punktyJazdy[punkt]

if not ile then
egzaminKoniec(plr, true)
return
end

local marker = createMarker(ile[1], ile[2], ile[3], "checkpoint", 5, 255, 0, 0, 200, plr)
setElementData(plr, "egzaminP_marker", marker)

if punktyJazdy[punkt+1] then
ile = punktyJazdy[punkt+1]
setMarkerTarget(marker, ile[1], ile[2], ile[3])
end
end

addEventHandler("onMarkerHit", resourceRoot,...
4. zabieranie prawojazdy
witam mam problem z zabieraniem prawojazdy

[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...
5. Prawojazdy praktyka
Witam potrzebuje obia?nienia funkcji SetPlayerRaceCheckpoint poniewa? chce zrobi? praktyke do prawa jazdy lecz nie wiem jak si? mam z tym bawi? :/
6. Prawojazdy
Witam ponownie, tworze ma?e zabezpieczenie do systemu pojazd?w ourgame lecz mam pewien problem..

function prawojazdy(theVehicleplrseatjacked)
    if 
seat == 0 then
    
if (getVehicleType(theVehicle) == "Automobile") and (getVehicleType(theVehicle) == "Quad"then
    
if plr:getData('player:lic:pjC') == or plr:getData('player:lic:pjB') == 0 then
    outputChatBox 
"Nie posiadasz prawa jazdy kategorii B oraz C lub zosta?o ono cofni?te!"source255255255true )
    
cancelEvent ()
end
end
end
end
addEventHandler 
"onVehicleStartEnter"getRootElement(), prawojazdy )

Nie ma ?adnych b??d?w ale nie maj?c prawka moge normalnie wsiada?.
(Posiadam prawko C, ale chcia?em zrobi? tak ze trzeba mie? oba prawka aby m?c wsiada?.)
7. PrawoJazdy
Pomocy z Skryptem nie dza?a ;'(

[lua]prawojazdykatb = { [401]=true, [402]=true, [410]=true, [411]=true, [412]=true, [415]=true, [419]=true, [422]=true, [423]=true, [424]=true,
[429]=true, [434]=true, [436]=true, [439]=true, [444]=true, [451]=true, [467]=true, [474]=true, [475]=true, [477]=true, [478]=true, [480]=true,
[489]=true, [491]=true, [494]=true, [495]=true, [496]=true, [500]=true, [502]=true, [503]=true, [504]=true, [505]=true, [506]=true, [508]=true,
[517]=true, [518]=true, [525]=true, [526]=true, [527]=true, [533]=true, [534]=true, [535]=true, [536]=true, [541]=true, [542]=true, [543]=true,
[545]=true, [549]=true, [552]=true, [554]=true, [555]=true, [558]=true, [559]=true, [562]=true, [565]=true, [568]=true, [574]=true, [575]=true,
[576]=true, [587]=true, [589]=true, [600]=true, [602]=true, [603]=true }
function prawoKatB ( thePlayer, seat, jacked )
if seat == 0 then
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
isObjectInACLGroup ( 'user.'..playerName, aclGetGroup ( "PJKB" ) )

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)

local playerName = getAccountName...
8. PrawoJazdy Pomoc
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.