Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-12-29, 09:41


amama12345







Wiek: 25
Na forum: 4422 dni
Posty: 50
Nick w MP: AmaMa

Piwa: 3

Respekt: 50

Ostrzeżeń: 100%
Cze??, mam problem. Nie wiem jak odzieli? prawo jazdy Kat.B i Kat.C.
Jak zdaje egzamin na kat.B to zdaje mi te? r?wnie? na Kat.C jak to odzieli????
Prosz? o pomoc!

kod egzaminu:
Server
Cytat:

isCar = {[602]=true,[496]=true,[401]=true,[518]=true,[527]=true,[589]=true,[419]=true,[533]=true,
[526]=true,[474]=true,[545]=true,[517]=true,[410]=true,[600]=true,[436]=true,[580]=true,
[439]=true,[549]=true,[491]=true,[445]=true,[604]=true,[507]=true,[585]=true,[587]=true,
[466]=true,[492]=true,[546]=true,[551]=true,[516]=true,[467]=true,[426]=true,[547]=true,
[405]=true,[409]=true,[550]=true,[566]=true,[540]=true,[421]=true,[529]=true}
--[[function prawojazdy ( source, seat, jacked )
if (not isCar[getElementModel(source)]) then return end
local playeraccount = getPlayerAccount ( source )
if seat == 0 then
if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Prawko" ) ) then
outputChatBox ( "Nie posiadasz prawa jazdy kategorii B lub zosta?o ono cofni?te!", source, 255, 255, 255, true )
cancelEvent ()
end
end
end--]]
local egzaminowany=nil

addEvent('guiokno',true)


local rozpocznij = createMarker(361.83,173.62,1007.38,"cylinder",1.5,0,0,100,100)
setElementInterior(rozpocznij,3)
setElementDimension(rozpocznij,1)


addEventHandler('onMarkerHit',root,function(player)
if isElementWithinMarker(player,rozpocznij) then
triggerClientEvent(player,"pokazgui",root)
showCursor(player,true)
end
end)
--[[
function rozpocznijkurs (source)
local mesa = createVehicle(500,1668.89,-1693.82,20.58,358.8,0.1,176.1)
setElementData(mesa,"pojazd_opis","Egzamin prawa jazdy\nLos Santos")
setElementData(mesa,"pojazd_paliwo",100)
setVehicleHandling(mesa,"maxVelocity",80)
warpPlayerIntoVehicle(source,mesa)
setElementInterior(source,0)
setElementDimension(source,0)
triggerClientEvent(source,"showmarker",root)
--toggleControl(source, "enter_exit", false)
end
addEventHandler('guiokno',root,rozpocznijkurs)--]]

function rozpocznijkurs(source)
if isElementWithinMarker ( source, rozpocznij )
then
local konto = getPlayerAccount ( source )

if not getAccountData(konto,"prawojazdy" ) then
outputChatBox("Zaczynasz kurs prawa jazdy. Wiedz, ?e nie mo?esz w nic waln??, powodzenia.", source)
mesa = createVehicle(500,1668.89,-1693.82,20.58,358.8,0.1,176.1)
setVehicleColor ( mesa, 255, 255, 255 )
setElementData(mesa,"pojazd_opis","Egzamin prawa jazdy\nLos Santos")
setElementData(mesa,"pojazd_paliwo",100)
setVehicleHandling(mesa,"maxVelocity",80)
warpPlayerIntoVehicle(source,mesa)
setElementInterior(source,0)
setElementDimension(source,0)
toggleControl(source, "enter_exit", false)
triggerClientEvent ("zdajemyprawkotrolololo", source )
else
outputChatBox("Masz ju? prawo jazdy.", source)
end
end
end
addEventHandler('guiokno',root,rozpocznijkurs)

function zdal ()
local nick = getPlayerName ( source)
outputChatBox("Kurs prawa jazdy zako?czony pomy?lnie! Gratulacje!", source )
konto = getPlayerAccount ( source )
setAccountData ( konto, "prawojazdy", true )
end

addEvent( "prawko.zdal", true )
addEventHandler( "prawko.zdal", root, zdal )

function oblal ()
local nick = getPlayerName ( source)

outputChatBox("Egzamin zako?czony pora?k?! Pojazd uszkodzony.", source )
end

addEvent( "prawko.oblal", true )
addEventHandler( "prawko.oblal", root, oblal )

function zabierzauto ( )
local auto = getPedOccupiedVehicle( source )
destroyElement ( auto )
toggleControl(source, "enter_exit", true)
end

addEvent( "prawkoautosadasdas", true )
addEventHandler( "prawkoautosadasdas", root, zabierzauto )

function sadasdsa ( source )
konto = getPlayerAccount ( source )
setAccountData ( konto, "prawojazdy", false)
end
addCommandHandler("zbprawko", sadasdsa )


client:
Cytat:

local screenW, screenH = guiGetScreenSize()
addEvent("pokazgui", true)
addEvent("showmarker", true)



addEventHandler("pokazgui",root,function()
okno = guiCreateWindow(0.26, 0.22, 0.49, 0.60, "Prawo Jazdy", true)
guiWindowSetSizable(okno, false)

opis = guiCreateLabel(0.01, 0.06, 0.98, 0.46, "Witaj, napewno chciales/as zdac prawo jazdy\nAby moc jezdzic autami i pracowac w pracach\ndorywczych typu spedytor,betoniarka\nKurs prawa jazdy trwa okolo 5minut.Nie zasnij\npodczas jazdy. Gdy w cos uderzysz oblewasz kurs i musisz zaczac od nowa. Powodzenia !", true, okno)
guiSetFont(opis, "default-bold-small")
guiLabelSetHorizontalAlign(opis, "center", false)
kurs = guiCreateButton(0.01, 0.86, 0.22, 0.11, "ROZPOCZNIJ KURS", true, okno)
guiSetProperty(kurs, "NormalTextColour", "FFAAAAAA")
zamknij = guiCreateButton(0.76, 0.88, 0.22, 0.10, "ZAMKNIJ OKNO", true, okno)
guiSetProperty(zamknij, "NormalTextColour", "FFAAAAAA")
end
)
function zamknijgui ()
if source ~= zamknij then return end
guiSetVisible(okno,false)
showCursor (false,true)
end
addEventHandler("onClientGUIClick",getRootElement (),zamknijgui)

function kursrozpocznij ()
if source ~= kurs then return end
guiSetVisible(okno,false)
showCursor (false,true)
--triggerServerEvent("guiokno",root)
triggerServerEvent ("guiokno", getRootElement (), localPlayer)
end
addEventHandler("onClientGUIClick",getRootElement (),kursrozpocznij)

--[[local punkty = {
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},

}--]]

function markerygo ( source )
marker1 = createMarker (1663.16015625, -1702.6949462891, 20.543771743774, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker1, 1642.1597900391, -1714.4278564453, 20.398849487305)
end
addEvent( "zdajemyprawkotrolololo", true )
addEventHandler( "zdajemyprawkotrolololo",localPlayer, markerygo )


function MH1 (hitPlayer, matchingDimension)
if hitPlayer == localPlayer then
if source == marker1 then
destroyElement ( marker1 )
marker2 = createMarker ( 1642.1597900391, -1714.4278564453, 20.398849487305, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker2,1638.4127197266, -1698.9241943359, 16.588209152222 )
end
if source == marker2 then
destroyElement ( marker2 )
marker3 = createMarker ( 1638.4127197266, -1698.9241943359, 16.588209152222, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker3, 1644.9627685547, -1715.1081542969, 15.65714263916)
end
if source == marker3 then
destroyElement ( marker3 )
marker4 = createMarker ( 1644.9627685547, -1715.1081542969, 15.65714263916, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker4, 1627.9521484375, -1683.3000488281, 13.440259933472)
end
if source == marker4 then
destroyElement ( marker4 )
marker5 = createMarker ( 1627.9521484375, -1683.3000488281, 13.440259933472, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker5,1621.0676269531, -1618.3825683594, 13.60195350647 )
end
if source == marker5 then
destroyElement ( marker5 )
marker6 = createMarker ( 1621.0676269531, -1618.3825683594, 13.60195350647, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker6,1593.0228271484, -1590.6280517578, 13.454643249512 )
end
if source == marker6 then
destroyElement ( marker6 )
marker7 = createMarker (1593.0228271484, -1590.6280517578, 13.454643249512, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker7,1492.7294921875, -1589.9814453125, 13.436862945557 )
end
if source == marker7 then
destroyElement ( marker7 )
marker8 = createMarker (1492.7294921875, -1589.9814453125, 13.436862945557 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker8, 1416.2397460938, -1589.7956542969, 13.408509254456)
end
if source == marker8 then
destroyElement ( marker8 )
marker9 = createMarker ( 1416.2397460938, -1589.7956542969, 13.408509254456, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker9,1328.802734375, -1571.5842285156, 13.403031349182 )
end
if source == marker9 then
destroyElement ( marker9 )
marker10 = createMarker (1328.802734375, -1571.5842285156, 13.403031349182 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker10,1318.8468017578, -1537.7086181641, 13.415898323059 )
end
if source == marker10 then
destroyElement ( marker10 )
marker11 = createMarker (1318.8468017578, -1537.7086181641, 13.415898323059, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker11, 1342.9923095703, -1494.3131103516, 13.459111213684)
end
if source == marker11 then
destroyElement ( marker11 )
marker12 = createMarker ( 1342.9923095703, -1494.3131103516, 13.459111213684, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker12,1359.0194091797, -1398.6922607422, 13.386858940125)
end
if source == marker12 then
destroyElement ( marker12 )
marker13 = createMarker ( 1359.0194091797, -1398.6922607422, 13.386858940125, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker13,1359.5017089844, -1307.8651123047, 13.373591423035 )
end
if source == marker13 then
destroyElement ( marker13 )
marker14 = createMarker (1359.5017089844, -1307.8651123047, 13.373591423035, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker14, 1359.3708496094, -1200.8572998047, 18.677467346191)
end
if source == marker14 then
destroyElement ( marker14 )
marker15 = createMarker ( 1359.3708496094, -1200.8572998047, 18.677467346191, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker15,1359.9437255859, -1134.2132568359, 23.712301254272)
end
if source == marker15 then
destroyElement ( marker15 )
marker16 = createMarker (1359.9437255859, -1134.2132568359, 23.712301254272 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker16, 1368.7977294922, -1073.2817382813, 25.806930541992)
end
if source == marker16 then
destroyElement ( marker16 )
marker17 = createMarker (1368.7977294922, -1073.2817382813, 25.806930541992, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker17,1377.1307373047, -972.66534423828, 33.065185546875)
end
if source == marker17 then
destroyElement ( marker17 )
marker18 = createMarker ( 1377.1307373047, -972.66534423828, 33.065185546875, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker18,1345.3680419922, -929.13214111328, 35.045318603516 )
end
if source == marker18 then
destroyElement ( marker18 )
marker19 = createMarker ( 1345.3680419922, -929.13214111328, 35.045318603516, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker19,1252.6451416016, -925.27642822266, 42.681949615479 )
end
if source == marker19 then
destroyElement ( marker19 )
marker20 = createMarker (1252.6451416016, -925.27642822266, 42.681949615479, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker20,1126.70703125, -942.71081542969, 42.753238677979 )
end
if source == marker20 then
destroyElement ( marker20 )
marker21 = createMarker (1126.70703125, -942.71081542969, 42.753238677979 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker21, 1019.1503295898, -955.12493896484, 42.284885406494)
end
if source == marker21 then
destroyElement ( marker21 )
marker22 = createMarker (1019.1503295898, -955.12493896484, 42.284885406494 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker22,957.244140625, -946.38104248047, 40.251583099365 )
end
if source == marker22 then
destroyElement ( marker22 )
marker23 = createMarker (957.244140625, -946.38104248047, 40.251583099365 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker23,857.75994873047, -950.10809326172, 45.824966430664 )
end
if source == marker23 then
destroyElement ( marker23 )
marker24 = createMarker ( 857.75994873047, -950.10809326172, 45.824966430664, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker24,857.26654052734, -925.25390625, 58.643321990967 )
end
if source == marker24 then
destroyElement ( marker24 )
marker25 = createMarker (857.26654052734, -925.25390625, 58.643321990967 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker25,848.83184814453, -880.978515625, 66.350151062012 )
end
if source == marker25 then
destroyElement ( marker25 )
marker26 = createMarker (848.83184814453, -880.978515625, 66.350151062012 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker26,776.35845947266, -908.21643066406, 56.570423126221 )
end
if source == marker26 then
destroyElement ( marker26 )
marker27 = createMarker (776.35845947266, -908.21643066406, 56.570423126221 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker27,721.74157714844, -977.39923095703, 53.145294189453 )
end
if source == marker27 then
destroyElement ( marker27 )
marker28 = createMarker (721.74157714844, -977.39923095703, 53.145294189453 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker28, 664.87744140625, -1068.3248291016, 48.837955474854)
end
if source == marker28 then
destroyElement ( marker28 )
marker29 = createMarker (664.87744140625, -1068.3248291016, 48.837955474854 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker29,573.74206542969, -1134.9215087891, 50.206745147705 )
end
if source == marker29 then
destroyElement ( marker29 )
marker30 = createMarker (573.74206542969, -1134.9215087891, 50.206745147705 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker30, 425.00033569336, -1179.7081298828, 72.254905700684)
end
if source == marker30 then
destroyElement ( marker30 )
marker31 = createMarker (425.00033569336, -1179.7081298828, 72.254905700684, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker31,345.3752746582, -1176.2572021484, 76.845680236816 )
end
if source == marker31 then
destroyElement ( marker31 )
marker32 = createMarker (345.3752746582, -1176.2572021484, 76.845680236816 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker32, 261.15295410156, -1240.8018798828, 73.000091552734)
end
if source == marker32 then
destroyElement ( marker32 )
marker33 = createMarker (261.15295410156, -1240.8018798828, 73.000091552734 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker33,235.52143859863, -1319.4639892578, 54.114295959473 )
end
if source == marker33 then
destroyElement ( marker33 )
marker34 = createMarker ( 235.52143859863, -1319.4639892578, 54.114295959473, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker34,216.4146270752, -1355.4283447266, 50.832809448242 )
end
if source == marker34 then
destroyElement ( marker34 )
marker35 = createMarker ( 216.4146270752, -1355.4283447266, 50.832809448242, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker35,155.4524230957, -1419.9689941406, 41.484992980957 )
end
if source == marker35 then
destroyElement ( marker35 )
marker36 = createMarker ( 155.4524230957, -1419.9689941406, 41.484992980957, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker36,97.265258789063, -1542.7120361328, 6.1489005088806)
end
if source == marker36 then
destroyElement ( marker36 )
marker37 = createMarker (97.265258789063, -1542.7120361328, 6.1489005088806 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker37,184.45991516113, -1624.2153320313, 14.489157676697)
end
if source == marker37 then
destroyElement ( marker37 )
marker38 = createMarker ( 184.45991516113, -1624.2153320313, 14.489157676697, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker38,315.07354736328, -1713.9602050781, 6.6833763122559)
end
if source == marker38 then
destroyElement ( marker38 )
marker39 = createMarker ( 315.07354736328, -1713.9602050781, 6.6833763122559, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker39,391.70977783203, -1719.0522460938, 8.0422601699829)
end
if source == marker39 then
destroyElement ( marker39 )
marker40 = createMarker (391.70977783203, -1719.0522460938, 8.0422601699829 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker40,510.30587768555, -1730.7154541016, 11.775031089783)
end
if source == marker40 then
destroyElement ( marker40 )
marker41 = createMarker ( 510.30587768555, -1730.7154541016, 11.775031089783, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker41,602.91790771484, -1743.7294921875, 13.356950759888)
end
if source == marker41 then
destroyElement ( marker41 )
marker42 = createMarker ( 602.91790771484, -1743.7294921875, 13.356950759888, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker42,694.81488037109, -1765.4295654297, 13.4994764328)
end
if source == marker42 then
destroyElement ( marker42 )
marker43 = createMarker (694.81488037109, -1765.4295654297, 13.4994764328 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker43,845.00225830078, -1785.9586181641, 13.824610710144)
end
if source == marker43 then
destroyElement ( marker43 )
marker44 = createMarker (845.00225830078, -1785.9586181641, 13.824610710144 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker44,970.07434082031, -1800.3282470703, 14.13806438446)
end
if source == marker44 then
destroyElement ( marker44 )
marker45 = createMarker ( 970.07434082031, -1800.3282470703, 14.13806438446, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker45,1043.7121582031, -1847.2397460938, 13.421897888184)
end
if source == marker45 then
destroyElement ( marker45 )
marker46 = createMarker ( 1043.7121582031, -1847.2397460938, 13.421897888184, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker46,1027.5146484375, -2099.3625488281, 12.990287780762)
end
if source == marker46 then
destroyElement ( marker46 )
marker47 = createMarker (1027.5146484375, -2099.3625488281, 12.990287780762 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker47,1040.8381347656, -2288.7189941406, 13.001424789429)
end
if source == marker47 then
destroyElement ( marker47 )
marker48 = createMarker ( 1040.8381347656, -2288.7189941406, 13.001424789429, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker48,1133.083984375, -2402.6284179688, 11.203800201416)
end
if source == marker48 then
destroyElement ( marker48 )
marker49 = createMarker ( 1133.083984375, -2402.6284179688, 11.203800201416, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker49,1318.6790771484, -2490.9462890625, 10.454770088196)
end
if source == marker49 then
destroyElement ( marker49 )
marker50 = createMarker ( 1318.6790771484, -2490.9462890625, 10.454770088196, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker50,1330.1434326172, -2570.4233398438, 13.428275108337)
end
if source == marker50 then
destroyElement ( marker50 )
marker51 = createMarker (1330.1434326172, -2570.4233398438, 13.428275108337 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker51,1483.3269042969, -2686.7836914063, 11.25168132782)
end
if source == marker51 then
destroyElement ( marker51 )
marker52 = createMarker ( 1483.3269042969, -2686.7836914063, 11.25168132782, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker52,1630.7430419922, -2686.9572753906, 5.9232769012451)
end
if source == marker52 then
destroyElement ( marker52 )
marker53 = createMarker (1630.7430419922, -2686.9572753906, 5.9232769012451 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker53,1841.1774902344, -2687.3759765625, 5.9201984405518)
end
if source == marker53 then
destroyElement ( marker53 )
marker54 = createMarker (1841.1774902344, -2687.3759765625, 5.9201984405518 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker54,2110.0825195313, -2676.509765625, 13.454137802124)
end
if source == marker54 then
destroyElement ( marker54 )
marker55 = createMarker (2110.0825195313, -2676.509765625, 13.454137802124 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker55,2177.9025878906, -2460.779296875, 13.430536270142)
end
if source == marker55 then
destroyElement ( marker55 )
marker56 = createMarker (2177.9025878906, -2460.779296875, 13.430536270142 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker56,2268.69921875, -2309.5310058594, 13.430212020874)
end
if source == marker56 then
destroyElement ( marker56 )
marker57 = createMarker ( 2268.69921875, -2309.5310058594, 13.430212020874, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker57,2514.6081542969, -2173.2336425781, 13.439977645874)
end
if source == marker57 then
destroyElement ( marker57 )
marker58 = createMarker ( 2514.6081542969, -2173.2336425781, 13.439977645874, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker58,2696.1845703125, -2172.1293945313, 10.988227844238)
end
if source == marker58 then
destroyElement ( marker58 )
marker59 = createMarker (2696.1845703125, -2172.1293945313, 10.988227844238 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker59,2716.595703125, -2119.3977050781, 10.903687477112)
end
if source == marker59 then
destroyElement ( marker59 )
marker60 = createMarker (2716.595703125, -2119.3977050781, 10.903687477112 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker60,2716.4738769531, -1946.6201171875, 13.39043712616)
end
if source == marker60 then
destroyElement ( marker60 )
marker61 = createMarker (2716.4738769531, -1946.6201171875, 13.39043712616 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker61,2616.6491699219, -1929.4244384766, 13.423143386841)
end
if source == marker61 then
destroyElement ( marker61 )
marker62 = createMarker ( 2616.6491699219, -1929.4244384766, 13.423143386841, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker62,2475.1477050781, -1929.8978271484, 13.417346000671)
end
if source == marker62 then
destroyElement ( marker62 )
marker63 = createMarker ( 2475.1477050781, -1929.8978271484, 13.417346000671, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker63,2415.439453125, -1855.6185302734, 13.439561843872)
end
if source == marker63 then
destroyElement ( marker63 )
marker64 = createMarker ( 2415.439453125, -1855.6185302734, 13.439561843872, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker64,2407.1203613281, -1731.1873779297, 13.503132820129)
end
if source == marker64 then
destroyElement ( marker64 )
marker65 = createMarker (2407.1203613281, -1731.1873779297, 13.503132820129 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker65,2228.9274902344, -1730.0640869141, 13.435308456421)
end
if source == marker65 then
destroyElement ( marker65 )
marker66 = createMarker (2228.9274902344, -1730.0640869141, 13.435308456421 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker66,2184.0874023438, -1738.4434814453, 13.447063446045)
end
if source == marker66 then
destroyElement ( marker66 )
marker67 = createMarker (2184.0874023438, -1738.4434814453, 13.447063446045 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker67,2054.4228515625, -1750.0532226563, 13.44679069519)
end
if source == marker67 then
destroyElement ( marker67 )
marker68 = createMarker (2054.4228515625, -1750.0532226563, 13.44679069519 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker68,1866.5146484375, -1750.0036621094, 13.438414573669)
end
if source == marker68 then
destroyElement ( marker68 )
marker69 = createMarker (1866.5146484375, -1750.0036621094, 13.438414573669 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker69,1764.7543945313, -1730.8325195313, 13.44043636322)
end
if source == marker69 then
destroyElement ( marker69 )
marker70 = createMarker (1764.7543945313, -1730.8325195313, 13.44043636322 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker70,1692.3199462891, -1702.4547119141, 13.439455032349)
end
if source == marker70 then
destroyElement ( marker70 )
marker71 = createMarker (1692.3199462891, -1702.4547119141, 13.439455032349 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker71,1691.6080322266, -1607.7448730469, 13.450239181519)
end
if source == marker71 then
destroyElement ( marker71 )
marker72 = createMarker ( 1691.6080322266, -1607.7448730469, 13.450239181519, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker72,1628.9261474609, -1590.1247558594, 13.583369255066)
end
if source == marker72 then
destroyElement ( marker72 )
marker73 = createMarker ( 1628.9261474609, -1590.1247558594, 13.583369255066, "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker73,1616.1010742188, -1626.8717041016, 13.607520103455)
end
if source == marker73 then
destroyElement ( marker73 )
marker74 = createMarker (1616.1010742188, -1626.8717041016, 13.607520103455 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker74,1627.4686279297, -1690.6727294922, 13.430468559265)
end
if source == marker74 then
destroyElement ( marker74 )
marker75 = createMarker (1627.4686279297, -1690.6727294922, 13.430468559265 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker75,1646.3923339844, -1713.3226318359, 15.656147956848)
end
if source == marker75 then
destroyElement ( marker75 )
marker76 = createMarker (1646.3923339844, -1713.3226318359, 15.656147956848 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker76,1646.2595214844, -1713.6237792969, 20.542749404907)
end
if source == marker76 then
destroyElement ( marker76 )
marker77 = createMarker (1646.2595214844, -1713.6237792969, 20.542749404907 , "checkpoint", 3.0, 255, 0, 0, 100)
setMarkerTarget(marker77,1646.2595214844, -1713.6237792969, 20.542749404907)
end
if source == marker77 then
destroyElement ( marker77 )
local auto = getPedOccupiedVehicle ( hitPlayer)
local hpauta = getElementHealth ( auto )
localPlayer = getLocalPlayer()
if hpauta > 999 then
triggerServerEvent ( "prawko.zdal", localPlayer )
triggerServerEvent ( "prawkoautosadasdas", localPlayer )
else
localPlayer = getLocalPlayer()
triggerServerEvent ( "prawko.oblal", localPlayer )
triggerServerEvent ( "prawkoautosadasdas", localPlayer )
end
end
end
end
addEventHandler ( "onClientMarkerHit", getRootElement(), MH1 )


kod na Kat:B
Cytat:

local pojazdyB ={[602]=true,[496]=true,[401]=true,[518]=true,[527]=true,[589]=true,[419]=true,[533]=true,
[526]=true,[474]=true,[545]=true,[517]=true,[410]=true,[600]=true,[436]=true,[580]=true,
[439]=true,[549]=true,[491]=true,[445]=true,[604]=true,[507]=true,[585]=true,[587]=true,
[466]=true,[492]=true,[546]=true,[551]=true,[516]=true,[467]=true,[426]=true,[547]=true,
[405]=true,[409]=true,[550]=true,[566]=true,[540]=true,[421]=true,[529]=true}

function dajprawko ( policjant, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( policjant) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local nickgracza = getPlayerName ( gracz1 )
local nickpolicjanta = getPlayerName ( policjant )
local konto = getPlayerAccount ( gracz1 )
if not getAccountData(konto, "prawojazdy") then
outputChatBox("Da?e? prawo jazdy graczowi "..nickgracza.."", policjant)
outputChatBox("Otrzyma?e? prawo jazdy od policjanta "..nickpolicjanta.."", gracz1)
setAccountData(konto, "prawojazdy", true)
else
outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy", policjant)
end
else
outputChatBox("Nie jeste? policjantem!", policjant)
end
end
addCommandHandler("daj.prawojazdy", dajprawko )


function sprawdzprawko ( policjant, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( policjant) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local konto = getPlayerAccount ( gracz1 )
local nickgracza = getPlayerName ( gracz1 )
if not getAccountData(konto, "prawojazdy") then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy", policjant)
else

outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy", policjant)
end
else
outputChatBox("Nie jeste? policjantem!", policjant)
end
end

addCommandHandler("sprawdz.prawojazdy", sprawdzprawko )


function zabierzprawko ( policjant, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( policjant) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local konto = getPlayerAccount ( gracz1 )
local nickgracza = getPlayerName ( gracz1 )
local nickpolicjanta = getPlayerName ( policjant )
if not getAccountData(konto, "prawojazdy") then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy", policjant)
else
setAccountData(konto, "prawojazdy", false)

outputChatBox("Zabra?e? prawo jazdy graczowi "..nickgracza.."", policjant)
outputChatBox("Policjant "..nickpolicjanta.." zabra? Ci prawo jazdy", gracz1)
end
else
outputChatBox("Nie jeste? policjantem!", policjant)
end
end
addCommandHandler("zabierz.prawojazdy", zabierzprawko )


function prawojazdy ( thePlayer, seat, jacked )
local playeraccount = getPlayerAccount ( thePlayer )
if seat ~= 0 then return end
if pojazdyB[getElementModel(source)] then
if not getAccountData(playeraccount, "prawojazdy") then
outputChatBox ( "Nie posiadasz prawa jazdy kategorii B!", thePlayer, 255, 255, 255, true )
cancelEvent ()
end
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), prawojazdy )


Kat.C
Cytat:

local pojazdyC ={[406]=true,[486]=true,[573]=true,[455]=true,[588]=true}


function dajprawko ( policjant, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( policjant) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local nickgracza = getPlayerName ( gracz1 )
local nickpolicjanta = getPlayerName ( policjant )
local konto = getPlayerAccount ( gracz1 )
if not getAccountData(konto, "prawojazdy") then
outputChatBox("Da?e? prawo jazdy graczowi "..nickgracza.."", policjant)
outputChatBox("Otrzyma?e? prawo jazdy od policjanta "..nickpolicjanta.."", gracz1)
setAccountData(konto, "prawojazdy", true)
else
outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy", policjant)
end
else
outputChatBox("Nie jeste? policjantem!", policjant)
end
end
addCommandHandler("daj.prawojazdy", dajprawko )


function sprawdzprawko ( policjant, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( policjant) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local konto = getPlayerAccount ( gracz1 )
local nickgracza = getPlayerName ( gracz1 )
if not getAccountData(konto, "prawojazdy") then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy", policjant)
else

outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy", policjant)
end
else
outputChatBox("Nie jeste? policjantem!", policjant)
end
end

addCommandHandler("sprawdz.prawojazdy", sprawdzprawko )


function zabierzprawko ( policjant, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( policjant) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local konto = getPlayerAccount ( gracz1 )
local nickgracza = getPlayerName ( gracz1 )
local nickpolicjanta = getPlayerName ( policjant )
if not getAccountData(konto, "prawojazdy") then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy", policjant)
else
setAccountData(konto, "prawojazdy", false)

outputChatBox("Zabra?e? prawo jazdy graczowi "..nickgracza.."", policjant)
outputChatBox("Policjant "..nickpolicjanta.." zabra? Ci prawo jazdy", gracz1)
end
else
outputChatBox("Nie jeste? policjantem!", policjant)
end
end
addCommandHandler("zabierz.prawojazdy", zabierzprawko )


function prawojazdy ( thePlayer, seat, jacked )
local playeraccount = getPlayerAccount ( thePlayer )
if seat ~= 0 then return end
if pojazdyB[getElementModel(source)] then
if not getAccountData(playeraccount, "prawojazdy") then
outputChatBox ( "Nie posiadasz prawa jazdy kategorii C!", thePlayer, 255, 255, 255, true )
cancelEvent ()
end
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), prawojazdy )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 13:01


Emm

***** ***






Wiek: 32
Na forum: 3880 dni
Posty: 3191
Nick w MP: Emm

Piwa: 6162

Respekt: 1580
Respekt: 1580Respekt: 1580


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
Poro?dzielaj elementDaty, z np setElementData(source, "prawojazdy", true) na np. setElementData(source, "prawojazdykatb", true) itp

Podpis

Użytkownik: 20.10.2015r
GTAO Member: 06.03.2016r
Support-Team: 20.01.2016r
Moderator: 30.03.2016r
Mod-Team: 08.10.2016r
Vice Admin: 04.05.2018r
Administrator: 03.05.2022r


! Koniecznie zapoznaj się z regulaminem forum.
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również regulaminy działów, w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez Administrację, przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w tym dziale.
Najważniejsze informacje od Administracji możesz przeczytać tutaj oraz tutaj.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 13:03


amama12345







Wiek: 25
Na forum: 4422 dni
Posty: 50
Nick w MP: AmaMa

Piwa: 3

Respekt: 50

Ostrzeżeń: 100%
Emm,
M?g?by? mi to zrobi???? :D bo nie wiem zabardzo o co chodzi jestem amatorem lua :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 13:12


Emm

***** ***






Wiek: 32
Na forum: 3880 dni
Posty: 3191
Nick w MP: Emm

Piwa: 6162

Respekt: 1580
Respekt: 1580Respekt: 1580


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
s-side
isCar = {[602]=true,[496]=true,[401]=true,[518]=true,[527]=true,[589]=true,[419]=true,[533]=true,
[526]=true,[474]=true,[545]=true,[517]=true,[410]=true,[600]=true,[436]=true,[580]=true,
[439]=true,[549]=true,[491]=true,[445]=true,[604]=true,[507]=true,[585]=true,[587]=true,
[466]=true,[492]=true,[546]=true,[551]=true,[516]=true,[467]=true,[426]=true,[547]=true,
[405]=true,[409]=true,[550]=true,[566]=true,[540]=true,[421]=true,[529]=true}
--[[function prawojazdy sourceseatjacked )
if (not isCar[getElementModel(source)]) then return end
local playeraccount getPlayerAccount source )
if seat == 0 then
if not isObjectInACLGroup ("user."..accNameaclGetGroup "PrawkoB" ) ) then
outputChatBox "Nie posiadasz prawa jazdy kategorii B lub zosta?o ono cofni?te!"source255255255true )
cancelEvent ()
end
end
end--]]
local egzaminowany=nil

addEvent('guiokno',true)


local rozpocznij createMarker(361.83,173.62,1007.38,"cylinder",1.5,0,0,100,100)
setElementInterior(rozpocznij,3)
setElementDimension(rozpocznij,1)


addEventHandler('onMarkerHit',root,function(player)
if isElementWithinMarker(player,rozpocznijthen
triggerClientEvent(player,"pokazgui",root)
showCursor(player,true)
end
end)
--[[
function rozpocznijkurs (source)
local mesa createVehicle(500,1668.89,-1693.82,20.58,358.8,0.1,176.1)
setElementData(mesa,"pojazd_opis","Egzamin prawa jazdy\nLos Santos\Kategoria B")
setElementData(mesa,"pojazd_paliwo",100)
setVehicleHandling(mesa,"maxVelocity",80)
warpPlayerIntoVehicle(source,mesa)
setElementInterior(source,0)
setElementDimension(source,0)
triggerClientEvent(source,"showmarker",root)
--toggleControl(source"enter_exit"false)
end
addEventHandler('guiokno',root,rozpocznijkurs)--]]

function rozpocznijkurs(source)
if isElementWithinMarker sourcerozpocznij )
then
local konto getPlayerAccount source )

if not getAccountData(konto,"prawojazdyB" then
outputChatBox("Zaczynasz kurs prawa jazdy. Wiedz, ?e nie mo?esz w nic waln??, powodzenia."source)
mesa createVehicle(500,1668.89,-1693.82,20.58,358.8,0.1,176.1)
setVehicleColor mesa255255255 )
setElementData(mesa,"pojazd_opis","Egzamin prawa jazdy\nLos Santos\nKategoria B")
setElementData(mesa,"pojazd_paliwo",100)
setVehicleHandling(mesa,"maxVelocity",80)
warpPlayerIntoVehicle(source,mesa)
setElementInterior(source,0)
setElementDimension(source,0)
toggleControl(source"enter_exit"false)
triggerClientEvent ("zdajemyprawkotrolololo"source )
else
outputChatBox("Masz ju? prawo jazdy kategorii B."source)
end
end
end
addEventHandler('guiokno',root,rozpocznijkurs)

function zdal ()
local nick getPlayerName source)
outputChatBox("Kurs prawa jazdy zako?czony pomy?lnie! Gratulacje!"source )
konto getPlayerAccount source )
setAccountData konto"prawojazdyB"true )
end

addEvent"prawko.zdal"true )
addEventHandler"prawko.zdal"rootzdal )

function oblal ()
local nick getPlayerName source)

outputChatBox("Egzamin zako?czony pora?k?! Pojazd uszkodzony."source )
end

addEvent"prawko.oblal"true )
addEventHandler"prawko.oblal"rootoblal )

function zabierzauto ( )
local auto getPedOccupiedVehiclesource )
destroyElement auto )
toggleControl(source"enter_exit"true)
end

addEvent"prawkoautosadasdas"true )
addEventHandler"prawkoautosadasdas"rootzabierzauto )

function sadasdsa source )
konto getPlayerAccount source )
setAccountData konto"prawojazdyB"false)
end
addCommandHandler("zbprawko"sadasdsa )


c-side

local screenWscreenH guiGetScreenSize()
addEvent("pokazgui"true)
addEvent("showmarker"true)



addEventHandler("pokazgui",root,function()
okno guiCreateWindow(0.260.220.490.60"Prawo Jazdy"true)
guiWindowSetSizable(oknofalse)

opis guiCreateLabel(0.010.060.980.46"Witaj, napewno chciales/as zdac prawo jazdy\nAby moc jezdzic autami i pracowac w pracach\ndorywczych typu spedytor,betoniarka\nKurs prawa jazdy trwa okolo 5minut.Nie zasnij\npodczas jazdy. Gdy w cos uderzysz oblewasz kurs i musisz zaczac od nowa. Powodzenia !"trueokno)
guiSetFont(opis"default-bold-small")
guiLabelSetHorizontalAlign(opis"center"false)
kurs guiCreateButton(0.010.860.220.11"ROZPOCZNIJ KURS"trueokno)
guiSetProperty(kurs"NormalTextColour""FFAAAAAA")
zamknij guiCreateButton(0.760.880.220.10"ZAMKNIJ OKNO"trueokno)
guiSetProperty(zamknij"NormalTextColour""FFAAAAAA")
end
)
function zamknijgui ()
if source ~= zamknij then return end
guiSetVisible(okno,false)
showCursor (false,true)
end
addEventHandler("onClientGUIClick",getRootElement (),zamknijgui)

