addCommandHandler("dajprawko", function(plr,cmd,cel,pjB)
if getAdmin(plr,5) or getAdmin(plr,4) or getAdmin(plr,3) then
--local reason=table.concat({...}, " ")
if not cel then
outputChatBox("* U?ycie: /dajprawko <nick/ID>", plr)
return
end
local target=exports["pystories-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("MS♛ • Nie znaleziono podanego gracza.", plr, 51,102,255)
return
end
exports["pystories-db"]:dbSet("UPDATE pystories_users SET pjB=1 WHERE id=?", getElementData(target, "player:sid"))
triggerEvent("save:player",plr,target)
triggerEvent("load:player",plr,target)
setElementData(target,"player:license:pjB",pjB)
---setElementData(target,"player:license:pjB",pjB)
outputChatBox("MS♛ • Otrzyma?e?(a?) prawo jazdy kat.B, zr?b /reconnect", target)
outputChatBox ("MS♛ • Nada?e?(a?) Prawko B " ..getPlayerName(target):gsub("#%x%x%x%x%x%x",""),plr)
exports["pystories-db"]:dbSet("INSERT INTO qg_logi_cmd_adm (uid,moderator,cmd) VALUES (?,?,?)", getElementData(plr,"player:sid"), getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), "dajprawkoB " ..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."")
end
end)