<object name="resource.admin"></object>
<object name="resource.webadmin"></object>
ta linijke
<object name="user.login"></object>
oczywiscie zmienilem login na taki jak w grze ale dalej nie moge, dodalem paczke wpisuje /duty i nie moge, pisze ze nie mam uprawnien
[ Dodano: 2022-12-05, 19:53 ]
W dodatku po daniu admina w panelu pod p wyskakuje
Error- Admin group not initialized. Please reinstall admin resource, tyle ze to reinstalowalem i dalej nic
Cze??, og?lnie mam stary kod na DUTY, i nie wiem gdzie jest b??d. Pomo?ecie?
CLIENT
|
V
[code]
local w, h = guiGetScreenSize()
skala = 0.7
wartosc = 0
czcionka = dxCreateFont("czcionka.ttf", 17)
tgn = false
addEventHandler("onClientRender",root,function()
local wartosc = wartosc + 0.05
for key, value in ipairs(getElementsByType("player")) do
if value ~= localPlayer then
setPlayerNametagShowing(value, false)
local nick = getPlayerName(value)
local cx, cy, cz = getCameraMatrix(value)
local x,y,z = getPedBonePosition(value, 8)
local wzWartosc = math.cos(wartosc)/10
local xs,ys,ds = getScreenFromWorldPosition(x,y,z+0.40)
local nx,ny,nz = getElementPosition(localPlayer)
local px, py,pz = getElementPosition(value)
local odleglosc = getDistanceBetweenPoints3D(nx,ny,nz,px,py,pz)
a = 255
if xs and ys and ds then
if isLineOfSightClear(cx,cy,cz,x,y,z,true,false,false,true,true,true,true,value) then
Grupa = ""
if getElementData(value, "duty")=="nadana_elementdata" then Grupa="napis widocznny nad glowa" end
if getElementData(value, "duty")=="admin" then Grupa="#830405Administrator RCON" end
if getElementData(value, "duty")=="DMPD" then Grupa="#0066FFDMPD | Cadet" end
if getElementData(value, "duty")=="smod" then Grupa="#007F01Support" end
local text="#FFFFFF "..Grupa..&qu...
Sima, problem w tym ze jak wpisuje /duty to mi nie dzia?a .Wcze?niej dzia?a?o przed dodaniem nowej frakcji. - paczka owlgaming. moze ktos pomoze
DebugScipt3:[b] ERROR: duty/g_duty.lua:66: bad argument #1 to 'pairs' (table expected, got boolean)[/b]
[code]DutyColShapes = { }
function createDutyColShape(posX, posY, posZ, size, interior, dimension, factionID, locationID)
tempShape = createColSphere(tonumber(posX), tonumber(posY), tonumber(posZ), tonumber(size))
setElementDimension(tempShape, tonumber(dimension) or 0)
setElementInterior(tempShape, tonumber(interior) or 0)
if tempShape then
if type(DutyColShapes[tonumber(factionID)]) ~= "table" then
DutyColShapes[tonumber(factionID)] = { }
end
DutyColShapes[tonumber(factionID)][tonumber(locationID)] = tempShape
setElementData(resourceRoot, "DutyColShapes", DutyColShapes)
return true
end
end
function destroyDutyColShape(factionID, locationID)
if DutyColShapes[tonumber(factionID)][tonumber(locationID)] then
destroyElement(DutyColShapes[tonumber(factionID)][tonumber(locationID)])
DutyColShapes[tonumber(factionID)][tonumber(locationID)] = nil
setElementData(resourceRoot, "DutyColShapes", DutyColShapes)
return true
end
end
-- -------------------------- --
-- General checking functions -- Revised by Chaos for OwlGaming < Old way was shitty less loops now
-- -------------------------- --
Czesc, mam pytanie. Bawie sie ostatnio troche po skryptach itp, nie wiem dlaczego po podlaczeniu bazy danych poprawnie i nadaniu sobie w myslq rangi, gdy wpisuje /duty to nic sie nie dzieje prosilbym o pomoc
mam problem z dodaniem siebie na w?a?ciciela
wyskakuje takie cos gdy pr?buje przez konsole
[20-10-14 08:58] WARNING: [skrypty]/pystories-admins/s_utility.lua:93: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got console]
Witam, dzisiaj wgra?em sobie paczk? VenusRPG i odpali?em skrypty mapy i wszystko ?adnie ?miga?o. Ale doda?em si? na range rcona i /duty nie dzia?a. Pr?bowa?em na wszystkie rangi (serial, nick) poda?em... Prosz? o pomoc.
witam, przychodze zn?w , dzis gdy przerabialem frakcje z pssm wyszedl jakis proble,m, w grze widoczny jest marker, pojazdy dzialaj? tylko gdy chce wejsc w marker nic sie nie dzieje, a powwino mnie logowac na sluzbe
ps. korzystam z bazy danych pys
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;', "PSP", sid)
if result[1] then
return true
else
return false
end
end
local licz = {}
addEventHandler('onMarkerHit', marker, function(el,md)
if isPlayerInFaction(el) then
if not getElementData(el,'player:duty') then
setElementModel(el,239)
exports['frakcja']:rozpocznijnaliczanie(el)
setElementData(el,'player:duty','PSP')
local rank = exports['frakcja']:getPlayerFactionRank(el,'PSP')
setElementData(el,"player:rank",rank)
giveWeapon(el, 42, 99999)
...
witam, przychodze zn?w , dzis gdy przerabialem frakcje z pssm wyszedl jakis proble,m, w grze widoczny jest marker, pojazdy dzialaj? tylko gdy chce wejsc w marker nic sie nie dzieje, a powwino mnie logowac na sluzbe
ps. korzystam z bazy danych pys
[lua]
local marker=createMarker(-2120.02, -42.69, 40.60-1, 'cylinder',1.5, 0, 0, 255, 150)
local marker2=createMarker(-2120.02, -42.68, 40.60-1, 'arrow', 1.5, 0, 0, 255, 150)
setElementData(marker2,"rpg_marker:job",true)
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;', "PSP", sid)
if result[1] then
return true
else
return false
end
end
local licz = {}
addEventHandler('onMarkerHit', marker, function(el,md)
if isPlayerInFaction(el) then
if not getElementData(el,'player:duty') then
setElementModel(el,239)
exports['frakcja']:rozpocznijnaliczanie(el)
setElementData(el,'player:duty','PSP')
local rank = exports['frakcja']:getPlayerFactionRank(el,'PSP')
setElementData(el,"player:rank",rank)
giveWeapon(el, 42, 99999)
exports["MIRIX-notyfikacje"]:MIRIXnoti("#00ff00Rozpoczeto s?u?b?!",el)
...
Witam ! Sprawa wygl?da tak gdy wchodz? na duty admina to nie wy?wietlam si? jako deweloper ani na scoreboard ani /admins i przy nicku r?wnie? nie mam napisu. Dodam ?e serwer stoi na paczce PSSM (ogrpg). Za wszelk? pomoc dzi?kuje i stawiam piwko oraz reputacje
Witam mam problem z niedzia?aj?cymi bramami (nie otwieraj? si?). Nie wiem co jest nie tak, za pomoc daje oraz kod
[lua]
-- BRAMA PIERWSZA
local bm = createMarker(-2305.70557, -157.99330, 34.5, "cylinder", 1.0, 0, 0, 0, 255)
local d = createObject (5422, -2306.5, -155.39, 36.40, 0, 0, 0)
function od(thePlayer, key, state)
if isElementWithinColShape(thePlayer, colshape) then
if getElementData(thePlayer,"player:duty") == "PSP" then
moveObject(d, 10000, -2306.5, -155.39, 32.20)
setPedAnimation(thePlayer, "CRIB", "CRIB_Use_Switch", true, false, false)
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
end
end
end
function zd(thePlayer, key, state)
if isElementWithinColShape(thePlayer, colshape) then
if getElementData(thePlayer,"player:duty") == "PSP" then
moveObject(d, 10000,-2306.5, -155.39, 36.40)
setPedAnimation(thePlayer, "CRIB","CRIB_Use_Switch", true, false, false)
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
end
end
end
addEventHandler("onMarkerHit", bm, function(el, md)
if not md then return end
bindKey(el, "mouse_wheel_down", "down", od)
bindKey(el, "mouse_wheel_up", "down", zd)
end)
Cze??, postanowi?em brn?? dalej i bawi? si? w to a? mi si? nie uda zrobi? skryptu lub znale?? na gwiazdki tak jak pisa??m, uda?o si?, lecz jest to na acl a chce zrobic tak zeby elementdata byla na duty sapd, ogrpg
Siemka,
Jak wiecie lub nie domy?lnie w ogrpg nie dzia?aj? logi na /duty, s? tylko tabela raport?w i /konsola, kt?ra jest upierdliwa i nie przejrzysta.
Jak naprawi? aby logi serwerowe dzia?a?y w ogrpg? Tak samo jak na pysie ?e na /duty widzimy poprostu logi serwerowe, domyslnie w ogrpg nie dziala bo nie ma pliku ogrpg-logs (skryptu jakiegos ktorego nie ma domyslnie w paczce), czy da sie zrobic jak na pysie, i przerobic to ze nie trzeba tego skryptu ogrpg-logs, tylko aby dawalo logi serwerowe bezpo?rednio przyk?adowo z bazy danych z tabelki ogrpg_logs ?
Witam!
Witam przychodz? z problem? a mianowicie mam serwer i paczk? pod acl rescue team i gdy kogo? chce da? na supporta to on ma panel admina
Chcia?bym zrobi? ?eby osoba kt?ra jest supportem nie mia?a panelu pod p Za pomoc daj? respekt oraz piwo
Siemka
Mam GM XaWorld i nie dzia?a mi duty admina, wpisuje /duty i nie si? nie dzieje
W bazie danych nale?y uzupe?ni?
ID | Gracz | Serial | ranga | tranga | hex |
Ja mam uzupe?nione tak:
1 | ReMiK1337 | M?j Serial | Admin | 4 | Tutaj nic nie mam |
Witam, wgra?em duty admin podpi??em si? do bazy wpisuje /duty i tak pokazuje mi /cl, lecz nie dzia?a mi z (latanie) ani /b /k /zpj i mam jeszcze jedno jak wpisuje /konsola pokazuje w jak?? tabele z 5 kolumnami czat, vip, premium itp. Prosi?bym o szybk? pomoc, podejrzewam, ?e czego? nie wgra?em tylko nie wiem czego.
PS: Po wpisaniu duty powinno r?wnie? si? wy?wietla?, ?e zalogowano na s?u?b? u mnie tego nie ma.
Witam, da mi kto? poradnik co zrobi?, gdzie wpisa? sw?j serial, ?eby dzia?a?o mi /duty na moim koncie na paczce Your adventure 2.3? Konkretnie jaki folder, plik i gdzie wpisa? swoje dane aby na moim koncie dzia?a?o /duty.
Potrzebuje aby w tym skrypcie bindy na uruchomienie sygna??w mia?a tylko osoba z frakcji np. "SAPD" oraz ?eby doda? wi?cej id aut, kt?re b?d? posiada?y dost?p do syren.
elo mam problem z suszarka w duty, gdy wpisuje /duty loguje sie do administracji ale nie dostaje suszarki prosze o pomoc!! a i jezeli by byla mozliwosc to czy by ktos mi mogl zrobic aby dzialaly prawka i bany? bardzo dziekuje, za pomoc stawiam piwko, baze mam nazwana mysql
Duty SAPD sypie tym b??dem: [2017-11-22 11:11:12] WARNING: [Frakcje]/frakcja-policja/s_duty.lua:39: Bad argument @ 'triggerClientEvent' [Expected string at argument 1, got nil]
O to kod
[code]local marker=createMarker(-1622.46, 691.68, 18.00-0.8, 'cylinder', 1.0, 240, 240, 240, 240)
setElementDimension(marker, 0)
setElementInterior(marker, 0)
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
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)
bindKey(el, "mouse_wheel_up","both", 'openSAPD')
bindKey(el, "mouse_wheel_down","both", 'closeSAPD')
bindKey(el, "mouse_wheel_up","both", 'openSAPD2')
bindKey(el, "mouse_wheel_down","both", 'closeSAPD2')
bindKey(el, "mouse_wheel_up","both", 'openSAPD3')
bindKey(el, "mouse_wheel_down","both", 'closeSAPD3')
triggerClientEvent(...
Cze?? mam problem poniewaz mam pewien kod o tasmie policyjnej ale mi nie dziala poniewaz tam trzeba duty. Dalo by sie to zrobic bez daty? ze od razu ktos z ACL moze jej uzywac? link: http://www119.zippyshare....police_line.zip
Witam, mam problem. Chodzi o to, ?e na mysql w ogrpg_admins doda?em siebie jako RCON. Panel admina r?wnie? mam. Gdy wpisuje /duty na serwerze wyskakuje mi takie co?: Nie jeste? w ekipie serwera.
Jak kto? mi pomo?e, to stawiam piwo
Pozdrawiam.