function kursrozpocznij ()
if source ~= kurs then return end
guiSetVisible(okno,false)
showCursor (false,true)
--triggerServerEvent("guiokno",root)
triggerServerEvent ("guiokno"getRootElement (), localPlayer)
end
addEventHandler("onClientGUIClick",getRootElement (),kursrozpocznij)

--[[local punkty = {
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},

}--]]

function markerygo source )
marker1 createMarker (1663.16015625, -1702.694946289120.543771743774"checkpoint"3.025500100)
setMarkerTarget(marker11642.1597900391, -1714.427856445320.398849487305)
end
addEvent"zdajemyprawkotrolololo"true )
addEventHandler"zdajemyprawkotrolololo",localPlayermarkerygo )


function MH1 (hitPlayermatchingDimension)
if hitPlayer == localPlayer then
if source == marker1 then
destroyElement marker1 )
marker2 createMarker 1642.1597900391, -1714.427856445320.398849487305"checkpoint"3.025500100)
setMarkerTarget(marker2,1638.4127197266, -1698.924194335916.588209152222 )
end
if source == marker2 then
destroyElement marker2 )
marker3 createMarker 1638.4127197266, -1698.924194335916.588209152222"checkpoint"3.025500100)
setMarkerTarget(marker31644.9627685547, -1715.108154296915.65714263916)
end
if source == marker3 then
destroyElement marker3 )
marker4 createMarker 1644.9627685547, -1715.108154296915.65714263916"checkpoint"3.025500100)
setMarkerTarget(marker41627.9521484375, -1683.300048828113.440259933472)
end
if source == marker4 then
destroyElement marker4 )
marker5 createMarker 1627.9521484375, -1683.300048828113.440259933472"checkpoint"3.025500100)
setMarkerTarget(marker5,1621.0676269531, -1618.382568359413.60195350647 )
end
if source == marker5 then
destroyElement marker5 )
marker6 createMarker 1621.0676269531, -1618.382568359413.60195350647"checkpoint"3.025500100)
setMarkerTarget(marker6,1593.0228271484, -1590.628051757813.454643249512 )
end
if source == marker6 then
destroyElement marker6 )
marker7 createMarker (1593.0228271484, -1590.628051757813.454643249512"checkpoint"3.025500100)
setMarkerTarget(marker7,1492.7294921875, -1589.981445312513.436862945557 )
end
if source == marker7 then
destroyElement marker7 )
marker8 createMarker (1492.7294921875, -1589.981445312513.436862945557 "checkpoint"3.025500100)
setMarkerTarget(marker81416.2397460938, -1589.795654296913.408509254456)
end
if source == marker8 then
destroyElement marker8 )
marker9 createMarker 1416.2397460938, -1589.795654296913.408509254456"checkpoint"3.025500100)
setMarkerTarget(marker9,1328.802734375, -1571.584228515613.403031349182 )
end
if source == marker9 then
destroyElement marker9 )
marker10 createMarker (1328.802734375, -1571.584228515613.403031349182 "checkpoint"3.025500100)
setMarkerTarget(marker10,1318.8468017578, -1537.708618164113.415898323059 )
end
if source == marker10 then
destroyElement marker10 )
marker11 createMarker (1318.8468017578, -1537.708618164113.415898323059"checkpoint"3.025500100)
setMarkerTarget(marker111342.9923095703, -1494.313110351613.459111213684)
end
if source == marker11 then
destroyElement marker11 )
marker12 createMarker 1342.9923095703, -1494.313110351613.459111213684"checkpoint"3.025500100)
setMarkerTarget(marker12,1359.0194091797, -1398.692260742213.386858940125)
end
if source == marker12 then
destroyElement marker12 )
marker13 createMarker 1359.0194091797, -1398.692260742213.386858940125"checkpoint"3.025500100)
setMarkerTarget(marker13,1359.5017089844, -1307.865112304713.373591423035 )
end
if source == marker13 then
destroyElement marker13 )
marker14 createMarker (1359.5017089844, -1307.865112304713.373591423035"checkpoint"3.025500100)
setMarkerTarget(marker141359.3708496094, -1200.857299804718.677467346191)
end
if source == marker14 then
destroyElement marker14 )
marker15 createMarker 1359.3708496094, -1200.857299804718.677467346191"checkpoint"3.025500100)
setMarkerTarget(marker15,1359.9437255859, -1134.213256835923.712301254272)
end
if source == marker15 then
destroyElement marker15 )
marker16 createMarker (1359.9437255859, -1134.213256835923.712301254272 "checkpoint"3.025500100)
setMarkerTarget(marker161368.7977294922, -1073.281738281325.806930541992)
end
if source == marker16 then
destroyElement marker16 )
marker17 createMarker (1368.7977294922, -1073.281738281325.806930541992"checkpoint"3.025500100)
setMarkerTarget(marker17,1377.1307373047, -972.6653442382833.065185546875)
end
if source == marker17 then
destroyElement marker17 )
marker18 createMarker 1377.1307373047, -972.6653442382833.065185546875"checkpoint"3.025500100)
setMarkerTarget(marker18,1345.3680419922, -929.1321411132835.045318603516 )
end
if source == marker18 then
destroyElement marker18 )
marker19 createMarker 1345.3680419922, -929.1321411132835.045318603516"checkpoint"3.025500100)
setMarkerTarget(marker19,1252.6451416016, -925.2764282226642.681949615479 )
end
if source == marker19 then
destroyElement marker19 )
marker20 createMarker (1252.6451416016, -925.2764282226642.681949615479"checkpoint"3.025500100)
setMarkerTarget(marker20,1126.70703125, -942.7108154296942.753238677979 )
end
if source == marker20 then
destroyElement marker20 )
marker21 createMarker (1126.70703125, -942.7108154296942.753238677979 "checkpoint"3.025500100)
setMarkerTarget(marker211019.1503295898, -955.1249389648442.284885406494)
end
if source == marker21 then
destroyElement marker21 )
marker22 createMarker (1019.1503295898, -955.1249389648442.284885406494 "checkpoint"3.025500100)
setMarkerTarget(marker22,957.244140625, -946.3810424804740.251583099365 )
end
if source == marker22 then
destroyElement marker22 )
marker23 createMarker (957.244140625, -946.3810424804740.251583099365 "checkpoint"3.025500100)
setMarkerTarget(marker23,857.75994873047, -950.1080932617245.824966430664 )
end
if source == marker23 then
destroyElement marker23 )
marker24 createMarker 857.75994873047, -950.1080932617245.824966430664"checkpoint"3.025500100)
setMarkerTarget(marker24,857.26654052734, -925.2539062558.643321990967 )
end
if source == marker24 then
destroyElement marker24 )
marker25 createMarker (857.26654052734, -925.2539062558.643321990967 "checkpoint"3.025500100)
setMarkerTarget(marker25,848.83184814453, -880.97851562566.350151062012 )
end
if source == marker25 then
destroyElement marker25 )
marker26 createMarker (848.83184814453, -880.97851562566.350151062012 "checkpoint"3.025500100)
setMarkerTarget(marker26,776.35845947266, -908.2164306640656.570423126221 )
end
if source == marker26 then
destroyElement marker26 )
marker27 createMarker (776.35845947266, -908.2164306640656.570423126221 "checkpoint"3.025500100)
setMarkerTarget(marker27,721.74157714844, -977.3992309570353.145294189453 )
end
if source == marker27 then
destroyElement marker27 )
marker28 createMarker (721.74157714844, -977.3992309570353.145294189453 "checkpoint"3.025500100)
setMarkerTarget(marker28664.87744140625, -1068.324829101648.837955474854)
end
if source == marker28 then
destroyElement marker28 )
marker29 createMarker (664.87744140625, -1068.324829101648.837955474854 "checkpoint"3.025500100)
setMarkerTarget(marker29,573.74206542969, -1134.921508789150.206745147705 )
end
if source == marker29 then
destroyElement marker29 )
marker30 createMarker (573.74206542969, -1134.921508789150.206745147705 "checkpoint"3.025500100)
setMarkerTarget(marker30425.00033569336, -1179.708129882872.254905700684)
end
if source == marker30 then
destroyElement marker30 )
marker31 createMarker (425.00033569336, -1179.708129882872.254905700684"checkpoint"3.025500100)
setMarkerTarget(marker31,345.3752746582, -1176.257202148476.845680236816 )
end
if source == marker31 then
destroyElement marker31 )
marker32 createMarker (345.3752746582, -1176.257202148476.845680236816 "checkpoint"3.025500100)
setMarkerTarget(marker32261.15295410156, -1240.801879882873.000091552734)
end
if source == marker32 then
destroyElement marker32 )
marker33 createMarker (261.15295410156, -1240.801879882873.000091552734 "checkpoint"3.025500100)
setMarkerTarget(marker33,235.52143859863, -1319.463989257854.114295959473 )
end
if source == marker33 then
destroyElement marker33 )
marker34 createMarker 235.52143859863, -1319.463989257854.114295959473"checkpoint"3.025500100)
setMarkerTarget(marker34,216.4146270752, -1355.428344726650.832809448242 )
end
if source == marker34 then
destroyElement marker34 )
marker35 createMarker 216.4146270752, -1355.428344726650.832809448242"checkpoint"3.025500100)
setMarkerTarget(marker35,155.4524230957, -1419.968994140641.484992980957 )
end
if source == marker35 then
destroyElement marker35 )
marker36 createMarker 155.4524230957, -1419.968994140641.484992980957"checkpoint"3.025500100)
setMarkerTarget(marker36,97.265258789063, -1542.71203613286.1489005088806)
end
if source == marker36 then
destroyElement marker36 )
marker37 createMarker (97.265258789063, -1542.71203613286.1489005088806 "checkpoint"3.025500100)
setMarkerTarget(marker37,184.45991516113, -1624.215332031314.489157676697)
end
if source == marker37 then
destroyElement marker37 )
marker38 createMarker 184.45991516113, -1624.215332031314.489157676697"checkpoint"3.025500100)
setMarkerTarget(marker38,315.07354736328, -1713.96020507816.6833763122559)
end
if source == marker38 then
destroyElement marker38 )
marker39 createMarker 315.07354736328, -1713.96020507816.6833763122559"checkpoint"3.025500100)
setMarkerTarget(marker39,391.70977783203, -1719.05224609388.0422601699829)
end
if source == marker39 then
destroyElement marker39 )
marker40 createMarker (391.70977783203, -1719.05224609388.0422601699829 "checkpoint"3.025500100)
setMarkerTarget(marker40,510.30587768555, -1730.715454101611.775031089783)
end
if source == marker40 then
destroyElement marker40 )
marker41 createMarker 510.30587768555, -1730.715454101611.775031089783"checkpoint"3.025500100)
setMarkerTarget(marker41,602.91790771484, -1743.729492187513.356950759888)
end
if source == marker41 then
destroyElement marker41 )
marker42 createMarker 602.91790771484, -1743.729492187513.356950759888"checkpoint"3.025500100)
setMarkerTarget(marker42,694.81488037109, -1765.429565429713.4994764328)
end
if source == marker42 then
destroyElement marker42 )
marker43 createMarker (694.81488037109, -1765.429565429713.4994764328 "checkpoint"3.025500100)
setMarkerTarget(marker43,845.00225830078, -1785.958618164113.824610710144)
end
if source == marker43 then
destroyElement marker43 )
marker44 createMarker (845.00225830078, -1785.958618164113.824610710144 "checkpoint"3.025500100)
setMarkerTarget(marker44,970.07434082031, -1800.328247070314.13806438446)
end
if source == marker44 then
destroyElement marker44 )
marker45 createMarker 970.07434082031, -1800.328247070314.13806438446"checkpoint"3.025500100)
setMarkerTarget(marker45,1043.7121582031, -1847.239746093813.421897888184)
end
if source == marker45 then
destroyElement marker45 )
marker46 createMarker 1043.7121582031, -1847.239746093813.421897888184"checkpoint"3.025500100)
setMarkerTarget(marker46,1027.5146484375, -2099.362548828112.990287780762)
end
if source == marker46 then
destroyElement marker46 )
marker47 createMarker (1027.5146484375, -2099.362548828112.990287780762 "checkpoint"3.025500100)
setMarkerTarget(marker47,1040.8381347656, -2288.718994140613.001424789429)
end
if source == marker47 then
destroyElement marker47 )
marker48 createMarker 1040.8381347656, -2288.718994140613.001424789429"checkpoint"3.025500100)
setMarkerTarget(marker48,1133.083984375, -2402.628417968811.203800201416)
end
if source == marker48 then
destroyElement marker48 )
marker49 createMarker 1133.083984375, -2402.628417968811.203800201416"checkpoint"3.025500100)
setMarkerTarget(marker49,1318.6790771484, -2490.946289062510.454770088196)
end
if source == marker49 then
destroyElement marker49 )
marker50 createMarker 1318.6790771484, -2490.946289062510.454770088196"checkpoint"3.025500100)
setMarkerTarget(marker50,1330.1434326172, -2570.423339843813.428275108337)
end
if source == marker50 then
destroyElement marker50 )
marker51 createMarker (1330.1434326172, -2570.423339843813.428275108337 "checkpoint"3.025500100)
setMarkerTarget(marker51,1483.3269042969, -2686.783691406311.25168132782)
end
if source == marker51 then
destroyElement marker51 )
marker52 createMarker 1483.3269042969, -2686.783691406311.25168132782"checkpoint"3.025500100)
setMarkerTarget(marker52,1630.7430419922, -2686.95727539065.9232769012451)
end
if source == marker52 then
destroyElement marker52 )
marker53 createMarker (1630.7430419922, -2686.95727539065.9232769012451 "checkpoint"3.025500100)
setMarkerTarget(marker53,1841.1774902344, -2687.37597656255.9201984405518)
end
if source == marker53 then
destroyElement marker53 )
marker54 createMarker (1841.1774902344, -2687.37597656255.9201984405518 "checkpoint"3.025500100)
setMarkerTarget(marker54,2110.0825195313, -2676.50976562513.454137802124)
end
if source == marker54 then
destroyElement marker54 )
marker55 createMarker (2110.0825195313, -2676.50976562513.454137802124 "checkpoint"3.025500100)
setMarkerTarget(marker55,2177.9025878906, -2460.77929687513.430536270142)
end
if source == marker55 then
destroyElement marker55 )
marker56 createMarker (2177.9025878906, -2460.77929687513.430536270142 "checkpoint"3.025500100)
setMarkerTarget(marker56,2268.69921875, -2309.531005859413.430212020874)
end
if source == marker56 then
destroyElement marker56 )
marker57 createMarker 2268.69921875, -2309.531005859413.430212020874"checkpoint"3.025500100)
setMarkerTarget(marker57,2514.6081542969, -2173.233642578113.439977645874)
end
if source == marker57 then
destroyElement marker57 )
marker58 createMarker 2514.6081542969, -2173.233642578113.439977645874"checkpoint"3.025500100)
setMarkerTarget(marker58,2696.1845703125, -2172.129394531310.988227844238)
end
if source == marker58 then
destroyElement marker58 )
marker59 createMarker (2696.1845703125, -2172.129394531310.988227844238 "checkpoint"3.025500100)
setMarkerTarget(marker59,2716.595703125, -2119.397705078110.903687477112)
end
if source == marker59 then
destroyElement marker59 )
marker60 createMarker (2716.595703125, -2119.397705078110.903687477112 "checkpoint"3.025500100)
setMarkerTarget(marker60,2716.4738769531, -1946.620117187513.39043712616)
end
if source == marker60 then
destroyElement marker60 )
marker61 createMarker (2716.4738769531, -1946.620117187513.39043712616 "checkpoint"3.025500100)
setMarkerTarget(marker61,2616.6491699219, -1929.424438476613.423143386841)
end
if source == marker61 then
destroyElement marker61 )
marker62 createMarker 2616.6491699219, -1929.424438476613.423143386841"checkpoint"3.025500100)
setMarkerTarget(marker62,2475.1477050781, -1929.897827148413.417346000671)
end
if source == marker62 then
destroyElement marker62 )
marker63 createMarker 2475.1477050781, -1929.897827148413.417346000671"checkpoint"3.025500100)
setMarkerTarget(marker63,2415.439453125, -1855.618530273413.439561843872)
end
if source == marker63 then
destroyElement marker63 )
marker64 createMarker 2415.439453125, -1855.618530273413.439561843872"checkpoint"3.025500100)
setMarkerTarget(marker64,2407.1203613281, -1731.187377929713.503132820129)
end
if source == marker64 then
destroyElement marker64 )
marker65 createMarker (2407.1203613281, -1731.187377929713.503132820129 "checkpoint"3.025500100)
setMarkerTarget(marker65,2228.9274902344, -1730.064086914113.435308456421)
end
if source == marker65 then
destroyElement marker65 )
marker66 createMarker (2228.9274902344, -1730.064086914113.435308456421 "checkpoint"3.025500100)
setMarkerTarget(marker66,2184.0874023438, -1738.443481445313.447063446045)
end
if source == marker66 then
destroyElement marker66 )
marker67 createMarker (2184.0874023438, -1738.443481445313.447063446045 "checkpoint"3.025500100)
setMarkerTarget(marker67,2054.4228515625, -1750.053222656313.44679069519)
end
if source == marker67 then
destroyElement marker67 )
marker68 createMarker (2054.4228515625, -1750.053222656313.44679069519 "checkpoint"3.025500100)
setMarkerTarget(marker68,1866.5146484375, -1750.003662109413.438414573669)
end
if source == marker68 then
destroyElement marker68 )
marker69 createMarker (1866.5146484375, -1750.003662109413.438414573669 "checkpoint"3.025500100)
setMarkerTarget(marker69,1764.7543945313, -1730.832519531313.44043636322)
end
if source == marker69 then
destroyElement marker69 )
marker70 createMarker (1764.7543945313, -1730.832519531313.44043636322 "checkpoint"3.025500100)
setMarkerTarget(marker70,1692.3199462891, -1702.454711914113.439455032349)
end
if source == marker70 then
destroyElement marker70 )
marker71 createMarker (1692.3199462891, -1702.454711914113.439455032349 "checkpoint"3.025500100)
setMarkerTarget(marker71,1691.6080322266, -1607.744873046913.450239181519)
end
if source == marker71 then
destroyElement marker71 )
marker72 createMarker 1691.6080322266, -1607.744873046913.450239181519"checkpoint"3.025500100)
setMarkerTarget(marker72,1628.9261474609, -1590.124755859413.583369255066)
end
if source == marker72 then
destroyElement marker72 )
marker73 createMarker 1628.9261474609, -1590.124755859413.583369255066"checkpoint"3.025500100)
setMarkerTarget(marker73,1616.1010742188, -1626.871704101613.607520103455)
end
if source == marker73 then
destroyElement marker73 )
marker74 createMarker (1616.1010742188, -1626.871704101613.607520103455 "checkpoint"3.025500100)
setMarkerTarget(marker74,1627.4686279297, -1690.672729492213.430468559265)
end
if source == marker74 then
destroyElement marker74 )
marker75 createMarker (1627.4686279297, -1690.672729492213.430468559265 "checkpoint"3.025500100)
setMarkerTarget(marker75,1646.3923339844, -1713.322631835915.656147956848)
end
if source == marker75 then
destroyElement marker75 )
marker76 createMarker (1646.3923339844, -1713.322631835915.656147956848 "checkpoint"3.025500100)
setMarkerTarget(marker76,1646.2595214844, -1713.623779296920.542749404907)
end
if source == marker76 then
destroyElement marker76 )
marker77 createMarker (1646.2595214844, -1713.623779296920.542749404907 "checkpoint"3.025500100)
setMarkerTarget(marker77,1646.2595214844, -1713.623779296920.542749404907)
end
if source == marker77 then
destroyElement marker77 )
local auto getPedOccupiedVehicle hitPlayer)
local hpauta getElementHealth auto )
localPlayer getLocalPlayer()
if hpauta 999 then
triggerServerEvent "prawko.zdal"localPlayer )
triggerServerEvent "prawkoautosadasdas"localPlayer )
else
localPlayer getLocalPlayer()
triggerServerEvent "prawko.oblal"localPlayer )
triggerServerEvent "prawkoautosadasdas"localPlayer )
end
end
end
end
addEventHandler "onClientMarkerHit"getRootElement(), MH1 )

kod na kat B


local pojazdyB ={[602]=true,[496]=true,[401]=true,[518]=true,[527]=true,[589]=true,[419]=true,[533]=true,
[526]=true,[474]=true,[545]=true,[517]=true,[410]=true,[600]=true,[436]=true,[580]=true,
[439]=true,[549]=true,[491]=true,[445]=true,[604]=true,[507]=true,[585]=true,[587]=true,
[466]=true,[492]=true,[546]=true,[551]=true,[516]=true,[467]=true,[426]=true,[547]=true,
[405]=true,[409]=true,[550]=true,[566]=true,[540]=true,[421]=true,[529]=true}

function dajprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local nickgracza getPlayerName gracz1 )
local nickpolicjanta getPlayerName policjant )
local konto getPlayerAccount gracz1 )
if not getAccountData(konto"prawojazdy"then
outputChatBox("Da?e? prawo jazdy graczowi "..nickgracza..""policjant)
outputChatBox("Otrzyma?e? prawo jazdy od policjanta "..nickpolicjanta..""gracz1)
setAccountData(konto"prawojazdyB"true)
else
outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy"policjant)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end
addCommandHandler("daj.prawojazdy"dajprawko )


function sprawdzprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local konto getPlayerAccount gracz1 )
local nickgracza getPlayerName gracz1 )
if not getAccountData(konto"prawojazdyB"then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy"policjant)
else

outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy"policjant)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end

addCommandHandler("sprawdz.prawojazdy"sprawdzprawko )


function zabierzprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local konto getPlayerAccount gracz1 )
local nickgracza getPlayerName gracz1 )
local nickpolicjanta getPlayerName policjant )
if not getAccountData(konto"prawojazdyB"then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy"policjant)
else
setAccountData(konto"prawojazdyB"false)

outputChatBox("Zabra?e? prawo jazdy graczowi "..nickgracza..""policjant)
outputChatBox("Policjant "..nickpolicjanta.." zabra? Ci prawo jazdy"gracz1)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end
addCommandHandler("zabierz.prawojazdy"zabierzprawko )


function prawojazdy thePlayerseatjacked )
local playeraccount getPlayerAccount thePlayer )
if seat ~= 0 then return end
if pojazdyB[getElementModel(source)] then
if not getAccountData(playeraccount"prawojazdyB"then
outputChatBox "Nie posiadasz prawa jazdy kategorii B!"thePlayer255255255true )
cancelEvent ()
end
end
end
addEventHandler "onVehicleStartEnter"getRootElement(), prawojazdy )


kod na kategori? C


local pojazdyC ={[406]=true,[486]=true,[573]=true,[455]=true,[588]=true}


function dajprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local nickgracza getPlayerName gracz1 )
local nickpolicjanta getPlayerName policjant )
local konto getPlayerAccount gracz1 )
if not getAccountData(konto"prawojazdyC"then
outputChatBox("Da?e? prawo jazdy graczowi "..nickgracza..""policjant)
outputChatBox("Otrzyma?e? prawo jazdy od policjanta "..nickpolicjanta..""gracz1)
setAccountData(konto"prawojazdyC"true)
else
outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy"policjant)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end
addCommandHandler("daj.prawojazdyC"dajprawko )


function sprawdzprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local konto getPlayerAccount gracz1 )
local nickgracza getPlayerName gracz1 )
if not getAccountData(konto"prawojazdyC"then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy"policjant)
else

outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy"policjant)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end

addCommandHandler("sprawdz.prawojazdy"sprawdzprawko )


function zabierzprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local konto getPlayerAccount gracz1 )
local nickgracza getPlayerName gracz1 )
local nickpolicjanta getPlayerName policjant )
if not getAccountData(konto"prawojazdyC"then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy"policjant)
else
setAccountData(konto"prawojazdy"false)

outputChatBox("Zabra?e? prawo jazdy graczowi "..nickgracza..""policjant)
outputChatBox("Policjant "..nickpolicjanta.." zabra? Ci prawo jazdy"gracz1)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end
addCommandHandler("zabierz.prawojazdy"zabierzprawko )


function prawojazdy thePlayerseatjacked )
local playeraccount getPlayerAccount thePlayer )
if seat ~= 0 then return end
if pojazdyB[getElementModel(source)] then
if not getAccountData(playeraccount"prawojazdy"then
outputChatBox "Nie posiadasz prawa jazdy kategorii C!"thePlayer255255255true )
cancelEvent ()
end
end
end
addEventHandler "onVehicleStartEnter"getRootElement(), prawojazdy 



Wytestuj

Podpis

Użytkownik: 20.10.2015r
GTAO Member: 06.03.2016r
Support-Team: 20.01.2016r
Moderator: 30.03.2016r
Mod-Team: 08.10.2016r
Vice Admin: 04.05.2018r
Administrator: 03.05.2022r


! Koniecznie zapoznaj się z regulaminem forum.
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również regulaminy działów, w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez Administrację, przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w tym dziale.
Najważniejsze informacje od Administracji możesz przeczytać tutaj oraz tutaj.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 13:27


amama12345







Wiek: 25
Na forum: 4422 dni
Posty: 50
Nick w MP: AmaMa

Piwa: 3

Respekt: 50

Ostrzeżeń: 100%
Emm,
Kat.C wog?le nie dzia?a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 23:46


Emm

***** ***






Wiek: 32
Na forum: 3880 dni
Posty: 3191
Nick w MP: Emm

Piwa: 6162

Respekt: 1580
Respekt: 1580Respekt: 1580


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
Jutro na kompie ogarne, jakie? db? Co??

Podpis

Użytkownik: 20.10.2015r
GTAO Member: 06.03.2016r
Support-Team: 20.01.2016r
Moderator: 30.03.2016r
Mod-Team: 08.10.2016r
Vice Admin: 04.05.2018r
Administrator: 03.05.2022r


! Koniecznie zapoznaj się z regulaminem forum.
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również regulaminy działów, w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez Administrację, przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w tym dziale.
Najważniejsze informacje od Administracji możesz przeczytać tutaj oraz tutaj.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-31, 07:43


amama12345







Wiek: 25
Na forum: 4422 dni
Posty: 50
Nick w MP: AmaMa

Piwa: 3

Respekt: 50

Ostrzeżeń: 100%
Emm,
Nie wiem ;D, wszystko mi jedno :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-31, 15:13


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

wpisz /debugscript 3

i podaj b??dy jak s?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-01, 03:22


Dexnes_

Tiger






Wiek: 26
Na forum: 4401 dni
Posty: 620
Nick w MP: Dexnes

Piwa: 1394

Respekt: 390
Respekt: 390Respekt: 390Respekt: 390Respekt: 390

Prawo Jazdy kat.C :

local pojazdyC ={[406]=true,[486]=true,[573]=true,[455]=true,[588]=true}


function dajprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local nickgracza getPlayerName gracz1 )
local nickpolicjanta getPlayerName policjant )
local konto getPlayerAccount gracz1 )
if not getAccountData(konto"prawojazdyC"then
outputChatBox("Da?e? prawo jazdy graczowi "..nickgracza..""policjant)
outputChatBox("Otrzyma?e? prawo jazdy od policjanta "..nickpolicjanta..""gracz1)
setAccountData(konto"prawojazdyC"true)
else
outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy"policjant)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end
addCommandHandler("daj.prawojazdyC"dajprawko )


function sprawdzprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local konto getPlayerAccount gracz1 )
local nickgracza getPlayerName gracz1 )
if not getAccountData(konto"prawojazdyC"then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy"policjant)
else

outputChatBox("Gracz "..nickgracza.." posiada prawo jazdy"policjant)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end

addCommandHandler("sprawdz.prawojazdy"sprawdzprawko )


function zabierzprawko policjantcommandNamegracz )
local accName getAccountName getPlayerAccount policjant) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then
local gracz1 getPlayerFromName gracz )
local konto getPlayerAccount gracz1 )
local nickgracza getPlayerName gracz1 )
local nickpolicjanta getPlayerName policjant )
if not getAccountData(konto"prawojazdyC"then
outputChatBox("Gracz "..nickgracza.." nie posiada prawa jazdy"policjant)
else
setAccountData(konto"prawojazdyC"false)

outputChatBox("Zabra?e? prawo jazdy graczowi "..nickgracza..""policjant)
outputChatBox("Policjant "..nickpolicjanta.." zabra? Ci prawo jazdy"gracz1)
end
else
outputChatBox("Nie jeste? policjantem!"policjant)
end
end
addCommandHandler("zabierz.prawojazdy"zabierzprawko )


function prawojazdy thePlayerseatjacked )
local playeraccount getPlayerAccount thePlayer )
if seat ~= 0 then return end
if pojazdyB[getElementModel(source)] then
if not getAccountData(playeraccount"prawojazdyC"then
outputChatBox "Nie posiadasz prawa jazdy kategorii C!"thePlayer255255255true )
cancelEvent ()
end
end
end
addEventHandler "onVehicleStartEnter"getRootElement(), prawojazdy 


Postaw piwo autorowi tego posta
 

 
Tagi: prawo :: jazdy
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Prawo jazdy Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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
Dodaj temat do Ulubionych
Wersja do druku