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: minimalny
1. Minimalny czas AJ
Witam! Mam problem tego typu i? chc? doda? zabezpieczenie do tego skryptu, polegaj?ce na tym ?e minimalny czas uwi?zienia to 10 minut.

Wklei?em co? takiego, lecz teraz wog?le nie mo?na uwi?zi? nikogo gdy typ to minuta.

[quote]if #ile <= 10 and typ=="m" then
outputChatBox("Minimum 10 minut", plr, 255, 255, 255)return
end[/quote]

Tutaj reszta kodu:

[quote]function ajotceju(plr,cmd,cel,ile,typ,...)
if exports["dutyadmin"]:getAdmin(plr, 4) then
if not cel or not ile or not typ or not ... then
outputChatBox("U?ycie: /aj <gracz/ID> <czas> <m/h/d/y> <pow?d>", plr, 255, 255, 255)
return
end
local zaco=table.concat({...}, " ")
local target=exports["ogrpg-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("Nie znaleziono podanego gracza.", plr, 255, 255, 255)
return
end
if #ile <= 10 and typ=="m" then
outputChatBox("Minimum 10 minut :) ", plr, 255, 255, 255)return
end
cela=1
if typ=="m" or typ=="h" or typ=="d" or typ=="y" then
exports["ogrpg-db"]:dbSet("INSERT INTO admin_logs_cmd (uid,moderator,cmd) VALUES (?,?,?)", getElementData(plr,"player:uid"), getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), "?agier "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."")
removePedFromVehicl...