addCommandHandler("zabierz.marihuane", function(plr,cmd,cel)
if getElementData(plr,"player:duty") == "SAPD" then
if not cel then
outputChatBox("U?ycie: /zabierz.marihuane <nick/ID>", plr,0, 0, 255)
return
end
local target=exports["tiyl-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("Nie znaleziono podanego gracza.", plr,0, 0, 255)
return
end
gracz=tonumber(gracz)
exports["tiyl-db"]:dbSet("UPDATE tiyl_gracze SET marihuana=? WHERE id=?",0,getElementData(target,"player:uid"))
setElementData(target, "marihuana", 0)
end
end)
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