Wysłany: 2019-01-21, 22:48
bro.skotka
Wiek: 31 Na forum: 2701 dni Posty: 9
Nick w MP: sk0tka
Piwa : 2
Witam, ot?? mam problemm z tym ?e jak wchodze na duty samc wszystko jest ok, ale gdy chcialbym zej?? z duty to w?a?nie nic si? nie dzieje i nie wiem co w s_duty.lua ustawi?, a mo?e inny plik? prosz? o pomoc.
Wysłany: 2019-02-01, 20:38
PatryKK.
Emeryt LUA
Wiek: 26 Na forum: 3061 dni Posty: 1060
Nick w MP: PatryKK.
Piwa : 2322
Je?li mog?by? to wstaw tutaj kod
Podpis
GG:75080675
- ✔
- ✔
- ✔
- ✔
Aktualny projekt: BRAK
Wysłany: 2019-02-01, 23:31
serigorro
Wiek: 28 Na forum: 2847 dni Posty: 41
Nick w MP: Igorro
Piwa : 3
We? plik z innej frakcji i zmie? elementdaty na SAMC (np. PSP na SAMC)
Wysłany: 2019-05-01, 00:21
NorbiTTT
Nbi#1824
Wiek: 27 Na forum: 3207 dni Posty: 193
Nick w MP: Nbi
Piwa : 698
Kod: --[[
Developers: Yolos And Spli
]]
local marker=createMarker(2496.96,-1652.64,82.07-0.9, 'cylinder', 1.5, 0, 0, 255)
setElementDimension(marker, 0)
setElementInterior(marker, 1)
local t=createElement('text')
setElementData(t,'name','Rozpocz?cie pracy')
setElementDimension(t, 0)
setElementInterior(t, 1)
setElementPosition(t,2496.96,-1652.64,81.90)
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:faction') 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-frakcja-ustawienia']:zatrzymajnaliczanie(el)
takeWeapon(el,41)
setElementData(el, 'player:faction', false)
setElementData(el,"player:rank",false)
local skin=getElementData(el,"player:skin")
setElementModel(el, skin)
--setPlayerNametagColor(el,false)
end
else
outputChatBox('Nie jeste? zatrudniony jako SAMC.', 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
prosz? bardzo
Więcej szczegółów
Wystawiono 1 piw(a):HAGO1237
Tagi: play :: your :: stories :: frakcja :: samc.
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: