Wysłany: 2015-06-24, 21:08
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Pomocy z Skryptem nie dza?a ;'(
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 ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName , aclGetGroup ( "Policja" ) ) then
if accountName then
aclGroupAddObject ( aclGetGroup ( "PJKB" ), "user." .. accountName )
outputChatBox ( 'Wyda?e? prawo jazdy' , thePlayer )
else
outputChatBox ( 'Podany nick jest nieprawid?owy !' , thePlayer )
end
end
end
addCommandHandler ( 'zabierzprawkob' , zabierzPrawkoB )
aclGroupRemoveObject ( aclGetGroup ( "PJKB" ), "user." .. accountName )
outputChatBox ( 'Zabra?es Prawko' , thePlayer )
else
outputChatBox ( 'Podany nick jest nieprawid?owy !' , thePlayer )
end
end
end
addCommandHandler ( 'dajprawkob' , dajPrawkoB )
Napiszcie mi Co zle albo odrazu KOD bo to m?j 1 Skrypt taki samodzelny
Wysłany: 2015-06-24, 21:11
Micles258
Uczeń lua
Wiek: 25 Na forum: 4008 dni Posty: 48
Piwa : 437
Wysłany: 2015-06-24, 21:36
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Wysłany: 2015-06-24, 21:38
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
Wpisz na serwerze komende /debugscript 3 i podaj blad, ktory wyskoczyl
Wysłany: 2015-06-24, 22:02
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
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 ) )
if ( prawojazdykatb [ getElementModel ( source )] ) and not isObjectInACLGroup ( 'user.' .. playerName , aclGetGroup ( "PJKB" ) ) then
cancelEvent ()
outputChatBox ( "Panie! Potrzebne ci Prawko Kart.B" , thePlayer )
end
end
end
addEventHandler ( 'onVehicleStartEnter' , root , prawoKatB )
function dajPrawkoB ( thePlayer , commandName , accountName )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName , aclGetGroup ( "Policja" ) ) then
if accountName then
local pl = getPlayerFromName ( accountName )
if pl then
local account = getPlayerAccount ( pl )
local acc = getAccountName ( account )
aclGroupAddObject ( aclGetGroup ( "PJKB" ), "user." .. acc )
outputChatBox ( 'Wyda?e? prawo jazdy' , thePlayer )
else
outputChatBox ( 'Podany nick jest nieprawid?owy !' , thePlayer )
end
end
end
end
addCommandHandler ( 'dajprawkob' , dajPrawkoB )
addCommandHandler ( 'zabierzprawkob' ,function( plr , cmd , accountName )
if accountName then
local player = getPlayerFromName ( accountName )
local account = getPlayerAccount ( player )
local accName = getAccountName ( account )
aclGroupRemoveObject ( aclGetGroup ( "PJKB" ), "user." .. accName )
outputChatBox ( 'Zabra?es Prawko' , thePlayer )
else
outputChatBox ( 'Podany nick jest nieprawid?owy !' , thePlayer )
end
end )
Sprobuj teraz
Podpis
Jedyny kontakt ze mną to PW forum
Kod:
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Wysłany: 2015-06-25, 09:40
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Dzi?ki
A Mozecie mi Poda? jeszcze co? ze wpisze kordy i bende m?g? zda? bez dawania?
[ Dodano : 2015-06-25, 09:50 ]
E czekaj Musze dodawa? ACL a niedza?a mi komenda /dajprawkob
Pisze ze da?em ale nie da?o
To samo z Zabraniem
Wysłany: 2015-06-25, 11:34
Loop
Inspektor
Wiek: 27 Na forum: 4289 dni Posty: 311
Nick w MP: Inspektor
Piwa : 201
Pewnie musisz dodac ten skrypt do ACL Admin
Wysłany: 2015-06-25, 11:57
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Dza?a dzi?ki masz Piwo
[ Dodano : 2015-06-25, 12:07 ]
By?ce mi migli pokazac albo dac kod jak zrobi? abym m?g? jechac za Markerem i nakoniec Dostane Prawko do Tego Skryptu. Daje Rekspekt,Piwo
Wysłany: 2015-06-25, 12:48
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
Do tablicy wrzucasz swoje koordy np.
koordy = {
{ nr = 1 , pos = { x , y , z }},
{ nr = 2 , pos = { x , y , z }},
}
-- itd . itd .
-- Po czym tworzysz zmienn ? :
podstNr = 1
actualMarker = createMarker ( x0 , y0 , z0 , "checkpoint" , 2 , 255 , 0 , 0 , 130 )
addEventHandler ( "onMarkerHit" , root , function( he , md )
if getElementType ( he ) ~= "player" then return end
zp = nil
for k , v in ipairs ( koordy ) do
if podstNr == v . nr then
zp = v
end
end
if not zp then -- pod tym not zp dodajesz co ma sie stac , jak gosc wjedzie w ostatni marker , czyli jak zda :)
return
end
setElementPosition ( actualMarker , zp . pos [ 1 ], zp . pos [ 2 ], zp . pos [ 3 ])
podstNr = podstNr + 1
end
)
Cos takiego
Podpis
Jedyny kontakt ze mną to PW forum
Kod:
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Wysłany: 2015-06-25, 15:47
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
if not zp then -- pod tym not zp dodajesz co ma sie stac, jak gosc wjedzie w ostatni marker, czyli jak zda
Niewiem co tu zrobic
Wysłany: 2015-06-25, 16:03
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
No np. jest 35 numerk?w, go?? wje?dza w 35 to chyba zda? no nie? Jak zda? to co mu zrobisz? Ja na Twoim miejscu da?bym mu prawo jazdy, ale r?b jak uwa?asz.
Podpis
Jedyny kontakt ze mną to PW forum
Kod:
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Wysłany: 2015-06-25, 16:10
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
Poprosi?e?, aby Ci podpowiedzie?, nie napisa? to za Ciebie... Ja Ci da?em 80% kodu.
Podpis
Jedyny kontakt ze mną to PW forum
Kod:
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Wysłany: 2015-06-25, 16:24
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
No ale ja nowy skrypter i niewiem coto a na ciebie to ?atwe
[ Dodano : 2015-06-25, 16:26 ]
Moze mi to kto? zrobi? bo ja nowy 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 ) )
if ( prawojazdykatb [ getElementModel ( source )] ) and not isObjectInACLGroup ( 'user.' .. playerName , aclGetGroup ( "PJKB" ) ) then
cancelEvent ()
outputChatBox ( "Panie! Potrzebne ci Prawko Kart.B" , thePlayer )
end
end
end
addEventHandler ( 'onVehicleStartEnter' , root , prawoKatB )
function dajPrawkoB ( thePlayer , commandName , accountName )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName , aclGetGroup ( "RCON" ) ) then
if accountName then
local pl = getPlayerFromName ( accountName )
if pl then
local account = getPlayerAccount ( pl )
local acc = getAccountName ( account )
aclGroupAddObject ( aclGetGroup ( "PJKB" ), "user." .. acc )
outputChatBox ( 'Wyda?e? prawo jazdy' , thePlayer )
else
outputChatBox ( 'Podany nick jest nieprawid?owy !' , thePlayer )
end
end
end
end
addCommandHandler ( 'dajprawkob' , dajPrawkoB )
addCommandHandler ( 'zabierzprawkob' ,function( plr , cmd , accountName )
if accountName then
local player = getPlayerFromName ( accountName )
local account = getPlayerAccount ( player )
local accName = getAccountName ( account )
aclGroupRemoveObject ( aclGetGroup ( "PJKB" ), "user." .. accName )
outputChatBox ( 'Zabra?es Prawko' , thePlayer )
else
outputChatBox ( 'Podany nick jest nieprawid?owy !' , thePlayer )
end
end )
-- KORDY
koordy = {
{ nr = 1 , pos = {- 1905.61 , 1290.05 , 6.76 }},
{ nr = 2 , pos = {- 1828.83 , 1356.95 , 6.60 }},
{ nr = 3 , pos = {- 1801.00 , 1276.90 , 13.07 },
{ nr = 4 , pos = {- 1885.84 , 1227.13 , 34.55 },
{ nr = 5 , pos = {- 1941.33 , 1178.89 , 44.86 },
{ nr = 6 , pos = {- 1969.55 , 1107.23 , 54.74 },
{ nr = 7 , pos = {- 2069.07 , 1079.59 , 55.14 },
{ nr = 8 , pos = {- 2268.20 , 1079.17 , 55.15 },
{ nr = 9 , pos = {- 2348.61 , 1123.76 , 54.83 },
{ nr = 10 , pos = {- 2442.42 , 1158.14 , 54.85 },
{ nr = 11 , pos = {- 2575.09 , 1168.08 , 54.85 },
{ nr = 12 , pos = {- 2568.04 , 1101.78 , 55.10 },
{ nr = 13 , pos = {- 2439.44 , 1089.46 , 55.15 },
{ nr = 14 , pos = {- 2292.80 , 1052.64 , 55.15 },
{ nr = 15 , pos = {- 2094.18 , 1054.06 , 55.15 },
{ nr = 16 , pos = {- 2094.18 , 1054.06 , 55.15 },
{ nr = 17 , pos = {- 1881.50 , 1153.15 , 44.85 },
{ nr = 18 , pos = {- 1860.26 , 1252.54 , 23.84 },
{ nr = 19 , pos = {- 1803.11 , 1266.74 , 13.43 },
{ nr = 20 , pos = {- 1707.38 , 1321.16 , 6.60 },
{ nr = 21 , pos = {- 1833.51 , 1379.94 , 6.60 },
{ nr = 22 , pos = {- 1939.19 , 1378.14 , 6.75 },
{ nr = 23 , pos = {- 1981.50 , 1378.71 , 6.75 },
{ nr = 24 , pos = {- 2013.44 , 1337.09 , 6.77 },
{ nr = 25 , pos = {- 2083.05 , 1327.18 , 6.69 },
{ nr = 26 , pos = {- 2186.66 , 1336.19 , 6.69 },
{ nr = 27 , pos = {- 2311.69 , 1359.85 , 6.69 },
{ nr = 28 , pos = {- 2450.07 , 1380.25 , 6.69 },
{ nr = 29 , pos = {- 2577.33 , 1355.55 , 6.70 },
{ nr = 30 , pos = {- 2683.00 , 1292.85 , 6.70 },
{ nr = 31 , pos = {- 2820.13 , 1278.90 , 5.12 },
{ nr = 32 , pos = {- 2884.18 , 1163.92 , 12.27 },
{ nr = 33 , pos = {- 2883.49 , 1068.47 , 30.95 },
{ nr = 34 , pos = {- 2859.42 , 994.89 , 40.72 },
{ nr = 35 , pos = {- 2827.05 , 924.49 , 43.56 },
{ nr = 36 , pos = {- 2828.54 , 850.13 , 43.55 },
{ nr = 37 , pos = {- 2867.49 , 779.88 , 33.96 },
{ nr = 38 , pos = {- 2838.36 , 698.05 , 23.90 },
{ nr = 39 , pos = {- 2824.58 , 576.64 , 5.10 },
{ nr = 40 , pos = {- 2853.00 , 476.16 , 3.81 },
{ nr = 41 , pos = {- 2797.39 , 465.10 , 4.99 },
{ nr = 42 , pos = {- 2691.22 , 466.24 , 4.43 },
{ nr = 43 , pos = {- 2597.79 , 467.09 , 14.13 },
{ nr = 44 , pos = {- 2526.27 , 501.70 , 14.11 },
{ nr = 45 , pos = {- 2525.24 , 602.69 , 21.65 },
{ nr = 46 , pos = {- 2523.49 , 686.83 , 27.47 },
{ nr = 47 , pos = {- 2524.15 , 784.90 , 45.60 },
{ nr = 48 , pos = {- 2524.67 , 863.81 , 56.02 },
{ nr = 49 , pos = {- 2525.22 , 945.49 , 65.38 },
{ nr = 50 , pos = {- 2524.42 , 1023.22 , 76.06 },
{ nr = 51 , pos = {- 2485.83 , 1091.29 , 55.23 },
{ nr = 52 , pos = {- 2383.68 , 1076.86 , 55.23 },
{ nr = 53 , pos = {- 2356.45 , 1133.71 , 54.94 },
{ nr = 54 , pos = {- 2429.24 , 1156.42 , 54.94 },
{ nr = 55 , pos = {- 2541.51 , 1162.47 , 54.95 },
{ nr = 56 , pos = {- 2585.56 , 1151.68 , 54.98 },
{ nr = 57 , pos = {- 2637.69 , 1171.23 , 55.08 },
{ nr = 58 , pos = {- 2626.41 , 1210.38 , 53.88 },
{ nr = 59 , pos = {- 2534.82 , 1186.31 , 42.25 },
{ nr = 60 , pos = {- 2457.28 , 1216.67 , 34.74 },
{ nr = 61 , pos = {- 2452.49 , 1311.11 , 15.65 },
{ nr = 62 , pos = {- 2431.65 , 1373.31 , 6.69 },
{ nr = 63 , pos = {- 2342.25 , 1367.50 , 6.68 },
{ nr = 64 , pos = {- 2232.19 , 1327.41 , 6.69 },
{ nr = 65 , pos = {- 2094.11 , 1325.37 , 6.69 },
{ nr = 66 , pos = {- 1993.40 , 1285.93 , 6.69 },
{ nr = 67 , pos = {- 1879.67 , 1316.89 , 6.70 },
{ nr = 68 , pos = {- 1904.04 , 1383.42 , 6.83 },
}
-- itd . itd .
-- Po czym tworzysz zmienn ? :
podstNr = 1
actualMarker = createMarker ( x0 , y0 , z0 , "checkpoint" , 2 , 255 , 0 , 0 , 130 )
addEventHandler ( "onMarkerHit" , root , function( he , md )
if getElementType ( he ) ~= "player" then return end
zp = nil
for k , v in ipairs ( koordy ) do
if podstNr == v . nr then
zp = v
end
end
if not zp then -- pod tym not zp dodajesz co ma sie stac , jak gosc wjedzie w ostatni marker , czyli jak zda :)
return
end
setElementPosition ( actualMarker , zp . pos [ 1 ], zp . pos [ 2 ], zp . pos [ 3 ])
podstNr = podstNr + 1
end
)
[ Dodano : 2015-06-25, 17:26 ]
I zeby Jak wejdze sie w Marker teleportowa?o to 1 JetPoint w Club i jak sie zda Aby da?o Prawko Prosze
Wysłany: 2015-06-25, 17:26
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
mixLoLmix2 , je?eli jeste? nowy skrypter, a napisa?e? taki skrypt to co? mi tu ?mierdzi.. Mniejsza z tym, Iksedowski Ci powiedzia?, co masz zrobi?. My w tym dziale pomagamy naprawi? b??dy, nie robi? skrypty. Pokombinuj sposobem Iksedowskiego.
Wysłany: 2015-06-25, 17:36
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
No ale ja nie rozumiem tego ze co ma zrobic jak dojdze do ko?ca bo ja ca?y czas tego szukam Jaka? Podpowiedz czy co? prosze
Tagi: prawojazdy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: