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

Wysłany: 2015-06-24, 21:08


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

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 thePlayerseatjacked ) 
if seat == 0 then 
local playerName getAccountName getPlayerAccount thePlayer ) ) 
isObjectInACLGroup 'user.'..playerNameaclGetGroup "PJKB" ) )

if ( prawojazdykatb[getElementModel(source)] ) and isObjectInACLGroup 'user.'..playerNameaclGetGroup "PJKB" ) ) then 
else

cancelEvent()

outputChatBox ("Panie! Potrzebne ci Prawko Kart.B"thePlayer, [color=#00ffe0]0,0,0[/color] )
end
end
end 
addEventHandler 'onVehicleStartEnter'rootprawoKatB )

function dajPrawkoB(thePlayercommandNameaccountNamelocal playerName getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup "user." .. playerNameaclGetGroup "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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-24, 21:11


Micles258

Uczeń lua






Wiek: 25
Na forum: 4008 dni
Posty: 48

Piwa: 437

Respekt: 60

Ostrzeżeń: 100%
mixLoLmix2,
DB3?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-24, 21:36


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

Nierozumiem

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-24, 21:38


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Wpisz na serwerze komende /debugscript 3 i podaj blad, ktory wyskoczyl

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-24, 22:02


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3


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 thePlayerseatjacked ) 
if seat == 0 then 
local playerName getAccountName getPlayerAccount thePlayer ) ) 

if ( prawojazdykatb[getElementModel(source)] ) and not isObjectInACLGroup 'user.'..playerNameaclGetGroup "PJKB" ) ) then 

cancelEvent()
outputChatBox ("Panie! Potrzebne ci Prawko Kart.B"thePlayer)
end
end
end 
addEventHandler 'onVehicleStartEnter'rootprawoKatB )

function dajPrawkoB(thePlayercommandNameaccountNamelocal playerName getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup "user." .. playerNameaclGetGroup "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(plrcmdaccountName)
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
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 09:40


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 11:34


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

Pewnie musisz dodac ten skrypt do ACL Admin

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 11:57


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 12:48


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

Do tablicy wrzucasz swoje koordy np.


koordy = {
{nr 1pos = {xyz}},
{nr 2pos = {xyz}},
}

--itditd.
--Po czym tworzysz zmienn? :

podstNr 1

actualMarker createMarker(x0y0z0"checkpoint"225500130)

addEventHandler("onMarkerHit"root, function(hemd)
if getElementType(he) ~= "player" then return end
zp nil
for kv 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 stacjak gosc wjedzie w ostatni markerczyli jak zda :)
 return
 end
setElementPosition(actualMarkerzp.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
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 15:47


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 16:03


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

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
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 16:10


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

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
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 16:24


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

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 thePlayerseatjacked ) 
if seat == 0 then 
local playerName getAccountName getPlayerAccount thePlayer ) ) 

if ( prawojazdykatb[getElementModel(source)] ) and not isObjectInACLGroup 'user.'..playerNameaclGetGroup "PJKB" ) ) then 

cancelEvent()
outputChatBox ("Panie! Potrzebne ci Prawko Kart.B"thePlayer)
end
end
end 
addEventHandler 'onVehicleStartEnter'rootprawoKatB )

function dajPrawkoB(thePlayercommandNameaccountNamelocal playerName getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup "user." .. playerNameaclGetGroup "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(plrcmdaccountName)
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 1pos = {-1905.611290.056.76}},
{nr 2pos = {-1828.831356.956.60}},
{nr 3pos = {-1801.001276.9013.07},
{nr 4pos = {-1885.841227.1334.55},
{nr 5pos = {-1941.331178.8944.86},
{nr 6pos = {-1969.551107.2354.74},
{nr 7pos = {-2069.071079.5955.14},
{nr 8pos = {-2268.201079.1755.15},
{nr 9pos = {-2348.611123.7654.83},
{nr 10pos = {-2442.421158.1454.85},
{nr 11pos = {-2575.091168.0854.85},
{nr 12pos = {-2568.041101.7855.10},
{nr 13pos = {-2439.441089.4655.15},
{nr 14pos = {-2292.801052.6455.15},
{nr 15pos = {-2094.181054.0655.15},
{nr 16pos = {-2094.181054.0655.15},
{nr 17pos = {-1881.501153.1544.85},
{nr 18pos = {-1860.261252.5423.84},
{nr 19pos = {-1803.111266.7413.43},
{nr 20pos = {-1707.381321.166.60},
{nr 21pos = {-1833.511379.946.60},
{nr 22pos = {-1939.191378.146.75},
{nr 23pos = {-1981.501378.716.75},
{nr 24pos = {-2013.441337.096.77},
{nr 25pos = {-2083.051327.186.69},
{nr 26pos = {-2186.661336.196.69},
{nr 27pos = {-2311.691359.856.69},
{nr 28pos = {-2450.071380.256.69},
{nr 29pos = {-2577.331355.556.70},
{nr 30pos = {-2683.001292.856.70},
{nr 31pos = {-2820.131278.905.12},
{nr 32pos = {-2884.181163.9212.27},
{nr 33pos = {-2883.491068.4730.95},
{nr 34pos = {-2859.42994.8940.72},
{nr 35pos = {-2827.05924.4943.56},
{nr 36pos = {-2828.54850.1343.55},
{nr 37pos = {-2867.49779.8833.96},
{nr 38pos = {-2838.36698.0523.90},
{nr 39pos = {-2824.58576.645.10},
{nr 40pos = {-2853.00476.163.81},
{nr 41pos = {-2797.39465.104.99},
{nr 42pos = {-2691.22466.244.43},
{nr 43pos = {-2597.79467.0914.13},
{nr 44pos = {-2526.27501.7014.11},
{nr 45pos = {-2525.24602.6921.65},
{nr 46pos = {-2523.49686.8327.47},
{nr 47pos = {-2524.15784.9045.60},
{nr 48pos = {-2524.67863.8156.02},
{nr 49pos = {-2525.22945.4965.38},
{nr 50pos = {-2524.421023.2276.06},
{nr 51pos = {-2485.831091.2955.23},
{nr 52pos = {-2383.681076.8655.23},
{nr 53pos = {-2356.451133.7154.94},
{nr 54pos = {-2429.241156.4254.94},
{nr 55pos = {-2541.511162.4754.95},
{nr 56pos = {-2585.561151.6854.98},
{nr 57pos = {-2637.691171.2355.08},
{nr 58pos = {-2626.411210.3853.88},
{nr 59pos = {-2534.821186.3142.25},
{nr 60pos = {-2457.281216.6734.74},
{nr 61pos = {-2452.491311.1115.65},
{nr 62pos = {-2431.651373.316.69},
{nr 63pos = {-2342.251367.506.68},
{nr 64pos = {-2232.191327.416.69},
{nr 65pos = {-2094.111325.376.69},
{nr 66pos = {-1993.401285.936.69},
{nr 67pos = {-1879.671316.896.70},
{nr 68pos = {-1904.041383.426.83},
}

--itditd.
--Po czym tworzysz zmienn? :

podstNr 1

actualMarker createMarker(x0y0z0"checkpoint"225500130)

addEventHandler("onMarkerHit"root, function(hemd)
if getElementType(he) ~= "player" then return end
zp nil
for kv 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 stacjak gosc wjedzie w ostatni markerczyli jak zda :)
 return
 end
setElementPosition(actualMarkerzp.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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 17:26


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-06-25, 17:36


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

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

Postaw piwo autorowi tego posta
 

 
Tagi: prawojazdy
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » PrawoJazdy 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