local licz = {}
local t=createElement('text')
setElementData(t,'name','Los Santos Police DepartamentnLSPDnRozpocz?cie s?u?by')
setElementDimension(t, 0)
setElementInterior(t, 0)
setElementPosition(t,-6727.30, -1478.71, 97.26)
function isPlayerInPoliceFaction(plr)
local uid=getElementData(plr,'player:uid')
if not uid then return end
local result=exports['ogrpg-db']:dbGet('SELECT 1 FROM ogrpg_factions WHERE code=? AND uid=? LIMIT 1;', "LSPD", uid)
if result[1] then
return true
else
return false
end
end
addEventHandler('onMarkerHit', marker, function(el,md)
if isPlayerInPoliceFaction(el) then
if not getElementData(el,'player:duty') then
setElementData(el,"last:skin",getElementModel(el))
setElementModel(el,71)
outputChatBox("Rozpocz??e? prac? jako Policjant!",el,50,90,200)
exports['frakcja']:rozpocznijnaliczanie(el)
setElementData(el,'player:duty','LSPD')
local rank = exports['frakcja']:getPlayerFactionRank(el,'LSPD')
setElementData(el,"player:rank",rank)
giveWeapon(el,23,9999)
setElementData(el,"last:nick",getPlayerName(el))
setElementData(el,"last:color",tostring(getPlaye...
No wracaj?c do tego to jak robi? 2 marker to go nie pokazuje tylko daje skina w tym miejscu co jest marker i tego markera nie wida? jest pustka tylko daje skin tak jakby z d*py
local licz = {}
local t=createElement('text')
setElementData(t,'name','San Fierro Police DepartamentnSFPDnRozpocz?cie S?u?by')
setElementDimension(t, 2)
setElementInterior(t, 0)
setElementPosition(t,265.78, -1861.70, 10.84)
function isPlayerInPoliceFaction(plr)
local uid=getElementData(plr,'player:uid')
if not uid then return end
local result=exports['ogrpg-db']:dbGet('SELECT 1 FROM ogrpg_factions WHERE code=? AND uid=? LIMIT 1;', "SFPD", uid)
if result[1] then
return true
else
return false
end
end
addEventHandler('onMarkerHit', marker, function(el,md)
if isPlayerInPoliceFaction(el) then
if not getElementData(el,'player:duty') then
setElementModel(el,71)
--setPlayerNametagColor(el,0,0,255)
outputChatBox ("✰ ✰ Rozpoczo?e?(a?) s?u?b? ✰ ✰", el, 0,255,17)
exports['frakcja']:rozpocznijnaliczanie(el)
setElementData(el,'player:duty','SFPD')
local rank = exports['frakcja']:getPlayerFactionRank(el,'SFPD')
setElementData(el,"player:rank",rank)
giveWeapon(el,23,9999)
giveWeapon(el,3,9999)
setPlayerName(el,"#0000CD"...
Witam. Ju? dawno temu pisa?em podobny temat, chodzi o to, aby marker w??cza? si? tylko w wyznaczonej pozycji, ?eby nie w??cza? si? jak kto? leci samolotem lub stoi na parterze. Bodaj?e Tey poda? mi kod: