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: premki
1. [MTA] Calm Story - NOWA EDYCJA? |
Hejkaaa

?ycz? Udanego Seansu

https://youtu.be/0_SoEph_w2M
2. Nie mogę zmienić kasy z premki
Witam, nie mog? zmieni? wynagrodzenia godzinnego z premium. W sensie chodzi mi o to, ?e nie moge znale?? skryptu od tego, paczka to Navaxa RPG by dafik. Mo?e kto? b?dzie wiedzia? jaki to skrypt.
3. Dawanie premki po zarejestrowaniu .
Witam ot?? pr?bowa?em doda? do panelu logowania dawanie premki gdy dany gracz si? zarejestruje lecz nie wychodzi?o mi to.
element data na premke
[lua]setElementData("player:premium", 7)[/lua]
t? 7 doda?em bo chc? by dawa?o na 7dni.
kod s_logowanie
[lua]
--[[
--[[
Panel Logowania by Kurianusz @2016 .
Regulamin /Licencja
Korzystanie z tego kodu tylko je?eli posiadasz tzw. copyrights. Zakaz usuwania tej notatki!
Pami?taj ?e nielegalne korzystanie z kodu podpada pod kodeks karny :> Tak samo jak usuni?cie tej notatki!
]]



function sprawdzorganizacje(plr)
local x = exports['ogrpg-db']:dbGet("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if x and #x > 0 then
local t = split(x[1].spawn, ",")
return t
end
return false
end

function getAdmin(plr,level)
if level then
local result=exports["ogrpg-db"]:dbGet("SELECT * from ogrpg_admins WHERE serial=? AND level=?", getPlayerSerial(plr), level)
if result and #result > 0 then
return true
else
return false
end
else
local result=exports["ogrpg-db"]:dbGet("SELECT * from ogrpg_admins WHERE serial=?", getPlayerSerial(plr))
if result and #result > 0 then
return true
else
return false
end
end
end

addEvent("l...
4. Nie daje premki jak jest na serwerze tylko jak zrobi rc
Siema mam problem jak daje komu? premk? komendom to nie dzia?a tylko jak rc zrobi to wszystko dzia?a. Za pomoc postawie piwo



[lua]function loadPlayerData(plr)
local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE id=?", getElementData(plr,"player:uid"))
if result and #result > 0 then
local v=result[1]
setPlayerMoney(plr,v.money)
setElementModel(plr,v.skin)
setElementData(plr,"status","Aktywny")
setElementData(plr,"user:nickname",v.login1)
setElementData(plr,"player:logged",true)
--setElementData(plr,"player:shoe",toJSON(v.prize))
setElementData(plr,"player:license:pjA",v.pjA)
setElementData(plr,"player:license:pjB",v.pjB)
setElementData(plr,"player:license:pjC",v.pjC)
setElementData(plr,"player:license:pjL",v.pjL)
setElementData(plr,"player:reputation",v.reputation)
setElementData(plr,"player:workinjob",v.worker)
setElementData(plr,"player:registerdate",v.registered)
setElementData(plr,"player:hours",v.hours)
setElementData(plr,"p:title",v.rp_tytul)
setElementData(plr,"nanky:x",v.nankyx)
setElementData(plr,"nanky:y",v.nankyy)
setElementData(plr,"nanky:z",v.nankyz)
-...
5. premki
Siema, mam kod na premki API MSMS, kt?ry zawsze dzia?a?, wystarczy?o tylko poda? swoje id i klucz serwisu.
Teraz nie dzia?a.
Pr?bowa?em ju? to naprawi?, ale nie uda?o mi si?.

Sprawdzanie kodu:
[lua]addEvent('premium:checkCode', true)
addEventHandler('premium:checkCode', resourceRoot, function(code)
if not code then return end
CD = code
local string = string.format('http://microsms.pl/api/v2/multi.php?userid=%d&code=%s&serviceid=%d', premium['user_id'], code, premium['service_id'])
fetchRemote(string, result, "", false, client)
end)[/lua]

funkcja result:
[lua]function result(responseData, errno, playerToReceive)
local uid = getElementData(playerToReceive, 'player:uid')
if not uid then return end

if string.find(responseData, '"status":0') then
exports["noti"]:noti( "Podany kod jest nieprawid?owy lub zosta? zu?yty.",playerToReceive)
return
end

-- start settings
local days = nil

if string.find(responseData, '"number":"71480"') then days = 3 end
if string.find(responseData, '"number":"74480"') then days = 7 end
if string.find(responseData, '"number":"76480"') then days = 14 end
if string.find(responseData, '"number":"79480"') then days = 30 end
-- stop settings
...