Wysłany: 2019-10-17, 17:24
Yami
Mapper / Uczeń LUA
Wiek: 25 Na forum: 3059 dni Posty: 379
Piwa : 97
Siemka, mam problem z prawkiem na pysie/ogrpg.
Nie mam na koncie prawka a mog? jezdzic samochodami, wie kto? jak to naprawi??
Wysłany: 2019-10-17, 17:27
Szypki_exe
Wiek: 21 Na forum: 3239 dni Posty: 172
Piwa : 1426
Masz w??czony zas?b pystories-settings-prac/pystories-ustawienia-prac, lub co? w tym stylu?
Więcej szczegółów
Wystawiono 1 piw(a):Yami
Wysłany: 2019-10-17, 17:33
Yami
Mapper / Uczeń LUA
Wiek: 25 Na forum: 3059 dni Posty: 379
Piwa : 97
Wysłany: 2019-10-17, 17:39
Szypki_exe
Wiek: 21 Na forum: 3239 dni Posty: 172
Piwa : 1426
Sprawdz czy w evencie "onVehicleStartEnter" (Znajduje si? on w pystories-vehicles > s_vehbuy w 460 linijce w czystym pysie) posiadasz takie co? jak:
if exports [ "pystories-ustawienia-prac" ]: getVehicleLicense ( plr , "A" ) then
je?li takie co? posiadasz, to sprawd? w skrypcie odpowiadaj?cym za ustawienia prac czy funkcja faktycznie tam si? znajduje, lub czy przyk?adowo "pystories-db" nie jest jako "ogrpg-db"
Więcej szczegółów
Wystawiono 1 piw(a):Yami
Wysłany: 2019-10-17, 17:58
Yami
Mapper / Uczeń LUA
Wiek: 25 Na forum: 3059 dni Posty: 379
Piwa : 97
Tak w vehbuy znajduje si? to i tak samo z tym pystories-ustawienia-prac lecz jest taki b??d w db3 i daje tez kod od tego
funkcja z s_settings linijka 10:
function getVehicleLicense ( plr , type , czego , gowno , siki )
if getElementData ( plr , "player:license:pj" .. type .. "" ) ~= 1 then
if exports [ 'pystories-admin' ]: getAdmin ( plr , 3 ) then return end
outputChatBox ( "Nie posiadasz " .. czego .. " " .. type .. ", zdaj " .. siki .. "" , plr )
return true
end
funkcja z s_vehbuy linijka 507:
addEventHandler ( "onResourceStart" , resourceRoot , function() onRespawnVehicles ( _ , false ) end )
local categoryA ={[ 463 ] = true ,[ 462 ] = true ,[ 461 ] = true ,[ 581 ] = true ,[ 448 ] = true ,[ 468 ] = true ,[ 471 ] = true ,[ 521 ] = true ,[ 522 ] = true ,[ 523 ] = true }
local categoryB ={[ 602 ] = true ,[ 545 ] = true ,[ 496 ] = true ,[ 517 ] = true ,[ 401 ] = true ,[ 410 ] = true ,[ 518 ] = true ,[ 600 ] = true ,[ 527 ] = true ,[ 436 ] = true ,[ 589 ] = true ,[ 580 ] = true ,[ 419 ] = true ,[ 439 ] = true ,[ 533 ] = true ,[ 549 ] = true ,[ 526 ] = true ,[ 491 ] = true ,[ 474 ] = true ,[ 445 ] = true ,[ 467 ] = true ,[ 604 ] = true ,[ 426 ] = true ,[ 507 ] = true ,[ 547 ] = true ,[ 585 ] = true ,[ 405 ] = true ,[ 587 ] = true ,[ 409 ] = true ,[ 466 ] = true ,[ 550 ] = true ,[ 492 ] = true ,[ 566 ] = true ,[ 546 ] = true ,[ 540 ] = true ,[ 551 ] = true ,[ 421 ] = true ,[ 516 ] = true ,[ 529 ] = true ,[ 488 ] = true ,[ 460 ] = true ,
[ 469 ] = true ,[ 487 ] = true ,[ 510 ] = true ,[ 509 ] = true ,[ 481 ] = true ,[ 586 ] = true ,[ 472 ] = true ,[ 473 ] = true ,[ 493 ] = true ,[ 595 ] = true ,[ 484 ] = true ,[ 430 ] = true ,[ 453 ] = true ,[ 452 ] = true ,[ 446 ] = true ,[ 454 ] = true ,[ 485 ] = true ,[ 552 ] = true ,
[ 438 ] = true ,[ 574 ] = true ,[ 420 ] = true ,[ 525 ] = true ,[ 408 ] = true ,[ 596 ] = true ,[ 597 ] = true ,[ 427 ] = true ,[ 599 ] = true ,[ 490 ] = true ,[ 432 ] = true ,[ 528 ] = true ,[ 601 ] = true ,[ 407 ] = true ,[ 544 ] = true ,[ 470 ] = true ,[ 598 ] = true ,[ 588 ] = true ,
[ 532 ] = true ,[ 443 ] = true ,[ 486 ] = true ,[ 531 ] = true ,[ 543 ] = true ,[ 422 ] = true ,[ 583 ] = true ,[ 478 ] = true ,[ 605 ] = true ,[ 554 ] = true ,[ 530 ] = true ,[ 418 ] = true ,[ 572 ] = true ,[ 582 ] = true ,[ 536 ] = true ,[ 575 ] = true ,[ 534 ] = true ,
[ 567 ] = true ,[ 535 ] = true ,[ 576 ] = true ,[ 412 ] = true ,[ 402 ] = true ,[ 542 ] = true ,[ 603 ] = true ,[ 475 ] = true ,[ 449 ] = true ,[ 537 ] = true ,[ 570 ] = true ,[ 441 ] = true ,[ 464 ] = true ,[ 501 ] = true ,[ 465 ] = true ,[ 564 ] = true ,[ 568 ] = true ,[ 557 ] = true ,[ 424 ] = true ,[ 504 ] = true ,[ 495 ] = true ,[ 457 ] = true ,[ 539 ] = true ,[ 483 ] = true ,[ 571 ] = true ,[ 500 ] = true ,
[ 444 ] = true ,[ 556 ] = true ,[ 429 ] = true ,[ 411 ] = true ,[ 541 ] = true ,[ 559 ] = true ,[ 415 ] = true ,[ 561 ] = true ,[ 480 ] = true ,[ 560 ] = true ,[ 562 ] = true ,[ 506 ] = true ,[ 565 ] = true ,[ 451 ] = true ,[ 434 ] = true ,[ 558 ] = true ,[ 494 ] = true ,[ 555 ] = true ,[ 502 ] = true ,[ 477 ] = true ,[ 503 ] = true ,[ 579 ] = true ,[ 400 ] = true ,[ 404 ] = true ,[ 489 ] = true ,[ 505 ] = true ,[ 479 ] = true ,[ 442 ] = true ,[ 458 ] = true ,
[ 606 ] = true ,[ 607 ] = true ,[ 610 ] = true ,[ 590 ] = true ,[ 569 ] = true ,[ 611 ] = true ,[ 584 ] = true ,[ 608 ] = true ,[ 435 ] = true ,[ 450 ] = true ,[ 591 ] = true ,[ 594 ] = true }
local categoryC ={[ 403 ] = true ,[ 406 ] = true ,[ 413 ] = true ,[ 414 ] = true ,[ 416 ] = true ,[ 423 ] = true ,[ 428 ] = true ,[ 431 ] = true ,[ 433 ] = true ,[ 437 ] = true ,[ 440 ] = true ,[ 455 ] = true ,[ 456 ] = true ,[ 459 ] = true ,[ 482 ] = true ,[ 498 ] = true ,[ 499 ] = true ,[ 508 ] = true ,[ 514 ] = true ,[ 515 ] = true ,[ 524 ] = true ,[ 538 ] = true ,[ 573 ] = true }
addEventHandler ( "onVehicleStartEnter" , resourceRoot , function( plr , seat , jacked )
if seat == 0 then
if categoryA [ getElementModel ( source )] then
if exports [ "pystories-ustawienia-prac" ]: getVehicleLicense ( plr , "A" ) then
cancelEvent ()
end
elseif categoryB [ getElementModel ( source )] then
if exports [ "pystories-ustawienia-prac" ]: getVehicleLicense ( plr , "B" ) then
cancelEvent ()
end
elseif categoryC [ getElementModel ( source )] then
if exports [ "pystories-ustawienia-prac" ]: getVehicleLicense ( plr , "C" ) then
cancelEvent ()
end
end
end
end )
Wysłany: 2019-10-17, 18:03
Szypki_exe
Wiek: 21 Na forum: 3239 dni Posty: 172
Piwa : 1426
Podmie? swoj? funkcj? getVehicleLicense na t?
function getVehicleLicense ( plr , type )
if getElementData ( plr , "player:license:pj" .. type .. "" ) ~= 1 then
outputChatBox ( "* Nie posiadasz prawa jazdy kategorii " .. type .. ", zdaj je w urz?dzie miasta" , plr , 255 , 0 , 0 )
return true
end
local result = exports [ "pystories-db" ]: dbGet ( "SELECT * FROM pystories_punish WHERE serial=? AND type=? AND active=1 AND time>NOW()" , getPlayerSerial ( plr ), tostring ( type ))
if result and #result > 0 then
v = result [ 1 ]
outputChatBox ( "* Posiadasz zawieszone prawo jazdy do " .. v . time .. " za " .. v . reason , plr )
return true
else
exports [ "pystories-db" ]: dbSet ( "DELETE FROM pystories_punish WHERE serial=? AND type=? AND active=1 AND time<NOW()" , getPlayerSerial ( plr ), tostring ( type ))
return false
end
end
Pochodzi ona z podstawowego pysa, nie wiem sk?d t? wzi??e?, i nie ma co si? dziwi? ?e nie dzia?a
Więcej szczegółów
Wystawiono 1 piw(a):Yami
Wysłany: 2019-10-17, 18:11
Yami
Mapper / Uczeń LUA
Wiek: 25 Na forum: 3059 dni Posty: 379
Piwa : 97
Dzi?ki Wielkie, wszystko dzia?a.
Do zamkni?cia
Tagi: prawko
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: