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: zapisz
1. zapisz do bazy danych
witam mam kilku krotny zapis mysql log?w nie wiem czym to jest spowodowane [lua]function getAdmin(player, level)
local r = exports["goyd-db"]:dbGet("SELECT * FROM ogrpg_admins WHERE serial=? AND level=?", getPlayerSerial(player),serial)
if r and #r > 0 then
return true
else
return false
end
end

function isAdmin(plr)
if getAdmin(plr,1) or getAdmin(plr, 2) or getAdmin(plr, 3) or getAdmin(plr, 4) then
return true
else
return false
end
end

addCommandHandler("v", function(plr, cmd, ...)
if not getElementData(plr, "player:premium")~= false and not isAdmin(plr) ~= false then outputChatBox("Musisz posiada? status premium by pisa? na czacie globalnym!",plr,78,255,0) return end


local message = table.concat ( { ... }, " " )
local name = getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
for _,p in pairs(getElementsByType("player")) do
if getElementData(p,"player:premium") or getAdmin(p, 1) or getAdmin(p, 2) or getAdmin(p, 3) or getAdmin(p, 4) then
outputChatBox("#FFC000[PREMIUM] ["..getElementData(plr,"id").."]"..name.."#ffffff: "..message:gsub("#%x%x%x%x%x%x","").."", p, 255, 255, 255, true)
end
local q = string.format("Czat v>"..getElementData(plr,"id").."]"..name..": "..message:gsub("#%x...
2. Zapisz aut
Witam mam skrypt PanaPrezesa na salon i zapis pojazd?w o ten
Kod:

http://gtao.pl/%3Cfont-colorcccc99%3Eskrypt%3C-font%3E-system-pojazdow-zapis-sq-vt95613.htm

I bym chcia? zrobi? tak ?ebym nie musia? wpisywa? /zapiszpojazdy ?eby si? zapisywa?y tylko ?eby co 10 sek same si? zapisywa?y czy da si? to jako? zrobi? ?
Za pomoc stawiam :piwo: :roll: