Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: prawka
1. Proble? z zabieraniem prawka
Witam serdecznie, co mo??e by?? nie tak z zpj poniewa?? gdy chce komus da? prawko to pisze ,,Nie mo?na ?abrac prawa jazdy graczowi o SID 1"


addCommandHandler("zpj", function(plr,cmd,cel,time,type,...)
if getAdmin(plr,3) or getAdmin(plr,4) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,5) then
local reason=table.concat({...}, " ")
if not cel or not tonumber(time) or not type or not reason then
exports['al_notify']:addNotification(plr, 'admin', 'Komendy Administracyjne', "/zpj [nick/id] [czas] [m/h/d] [powod]", {25, 175, 255})
return
end
local target=exports["dmta_core"]:findPlayer(plr,cel)
if not target then
exports['al_notify']:addNotification(plr, 'admin', 'Komendy Administracyjne', "Nie znaleziono gracza", {25, 175, 255})
return
end
if isPedInVehicle(target) then
removePedFromVehicle(target)
end


if getAdmin(target, 5) then
target = plr
end


if getElementData(target,"player:uid") == 1 or 2 then exports['al_notify']:addNotification(plr, 'admin', 'Komendy Administracyjne', "Nie można zabrać prawo jazdy graczowi o SID: 1 !", {25, 175, 255}, plr) return end
result=pobierzDate(type,time)
exports["dmta_db"]:dbSet("INSERT INTO dmta_punish (serial,reason,time,type) VALUES (?,?,?,?)", getPlayerSerial(target), reason, result, "A")
exports["dmta_db"]:dbSet("INSERT INTO dmta_punis...
2. Zapis prawka
Witaj mam problem, gdy? nie dzia?a mi zapis prawka jest w stanie kto? pom?c?

[ Dodano : 2022-09-01, 21:53 ]
s.lua
[lua]peds = {}

addEvent("license:do",true)
addEventHandler("license:do", resourceRoot, function(plr, selected)
local veh=nil
if selected == "A" then veh=createVehicle(586, -2021.41, -97.85, 34.94, 360.0, 360.0, 90.4)
elseif selected == "B" then veh=createVehicle(436, -2021.41, -97.85, 34.94, 360.0, 360.0, 90.4)
elseif selected == "C" then veh=createVehicle(413, -2021.41, -97.85, 34.94, 360.0, 360.0, 90.4)
end
if not veh then return end
setElementData(veh,"vehicle:mileage", 16442)
setElementData(veh,"vehicle:fuel", 100)
setElementData(veh,"vehicle:bak", 100)
setElementData(veh,"vehicle:lic", true)
triggerClientEvent("kolizjaPojazd", plr, veh)
setElementInterior(plr, 0)
local pedzik = createPed(71, 0, 0, 0)
peds[veh] = pedzik
warpPedIntoVehicle(peds[veh],veh,1)
warpPedIntoVehicle(plr,veh)
triggerClientEvent(plr, "license:start", resourceRoot, selected, veh)
end)

addEvent("takePlayerMoney",true)
addEventHandler("takePlayerMoney", resourceRoot, function(money)
if getPlayerMoney(source) > money then
takePlayerMoney(source, money)
else
end
end)

addEventHandler("onPlayerQuit", root, function()
local veh=getPedOccupiedVehicle(source)
if not veh then return end
if getVehi...
3. Mapa prawka
Witam u?ytkownikow przychodz? z problemem z prawkiem. Wgra?em paczke PSRPG na serwer i doda?em prawko z pysa, poniewa? przenosz? rozgrywk? z LS do SF i prawko zaczyna si? w SF a robi si? to na LS, czy kto? wie jak napisa? ?e jak sko?czy si? prawko to ?eby tepa?o na SF, bo zlikwidowa?em prawko z PSRPG i nadal jest trasa w LS. Pomo?e kto? z tym? Stawiam piwko
4. kłopot z zapisem prawka broni itp
Siemano od jakiegos miesi?ca wraz z ekip? tworzymy serwer dla graczy, nie jest to autorski serwer jest on budowany z skryptow ktore mozna znale?? w internecie tylko s? one edytowane. Od pocz?tku trudzimy si? z probl zapisu statystyk graczy czyli prawka,broni,przegranego czasu na serwerze pieniedzy, nie mozemy sobie z tym poradzi? mo?e ma kto? jaki? skrypt na zapis Prawa jazdy kat. B,C itd, skrypt na zapis broni, i czasu przegranego na serwerze. lub ktos wie jak to naprawic z g?ry dzieki <3
5. prawka
Czesc

Potrzebuj? kodu ktory sprawdzi czy w bazie danych w tabeli uzytkownikow pjB ma wartosc 1

pomoze ktos?
6. Nie działa teleport po zrobieniu prawka
Witam mam problem, gdy? po zrobieniu prawa jazdy nie teleportuje mnie poza plac manewrowy.

[lua]function finishLicense(value)
if isElement(licenseMarker) and licenseMarker then
destroyElement(licenseMarker)
licenseMarker=nil
end
if isElement(licenseBlip) and licenseBlip then
destroyElement(licenseBlip)
licenseBlip=nil
end
if value == true then
licenseCategory=nil
licenseVehicle=nil
licenseMarker=nil
licenseTarget=nil
licenseBlip=nil
end
end
addEvent("license:finish",true)
addEventHandler("license:finish", resourceRoot, finishLicense)

function showMarker()
local pos=categoryPositions[licenseCategory][licenseTarget]
if licenseCategory ~= "L" then
licenseMarker=createMarker(pos[1], pos[2], pos[3], "checkpoint", 1.5, 0, 0, 255, 155)
else
licenseMarker=createMarker(pos[1], pos[2], pos[3], "ring", 3.5, 0, 0, 255, 155)
end
licenseBlip=createBlip(pos[1], pos[2], pos[3], 0, 1.15, 0, 255, 0)
if categoryPositions[licenseCategory][licenseTarget+1] then
e=categoryPositions[licenseCategory][licenseTarget+1]
setMarkerTarget(licenseMarker, e[1], e[2], e[3])
end
addEventHandler("onClientMarkerHit", licenseMarker, function(el,md)
if not md or el~=localPlayer then return end
if not getPedOccupiedVehicle(el) then return end
if licenseTarget < #categoryPositions[licenseCategory] then
--local sound=playSound(":ogrpg-misc/misc/point.wav")
...
7. Auto od prawka
Witam szukalem ostatnio jak zrobic auto do prawka w sensie L na daszku oraz zeby kazdy mogl przenikac przez to auto lecz nie moge tego znalezc przesylam skrypt na prawko
c_category
[lua]
--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]

licenseCategory={
{"A", "Pojazdy jednośladowe", 30000},
{"B", "Samochody osobowe", 0},
{"C", "Pojazdy dostawcze", 50000},
--{"L", "Samoloty osobowe(w trakcie prac)", 0},
}

licenseCategory2={
{"L", "Maszyny Powietrzne", 500000},
}
[/lua]
s_zdawanie
[lua]
--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]

local licenseBlip
local licenseTarget
local licenseMarker
local licenseVehicle
local licenseCategory

local categoryPositions={
["A"]={
{2115.80, -1762.90, 13.40},
{2135.09, -1752.26, 13.40},
{2175.67, -1752.17, 13.38},
{2184.91, -1740.53, 13.38},
{2207.03, -1732.19, 13.41},
{2215.90, -1768.81, 13.36},
{2218.52, -1855.57, 13.36},
{2218.59, -1894.08, 13.36},
{2185.17, -1894.39, 13.47},
{2092.06, -1894.47, 13....
8. Brak prawka na pojazdy publiczne
Witam mam problem poniewa? nie da si? wsi??? do pojazd?w publicznych.
Pisze ?e nie posiadam prawka kategorii A
[code]local bikesPoints={
{462, -2697.83, -2.27, 3.93, 359.5, 360.0, 181.0},
{462, -2697.88, 0.08, 3.93, 359.5, 360.0, 181.0},
{462, -2697.89, 2.83, 3.93, 359.5, 0.0, 178.7},
{462, -2697.84, 5.15, 3.93, 359.5, 360.0, 178.7},
{462, -2697.72, -7.85, 3.93, 359.5, 0.0, 1.5},
{462, -2697.73, -10.30, 3.93, 359.5, 360.0, 358.8},
{462, -2697.79, -12.89, 3.93, 359.5, 0.0, 358.8},
{462, -2697.68, -15.47, 3.93, 359.5, 360.0, 1.4},
{462, -2016.98, 451.58, 34.77, 359.5, 0.0, 359.7},
{462, -2016.99, 449.15, 34.77, 359.5, 360.0, 359.7},
{462, -2017.00, 446.80, 34.77, 359.5, 0.0, 359.7},
{462, -2017.01, 444.31, 34.77, 359.5, 360.0, 359.7},
{462, -2017.02, 441.89, 34.77, 359.5, 360.0, 359.7},
{462, -2017.04, 439.38, 34.77, 359.5, 360.0, 359.7},
{462, -1522.09, 494.62, 6.77, 359.4, 0.0, 88.4},
{462, -1522.36, 496.23, 6.77, 359.4, 0.0, 88.4},
{462, -1522.69, 499.76, 6.79, 359.5, 360.0, 88.4},
{462, -1522.34, 498.18, 6.78, 359.5, 0.0, 95.0},
{462, -1785.04, 946.91, 24.49, 359.5, 0.0, 90.6},
{462, -1785.46, 949.25, 24.49, 359.5, 360.0, 90.6},
{462, -1785.48, 951.14, 24.49, 359.5, 360.0, 90.6},
{462, -1708.45, 33.73, 3.15, 359.2, 0.0, 317.7},
{462, -1712.04, 29.79, 3.15, 359.5, 0.0, 317.7},
{462, -1716.68, 24.69, 3.15, 359.5, 0.0, 317.7},
{462, 2101.08, 2223.17, 10.42, 359.47, 0.00, 92.35},
{462, 2097.03, 2223.00, 10.4...
9. Zabieranie prawka nie dziala
Witam nie dziala mi zabieranie prawka niby w bazie sie zapisuje ale nadal mozna wsiadac do auta pystories-core i pystories-admin dodane do acl


tabela bazy sql
[quote]
--
-- Struktura tabeli dla tabeli `pystories_punish`
--

CREATE TABLE `pystories_punish` (
`kolejnosc` int(11) NOT NULL,
`serial` text NOT NULL,
`reason` text CHARACTER SET utf8 NOT NULL,
`time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`type` text NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1; [/quote]




funckja zpj


[quote]
addCommandHandler("zpj", function(plr,cmd,cel,time,type,...)
if getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,4) or getAdmin(plr,5) then
local reason=table.concat({...}, " ")
if not cel or not tonumber(time) or not type or not reason then
outputChatBox("#ff0000✘ #ffffff- /zpj <ID> <czas> <m/h/y/w> <pow?d>", plr, 255, 252, 51,true)
return
end
local target=exports["pystories-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("#ff0000✘ #ffffff- Nie znaleziono podanego gracza.", plr, 255, 252, 51,true)
return
end
if isPedInVehicle(target) then
removePedFromVehicle(target)
end
--if getElementData(target,"player:sid") == 2 then outputChatBox("* Nie mo?na zabra? prawo jazdy graczowi o SID: 1 !",plr) return end
...
10. teleport po zakonczeniu prawka
Mo?e mnie kto? nakierowa? jak zrobi? ?eby po wjechaniu motorem/samochodem W ostatni punkt Prawka teleportowa?o go do interioru np ?
11. wyciszanie,prawka
witam jak zabieram prawko, wyciszam, daje bana, kickuje to to niedzia?a mam w acl admin plugin odpowiedzialny za to ale to nie dzia?a
12. Posiadasz zawieszone licencje Naprawa prawka
Witam posiadam prawko z GM Your Pseudol v1-2 i jest taki problem z jak podchodz? do zdawania to wy?wietla si? "Posiadasz zawieszone licencje" W db3 jak i w konsoli nic nie ma.
13. serverside zdawanie prawka
Witam ot?? gdy chc? rozpocz?? kurs na prawa jazdy nie mog?, nic si? nie respi oraz wyskakuje b??d w DB3
[lua]ERROR: Client (FajnyNick) triggered serverside event license:do, but event is not added serverside[/lua]

2erro w DB3
[lua]Loading script failed ogrpg-offices/lincense/s_zdawanie.lua:79: unexpected symbol near')'[/lua]

kod
c_category

[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]

licenseCategory={
{"A", "Pojazdy jednośladowe", 350000},
{"B", "Samochody osobowe", 0},
{"C", "Pojazdy dostawcze", 1000000},
--{"L", "Samoloty osobowe(w trakcie prac)", 0},
}

licenseCategory2={
{"L", "Maszyny Powietrzne", 500000},
}[/lua]

c_license


[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]

mojeW,mojeH = 1280, 1024
sW,sH = guiGetScreenSize()
w, h = (sW/mojeW), (sH/mojeH)

local sx, sy = guiGetScreenSize ()

prawko = false

function mysz(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
...
14. nie dziala zabieranie prawka, bany
Witam, nie dzialaja mi zabieranie prawka, bany
15. Usuwanie busa po dostaniu prawka
Witam, ot?? mam taki problem ?e nie wiem jaki kod da? do tego aby usuwa?o oraz zaka?cza?o prace kiedy dostaniemy zakaz prowadzenia A/B/C.
Wiem ?e to jest bardzo banalne ale dzi? co? nie mam do tego g?owy stawiam piwko :D
16. Zapis prawka
Siema, robi? kod na zapis prawa jazdy.

Jak zrobi?em t? funkcj? pod komend?, to dzia?a?o, ale jak zmieni?em pod event handler, to nie dzia?a.
Kod:
function zapisPojazd()
    
local kurcze getElementData(pojazdek"auto:id")
    
local newXnewYnewZ getElementPosition(pojazdek)
    
exports["Malwa-DB"]:wykonaj("UPDATE `pojazdy` SET `x` = ?, `y` = ?, `z` = ? WHERE `pojazdy`.`id` = ?"newXnewYnewZkurcze)
end
addEventHandler
("onClientRender"getRootElement(), zapisPojazd)
17. Nie działają prawka [itsyourword]
A wi?c tak na moim pseudolku na paczce itsyourword nie dzia?aj? prawka i tylko one w acl doda?em resources.* i wgra?em modu?y, a i tak nic. A o to debugscript 3
18. Prawo Jazdy - Nie mogę wsiąść jako pasażer bez prawka
Cze??. Mam taki problem z kodem mianowicie zrobi?em tak, aby nie mo?na by?o wsi??? do pojazdu gdy si? nie ma prawa jazdy (r?wnie? zrobi?em ?eby wyrzuca?o z pojazdu jak kto? jakim? cudem wsi?dzie). Ale gdzie? pope?ni?em b??d i podczas pr?by wej?cia do pojazdu jako pasa?er bez prawka na G jest to nie mo?liwe. Prosz? o pomoc, dam piwo i repk?!

[lua]addEventHandler("onClientVehicleEnter",getRootElement(),
function (player,seat)
if player ~= localPlayer then return end
if seat ~= 0 then return end
if getElementData(localPlayer, "VehSchool") == source then return end
if getElementData(source, "OwnerSchool") then
if getElementData(source, "OwnerSchool") ~= player then
setPedControlState(player, "enter_exit", true )
outputChatBox("To nie jest tw?j pojazd!",255,64,0,true)
return
end
end
for _,src in pairs(id_Lic) do
if getElementModel(source) == src[1] then
if getElementData(player, src[2]) ~= true then
outputChatBox("Nie posiadasz uprawnie? dla tej kategorii pojazdu!",255,64,0,true)
setTimer(function()
setPedControlState(player, "enter_exit", true )
end,50,10)
end
end
end
end
)

addEventHandler("onVehicleStartEnter",getRootElement(),
function (player,seat, jack, door)
if getElementData(player, "VehSchool") == sourc...
19. Prawka OGRPG naprawde beka
Witam mam wgrany modu? itp all dzia?a ale daje Loso np raz kat C a potem kat b nie albo raz Kat A potem c i nadal mo?na wsiada? co? tam restartowa?em i normalnie dzia?a?o Otrzyma?e?(a?) zakaz prowadzenia pojazd?w od Remi
sry limit dam ponizej
20. Nie działa ban,kick ,zabieranie prawka i licki
Siemka nie dzia?a mi ban,kick, zabieranie loicki i prawka jak daje bana nie wywala gracza z serwera i go nie banuje z kickiem tak samo nie wywala typa z serwa oczywi?cie wszystko wyskakuje u g?ry ?e gracz zosta? wyrzucony z serwera itp albo ?e zosta? zbanowany.a z lick? i prawkiem jest ?e dam prawko a gracz mo?e spowrotem wej?? do auta

PS GM IT's Your World[color=red][/color]
21. Nie działa ban,kick ,zabieranie prawka i licki
na banie i kicku wyskakuje ?e gracz zostaa? wyrzucony z serwera z powodu animki.Lecz nie wyrzuca go z serwera tak samo jest z bane wyskakuje ?e gracz zosta? zbanowany ale ca?y czas jest na serwie.

Z licka i prawkiem jest tak samo gracza wyrzuca z pojazdu ale mo?e do niego wej?? co mam robic pomocy.
22. Zabieranie Prawka
Witam zabieranei prawka mi nie dziala tutaj podaje kod

[lua]ddCommandHandler("zpj", function(plr,cmd,cel,time,rodzaj,...)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
local reason=table.concat({...}, " ")
if not cel or not tonumber(time) or not rodzaj or not reason then
outputChatBox("* U?ycie: /zpj <nick/ID> <czas> <jednostka: m/h/d/w> <pow?d>", plr)
return
end
local target=exports["ogrpg-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("* Nie znaleziono podanego gracza.", plr, 255, 0, 0)
return
end
local query=string.format("SELECT * FROM ogrpg_punish WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","prawko", getPlayerSerial(target))
local result=exports["ogrpg-db"]:pobierzWyniki(query)
if (result) then
return outputChatBox(" Gracz Posiada zawieszone prawo jazdy do "..result["time"]..", za: "..result["reason"], plr, 255, 0, 0)
else
exports["ogrpg-db"]:dbSet("DELETE FROM ogrpg_punish WHERE type=? AND active=1 AND serial=?", "prawko", getPlayerSerial(plr))
end
if isPedInVehicle(target) then
removePedFromVehicle(target)
end
if tonumber(time) <= 0 then return end
reason = reason.." |od "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").....
23. tesla Prawka bany
Siema Nwm Jaki plik w pace itsa to tesla wgrywam plik tesla ale nie ma podmianki XD a jak kto? ma da Skype pazdaix Lub tu i kicki nie dzia?ajo itp mam paczke Your adwenture Wszystko dzia?a ale kicki nie i bany i zpj Jest na ekranie ale mozna wsiadac i nie kickuje Dodaje do admin user.dutyadmin i resureces.dutyadmin i core i nic XD nawet offices
24. Zabieranie prawka
Witam. Dzi? zobaczy?em ?e komend? jak? mam na zabierania prawka nie dzia?a. Ale w jakim sensie?
Chodzi o to gdy wpisze /prawko (tutaj nick np.) tester to na chacie ujawnia si? informacja ?e:

ReseT_ traci prawo do jazdy przez tester, powodem: test.

a powinno by?:

tester traci prawo do jazdy przez ReseT_, powodem: test.

Kod strona serwera:
[lua]
addCommandHandler("prawko", function(plr, cmd, cel, ...)
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(plr)), aclGetGroup("Administrator")) then
local target = findPlayer(plr, cel)

if (not target) then
outputChatBox("Nie znaleziono takiego gracza online!", getRootElement(), 253, 0, 0)
return
end

local tresc = table.concat(arg, " ")
local pojazd = getPedOccupiedVehicle(target)

if (string.len(tresc)<=1) then
outputChatBox("Nie podano powodu zabrania prawa do jazdy. Wpisz ponownie /prawko [nick] [pow?d].", getRootElement(), 253, 0, 0)
return
end

if (getPedOccupiedVehicle(target)) then
removePedFromVehicle(target)
end
local konto = getPlayerAccount(plr)
setAccountData(konto, "prawojazdy", false)
outputChatBox(getPlayerName(plr) .." traci prawo do jazdy przez " .. getPlayerName(target) .. ", powodem: " .....
25. Zabieranie prawka
Witam, pr?buj? przerobi? ten skrypt na zabieranie prawa jazdy, ale mi nie wychodzi :( Tak on wygl?da:

addCommandHandler("zpj", function(plrcmdcel, ...)
    if 
isObjectInACLGroup("user."..getAccountName(getPlayerAccount(plr)), aclGetGroup("RCON")) then
        local target 
findPlayer(plrcel)
        
        if (
not targetthen
            outputChatBox
("Nie znaleziono gracza o nicku: " .. cel,plr )
            return
        
end
        
        local tresc 
table.concat(arg" ")
        
local pojazd getPedOccupiedVehicle(target)
        
        if (
string.len(tresc)<=1then
            outputChatBox
("Wpisz pow?d zabrania prawa jazdy."plr)
            return
        
end
        
        
if (getPedOccupiedVehicle(target)) then
            removePedFromVehicle
(target)
        
end

        setElementData
(target"prawojazdy"0)
        
outputChatBox("Otrzyma?e? zakaz prowadzenia pojazd?w od: ".. getPlayerName(plr) ..""target25500)
        
outputChatBox(getPlayerName(target) .. " otrzyma? zakaz prowadzenia pojazd?w, nadaj?cy: " .. getPlayerName(plr) .. ", pow?d: " .. trescgetRootElement(), 25500)
    
end
end
)


I wyskakuje taki b??d:

Kod:

[2016-02-19 21] ERROR: [testowane]/zpj/s.lua:3: attempt to call global 'findPlayer' (a nil value)



Jakie? pomys?y?
26. MYSQL - Sprawdzanie prawka
No i jestem znowu, wcze?niej mia?em problem z nadawaniem prawka, teraz mam problem z jego sprawdzaniem..

Kod:
[lua]katA = {[461]=true, [462]=true, [463]=true, [468]=true, [521]=true, [522]=true,[523]=true, [581]=true, [586]=true
}
katC = {[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
}
katB = {[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, [400]=true, [404]=true, [405]=true, [409]=true, [413]=true, [418]=true, [420]=true, [421]=true, [426]=true, [428]=true, [431]=true, [438]=true, [440]=true, [442]=true,
[445]=true, [458]...
27. mysql, zabieranie prawka
Cze??, robie komende na zabieranie prawka lecz mam pewien problem..
Kod:
[lua]addCommandHandler("zabierz.prawko", function(plr,cmd,cel,...)
if onCheckAdmin(plr,1) or onCheckAdmin(plr,2) or onCheckAdmin(plr,3) then
local reason=table.concat({...}, " ")
if not cel or not reason then
outputChatBox("* U?ycie: /zabierz.prawko <nick/ID> <pow?d>", plr)
return
end
local target=exports["og-core"]:findPlayer(plr,cel)
local target2=getPlayerName(target)
if not target then
outputChatBox("* Nie znaleziono podanego gracza.", plr, 255, 0, 0)
return
end
if isPedInVehicle(target) then
removePedFromVehicle(target)
end
outputChatBox("Gracz "..getPlayerName(target).." otrzyma?/a zakaz prowadzenia pojazd?w od "..getPlayerName(plr).." za "..reason.."")
outputChatBox("Prawo jazdy mo?esz zda? na nowo w urz?dzie",target)
exports["og-db"]:setRekord("UPDATE 'og_users' SET 'pjC' = 0 WHERE 'login' = '"..target2.."'")
exports["og-db"]:setRekord("UPDATE 'og_users' SET 'pjB' = 0 WHERE 'login' = '"..target2.."'")
exports["og-db"]:setRekord("UPDATE 'og_users' SET 'pjA' = 0 WHERE 'login' = '"..target2.."'")
end
end)[/lua]
DB3:
[code]
dbExec failed; (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL s...
28. [DM] XyzzyRp Skąd wziąć pojazd do "L" czyli do zda
Tak jak w tytule kluczyki do pojazdu mam ale nie wiem jak zrespi? pojazd lub jak go zdoby? polec? piwka :piwo: , dzi?ki :p
na Gamemodzie XYZZYRP