Witam, mam problem gdy? mam wgrany plik na jailsapd, i nie dzia?a mi komenda /jail (oczywi?cie jestem zalogowany do sapd gdy wpisuje t? komend?), pomo?ecie?
mam gm PYSA
Kod:
[lua] local cub = createColCuboid(-2462.43, 3734.53, 300.57-1, 19, 15, 4)
function u(e)
getElementData(e, "dbid")
end
local cele = { -- x,y,z,int,dim
{1582.41, 1634.12, 10.83,0,0},
{1586.83, 1633.80, 10.83,0,0},
{1591.07, 1633.65, 10.83,0,0},
{1594.92, 1633.73, 10.83,0,0},
}
local x,y,z = -2446.84, 3777.43, 300.57
local function wypusc(plr)
setElementDimension(plr,0)
setElementInterior(plr,0)
setElementPosition(plr,x,y,z)
outputChatBox("Zosta?e? wypuszczony z wi?zienia.",plr, 255, 255, 255)
end
function getPlayerName2(plr)
if not plr then return end
return getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
end
local function sprawdz(plr)
if not plr then return end
if not getElementData(plr,"dbid") then return end
local x = exports.mysql:wykonaj("SELECT * FROM jail WHERE Serial=?",getPlayerSerial(plr))
if not x or #x < 1 then return end
local x2=exports.mysql:wykonaj("SELECT Termin FROM jail WHERE Serial=? and Termin < NOW()",getPlayerSerial(plr))
if x2 and #x2 > 0 then
exports.mysql:wykonaj("DELETE FROM jail WHERE Serial=?", getPlayerSerial(plr))
wypusc(plr)
return end
if isElementWithinColShape(plr,cub) then return end
setElementPosition(plr,cele[x[1].Cela][1],cele[x[1].Cela][2],c... |