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: tematu
1. nie moge tego nazwać bo nie akceptuje tematu
cze?? mam pytanie czy D.B2 wy?wietli sie graczowi w mods w folderze mta czy nie?
2. Znaowu powracamy do tematu mojego pt. SKINY DLA POLICJI
Tak nie dzia?a mi branie skina pojawia marker wchodz? w niego i nie daje skina, nie wiem dlaczego

kodzik:
[lua]
local marker=createMarker(-6727.30, -1478.71, 97.26-1, 'cylinder', 2, 50, 90, 255, 75)
setElementDimension(marker, 0)
setElementInterior(marker, 0)


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...
3. Wracając do tamtego tematu pt. SKINY DLA POLICJI
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

kodzik
[lua]
local marker=createMarker(265.78, -1861.70, 10.84-0.8, 'corona', 1, 0, 0, 255,255)
setElementDimension(marker, 2)
setElementInterior(marker, 0)


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"...
4. Komputer - refresh starego tematu
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:


addEventHandler
("onClientMarkerHit"marker, function(graczdimension)
    if 
not getElementType(gracz)=="player" then return end

    local x
,y,getElementPosition(marker)
    
local px,py,pz getElementPosition(gracz)
    if 
math.abs(pz-z)>6 then return end

    guiSetVisible 
(monitortrue)
    
showCursor (true)
    
outputChatBox ("Zalogowa?e? si? na komputer OSP." )
end


Niestety sprawdzi?em go dopiero dzi? bo nie mia?em czasu. Ale problem polega na tym, ?e marker w??cza funkcj? nawet 50 metr?w na markerem...