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: powracamy
1. [MTA] 4Life - Powracamy na rejony
Witam Pa?stwa?
W dzisiejszym dniu postanowi?em nagra? materia?, w kt?rym opowiem o kilku wa?nych rzeczach. Poruszy?em kilka spraw dotycz?cych mojego kana?u, oraz mojej osoby. Mam nadziej?, ?e uda mi si? przywr?ci? dawny "blask" kana?u?oraz, ?e bardziej przypadn? widzom do gustu i spe?ni? wasze oczekiwania!

https://www.youtube.com/watch?v=AFhqUP-w5WI
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...