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: newmode
1. mysql newmode
Witajcie . Ma ktos moze po??czenie mysql do gm newmode ? Jezeli tak to moge prosic o link ?
2. Nie działa Ban, prawko newMode
Witam ot?? ostatni si? d?ugo trudz? nad banami i prawkiem, wszystko dzia?a kick, warn itd, ale co nie chce dzia?a? ban ani prawko.

[lua]
function zbanuj(plr, cmd, target, t1, t2, ...)
if not getElementData(plr, "duty") then return end
if not target or not t1 or not t2 or not ... then
return
end
local player = findPlayer(plr, target)
if not player then return end
local text = table.concat({...}, ", ")
local ts_start = getTimestamp()
if t1 == "m" then
local t2 = tonumber(t2)
local ts_final = ts_start + t2*60
local time = getRealTime(ts_final)
local txt = getPlayerName(player).." zosta? zbanowany przez "..getPlayerName(plr).." na czas "..t2.." minut z powodu "..text
triggerClientEvent(getRootElement(), "notiAdmin", getRootElement(), txt)
outputConsole(txt)
local user_id = getElementData(player, "dbid")
local user_serial = getPlayerSerial(player)
local final_date = (time.year+1900).."-"..(time.month+1).."-"..(time.monthday).." "..(time.hour+1)..":"..(time.minute)..":"..(time.second)
exports.mysql:wykonaj("INSERT INTO bany SET nick=?, serial=?, ip=?, data=?, admin=?", getPlayerName(player), getPlayerSerial(player), getPlayerIP(player), final_date, getPlayerName(plr))
kickPlayer(player, "Po??cz si? ponownie")
elseif t1 == "h" then
local t2 = tonumbe...