Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-09-21, 21:22


_jvneczek







Wiek: 22
Na forum: 4466 dni
Posty: 1509
Nick w MP: _jvneczek

Piwa: 3960

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

AkossPL, B??dy w db3?

Podpis

Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-21, 21:47


AkossPL







Wiek: 25
Na forum: 4220 dni
Posty: 140
Nick w MP: AkossPL

Piwa: 3

Respekt: 50

Thinks, Nadal nic nawet do auta siada? nie mog? a wyposa?enie ju? mog?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-21, 22:26


Qwertick

Coming soon...






Wiek: 23
Na forum: 3718 dni
Posty: 472
Nick w MP: Qwertick

Piwa: 2727

Respekt: 215,8
Respekt: 215,8Respekt: 215,8

Daj sw?j aktualny kod

Podpis

Kontakt
Discord: Qwertick#1210

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-21, 22:28


AkossPL







Wiek: 25
Na forum: 4220 dni
Posty: 140
Nick w MP: AkossPL

Piwa: 3

Respekt: 50

Wercio., Masz
local marker=createMarker(2124.82,-2272.20,20.67-1, 'cylinder', 1.5, 255, 100, 0,255)
setElementDimension(marker, 0)
setElementInterior(marker, 0)


local licz = {}
local t=createElement('text')
setElementData(t,'name','Rozpocz?cie pracy')
setElementDimension(t, 0)
setElementInterior(t, 0)
setElementPosition(t,2124.82,-2272.20,20.67)

createBlip(2124.82,-2272.20,20.67, 62,2,0,0,0,0,0,275)

function isPlayerInPomocFaction(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;', "SASD", sid)
 if result[1] then
  return true
 else
  return false
 end
end

addEventHandler('onMarkerHit', marker, function(el,md)
 if isPlayerInPomocFaction(el) then
  if not getElementData(el,'player:duty') then
   setElementModel(el,6)
   setPlayerNametagColor(el,255,255,0)
    exports['pystories-frakcja-ustawienia']:rozpocznijnaliczanie(el)
   setElementData(el,'player:duty','SASD')
    local rank = exports['pystories-frakcja-ustawienia']:getPlayerFactionRank(el,'SASD')
    setElementData(el,"player:rank",rank)
    setElementData(el,"last:nick",getPlayerName(el))
    setElementData(el,"last:color",tostring(getPlayerNametagColor(el)))
    setPlayerName(el,"#FF7100"..getPlayerName(el):gsub("#%x%x%x%x%x%x",""))
  else
    exports['frakcja']:zatrzymajnaliczanie(el)
   setElementData(el,'player:duty', false)
    setElementData(el,"player:rank",false)
   local skin=getElementData(el,"player:skin")
   setElementModel(el, skin)
   setPlayerName(el,getElementData(el,"last:nick"))
  end
 else
  outputChatBox('* Nie jeste? zatrudniony(a) w Pomocy Drogowej.', el, 255, 0, 0)
 end
end)

function naliczanie(el)
    if isElement(el) then
   local x = getElementData(el,"player:workinjob") or 0
   setElementData(el,"player:workinjob",x+1)
   else
    if isTimer(licz[el]) then
    killTimer(licz[el])
    licz[el] = nil
    end
   end
end

local bronie2 = createMarker (2132.41,-2282.51,20.67-1, "cylinder", 1.5, 255, 100, 0, 255 )
setElementDimension(bronie2, 0)
setElementInterior(bronie2, 0)
local t=createElement("text")
setElementData(t,"name", "Tutaj we?miesz swoje wyposa?enie!")
setElementPosition(t,2132.41,-2282.51,20.67)
setElementDimension(t, 0)
setElementInterior(t, 0)


function bronie11(hitElement, matchingDimension)
    if source == bronie2 then
        if getElementData(hitElement,"player:duty") == "SASD" then
        if getElementData(hitElement,'player:rank') <= 1 then hitElement:outputChat("Odebrano wyposa?enie.") return end
            outputChatBox("* Wzi??e?(a?) swoje wyposa?enie!", hitElement)
            giveWeapon(hitElement, 9, 90)
        else
            outputChatBox ("Nie jeste? na s?u?bie, lub nie pracujesz w SASD", hitElement)
        end
    end
end
addEventHandler ("onMarkerHit", bronie2, bronie11)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-21, 22:32


Qwertick

Coming soon...






Wiek: 23
Na forum: 3718 dni
Posty: 472
Nick w MP: Qwertick

Piwa: 2727

Respekt: 215,8
Respekt: 215,8Respekt: 215,8

Zobacz to
local marker=createMarker(2124.82,-2272.20,20.67-1, 'cylinder', 1.5, 255, 100, 0,255)
setElementDimension(marker, 0)
setElementInterior(marker, 0)


local licz = {}
local t=createElement('text')
setElementData(t,'name','Rozpocz?cie pracy')
setElementDimension(t, 0)
setElementInterior(t, 0)
setElementPosition(t,2124.82,-2272.20,20.67)

createBlip(2124.82,-2272.20,20.67, 62,2,0,0,0,0,0,275)

function isPlayerInPomocFaction(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;', "SASD", sid)
 if result[1] then
  return true
 else
  return false
 end
end

addEventHandler('onMarkerHit', marker, function(el,md)
 if isPlayerInPomocFaction(el) then
  if not getElementData(el,'player:duty') then
   setElementModel(el,6)
   setPlayerNametagColor(el,255,255,0)
    exports['pystories-frakcja-ustawienia']:rozpocznijnaliczanie(el)
   setElementData(el,'player:duty','SASD')
    local rank = exports['pystories-frakcja-ustawienia']:getPlayerFactionRank(el,'SASD')
    setElementData(el,"player:rank",rank)
    setElementData(el,"last:nick",getPlayerName(el))
    setElementData(el,"last:color",tostring(getPlayerNametagColor(el)))
    setPlayerName(el,"#FF7100"..getPlayerName(el):gsub("#%x%x%x%x%x%x",""))
  else
    exports['pystories-frakcja-ustawienia']:zatrzymajnaliczanie(el)
   setElementData(el,'player:duty', false)
    setElementData(el,"player:rank",false)
   local skin=getElementData(el,"player:skin")
   setElementModel(el, skin)
   setPlayerName(el,getElementData(el,"last:nick"))
  end
 else
  outputChatBox('* Nie jeste? zatrudniony(a) w Pomocy Drogowej.', el, 255, 0, 0)
 end
end)

function naliczanie(el)
    if isElement(el) then
   local x = getElementData(el,"player:workinjob") or 0
   setElementData(el,"player:workinjob",x+1)
   else
    if isTimer(licz[el]) then
    killTimer(licz[el])
    licz[el] = nil
    end
   end
end

local bronie2 = createMarker (2132.41,-2282.51,20.67-1, "cylinder", 1.5, 255, 100, 0, 255 )
setElementDimension(bronie2, 0)
setElementInterior(bronie2, 0)
local t=createElement("text")
setElementData(t,"name", "Tutaj we?miesz swoje wyposa?enie!")
setElementPosition(t,2132.41,-2282.51,20.67)
setElementDimension(t, 0)
setElementInterior(t, 0)


function bronie11(hitElement, matchingDimension)
    if source == bronie2 then
        if getElementData(hitElement,"player:duty") == "SASD" then
        if getElementData(hitElement,'player:rank') <= 1 then hitElement:outputChat("Odebrano wyposa?enie.") return end
            outputChatBox("* Wzi??e?(a?) swoje wyposa?enie!", hitElement)
            giveWeapon(hitElement, 9, 90)
        else
            outputChatBox ("Nie jeste? na s?u?bie, lub nie pracujesz w SASD", hitElement)
        end
    end
end
addEventHandler ("onMarkerHit", bronie2, bronie11)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-21, 22:46


AkossPL







Wiek: 25
Na forum: 4220 dni
Posty: 140
Nick w MP: AkossPL

Piwa: 3

Respekt: 50

Wercio.,

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-22, 10:32


_jvneczek







Wiek: 22
Na forum: 4466 dni
Posty: 1509
Nick w MP: _jvneczek

Piwa: 3960

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

Wercio., Do auta wsiada? nie mo?e bo od aut jest oddzielny kod, to jest frakcja z ogka, s?u?ba dzia?a ale nie mo?e wsiada? do auta bo nie da? kodu i zapewne ma tam podpi?te pod SAST czy co?.

[ Dodano: 2018-09-22, 10:33 ]
Spr?buj to:
local marker=createMarker(2124.82,-2272.20,20.67-0.94, 'cylinder', 1.5, 255, 100, 0,255)
setElementDimension(marker, 0)
setElementInterior(marker, 0)


local licz = {}
local t=createElement('text')
setElementData(t,'name','Rozpocz?cie pracy')
setElementDimension(t, 0)
setElementInterior(t, 0)
setElementPosition(t,2124.82,-2272.20,20.67+0.4)

createBlip(2124.82,-2272.20,20.67, 62,2,0,0,0,0,0,275)

function isPlayerInPomocFaction(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;', "SASD", sid)
 if result[1] then
  return true
 else
  return false
 end
end

addEventHandler('onMarkerHit', marker, function(el,md)
 if isPlayerInPomocFaction(el) then
  if not getElementData(el,'player:duty') then
   setElementModel(el,6)
   setPlayerNametagColor(el,255,255,0)
    exports['pystories-frakcja-ustawienia']:rozpocznijnaliczanie(el)
   setElementData(el,'player:duty','SASD')
    local rank = exports['pystories-frakcja-ustawienia']:getPlayerFactionRank(el,'SASD')
    setElementData(el,"player:rank",rank)
    setElementData(el,"last:nick",getPlayerName(el))
    setElementData(el,"last:color",tostring(getPlayerNametagColor(el)))
    setPlayerName(el,"#FF7100"..getPlayerName(el):gsub("#%x%x%x%x%x%x",""))
  else
    exports['pystories-frakcja-ustawienia']:zatrzymajnaliczanie(el)
   setElementData(el,'player:duty', false)
    setElementData(el,"player:rank",false)
   local skin=getElementData(el,"player:skin")
   setElementModel(el, skin)
   setPlayerName(el,getElementData(el,"last:nick"))
  end
 else
  outputChatBox('* Nie jeste? zatrudniony(a) w Pomocy Drogowej.', el, 255, 0, 0)
 end
end)

function naliczanie(el)
    if isElement(el) then
   local x = getElementData(el,"player:workinjob") or 0
   setElementData(el,"player:workinjob",x+1)
   else
    if isTimer(licz[el]) then
    killTimer(licz[el])
    licz[el] = nil
    end
   end
end

local bronie2 = createMarker (2132.41,-2282.51,20.67-0.93, "cylinder", 1.5, 255, 100, 0, 255 )
setElementDimension(bronie2, 0)
setElementInterior(bronie2, 0)
local t=createElement("text")
setElementData(t,"name", "Tutaj we?miesz swoje wyposa?enie!")
setElementPosition(t,2132.41,-2282.51,20.67)
setElementDimension(t, 0)
setElementInterior(t, 0)


function bronie11(hitElement, matchingDimension)
    if source == bronie2 then
        if getElementData(hitElement,"player:duty") == "SASD" then
        if getElementData(hitElement,'player:rank') <= 1 then hitElement:outputChat("Odebrano wyposa?enie.") return end
            outputChatBox("* Wzi??e?(a?) swoje wyposa?enie!", hitElement)
            giveWeapon(hitElement, 9, 90)
        else
            outputChatBox ("Nie jeste? na s?u?bie, lub nie pracujesz w SASD", hitElement)
        end
    end
end
addEventHandler ("onMarkerHit", bronie2, bronie11)


Podpis

Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021

Postaw piwo autorowi tego posta
 

 
Tagi: nie :: działa :: sara
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Nie działa SARA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku