Wysłany: 2015-06-26, 13:35
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Witam Mam kod na PrawoJazdy.
I chca?bym aby Jak sie wejdze w Marker sie to zdawa?o Pomo?ecie?
KOD:
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 )
Wysłany: 2015-06-26, 13:54
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
Ok, to ja tez cos chce...
a tak serio, to jest temat od pomocy z jakim? problemem, a nie od napisania 90% kodu za Ciebie.
Skoro robisz sw?j serwer, to my?l co robisz, jakby ka?dy tworzy? serwer nie maj?c poj?cia o kodowaniu, to daleko by nie zaszli.
Da?em Ci prawie ca?y kod, wystarczy ruszy? g?ow? !
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-26, 13:58
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
No ale niewiem jak mam doda? ten Marker
Wysłany: 2015-06-26, 14:30
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
marker = createMarker(x, y, z, "cylinder", 2.0, 255, 0, 0, 130)
prosz? Ustaw sobie tylko xyz z /gp
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-26, 19:10
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Iksdekowski , Gdzie to da??
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Wysłany: 2015-06-26, 19:19
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
Ehh, proponuj? do 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-27, 10:55
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Iksdekowski , -,-
Ale gdzie w Kodzie aby da?o mi Auto Club na Kordy i aby ju? mozna by?o zdawa? bo si? na tym mecze
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Tagi: prawko
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: