Chodzi konkretnie o Frakcj? samc, mo?na si? zalogowa?, panel dzia?a i wszystko jest niby git, ale nie mo?na si? wylogowa? z frakcji, jedyny spos?b na wylogowanie si? z frakcji to reconnect, a to bez sensu, czy kto? by mi umia? pom?c? ;/
local t=createElement('text')
setElementData(t,'name','S?u?banSan Andreas Medical Centern[SAMC]')
setElementDimension(t, 0)
setElementInterior(t, 0)
setElementPosition(t,-2630.38,631.04,56.34)
local licz = {}
function isPlayerInFaction(plr)
local sid=getElementData(plr,'player:sid')
if not sid then return end
local result=exports['pystories-db']:dbGet('SELECT 1 FROM pystories_factions WHERE code=? AND sid=? LIMIT 1;', "SAMC", sid)
if result[1] then
return true
else
return false
end
end
addEventHandler('onMarkerHit', marker, function(el,md)
if isPlayerInFaction(el) then
if not getElementData(el,'player:duty') then
setElementModel(el,274)
exports['pystories-frakcja-ustawienia']:rozpocznijnaliczanie(el)
setElementData(el,'player:faction','SAMC')
local rank = exports['pystories-frakcja-ustawienia']:getPlayerFactionRank(el,'SAMC')
setElementData(el,"player:rank",rank)
else
exports['pystories...