Witam. Mam pytanko, bo nie mog? sobie z tym poradzi?. Mam GM XyzzyRP i wszystko zrobi?em, doda?em sobie range w acl, itp. Ale chc? by? te? widoczny pod /admins ale nigdzie tego znale?? nie mog?. Szuka?em tabelek w mysql, uzupe?nia?em odpowiednio i nic. Czy m?g?by mi kto? pom?c?
Bo mam range globalnego admina ale i tak jestem ograniczony bo nie ma mnie pod admins I nie mam dost?pu do komend.
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
Wita,posiadam skrypt na duty admin z pystories 3.0, i robie kolejn? range Testowy Support,lecz jest problem ?e mnie nie ma pod /admins
KOD:
s_utilty
[lua]function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("#%.2X%.2X%.2X", red,green,blue)
end
end
function getAdmin(plr,level)
if getElementData(plr,"Ryjek") then return true end
if level then
local result=exports["pystories-db"]:dbGet("SELECT * from pystories_admins WHERE serial=? AND level=?", getPlayerSerial(plr), level)
if result and #result > 0 then
return true
else
return false
end
else
local result=exports["pystories-db"]:dbGet("SELECT * from pystories_admins WHERE serial=?", getPlayerSerial(plr))
if result and #result > 0 then
return true
else
return false
end
end
end
function cmd_admins(plr)
local moderatorzy={}
local admini={}
local rconi={}
local owner={}
for i,v in ipairs(getElementsByType("player")) do
local adminer = getElementData(v,"player:id")
if not getElementData(v,"Ryjek") then
--if not getElementData(v, "p:inv") then
if (getAdmin(v,...
Siema mam problem z /admins
Jak wpisze sie t? komende to pokazuje:
RCON:
Administratorzy:
Supporterzy:
I jak jestem w ACL w tym RCON to nie pokazuje mnie tam.
Bo wydaje mi si? ?e na XyzzyRP to s? po??czone kilka skrypt?w i dam tu kilka takich rzeczy i doradzicie co robic ?eby dzia?a?o?
lss-admin/base.lua
[lua]
function isRCON(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if accName and isObjectInACLGroup ("user."..accName, aclGetGroup ( "RCON" ) ) then
return true
end
return false
end
function getAdminName(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if accName and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" )) and not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Administrator" )) then
return "Zdalny"
else
return (getElementData(player,"auth:login") or getPlayerName(player))
end
end
function isSupport(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if accName and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
return true
end
return false
end
function msgToSupport(text)
for i,v in ipairs(getElementsByType("player")) do
if (getElementData(v,"auth:support")) then
outputChatBox(text, v)
end
end
end
Siema mam problem z /admins
Jak wpisze sie t? komende to pokazuje:
RCON:
Administratorzy:
Supporterzy:
I jak jestem w ACL w tym RCON to nie pokazuje mnie tam.
Bo wydaje mi si? ?e na XyzzyRP to s? po??czone kilka skrypt?w i dam tu kilka takich rzeczy i doradzicie co robic ?eby dzia?a?o?
lss-admin/base.lua
[lua]
function isRCON(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if accName and isObjectInACLGroup ("user."..accName, aclGetGroup ( "RCON" ) ) then
return true
end
return false
end
function getAdminName(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if accName and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" )) and not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Administrator" )) then
return "Zdalny"
else
return (getElementData(player,"auth:login") or getPlayerName(player))
end
end
function isSupport(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if accName and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
return true
end
return false
end
function msgToSupport(text)
for i,v in ipairs(getElementsByType("player")) do
if (getElementData(v,"auth:support")) then
outputChatBox(text, v)
end
end
end
Cze??, g?owie si? nad komend? admins.
A dok?adniej nad tym, ?e je?li kto? ma elementdate player:dutyrcon to wy?wietla jego nick w RCONach, m?g?bym otrzyma? jaki? przyk?ad jak to zrobi?? Z g?ry dzi?kuje
Witajcie,
To znowu ja i nadchodz? z kolejnymi problemami.
Ot?? chodzi mi oto ?e na mapie jak i na radarze nie wida? graczy,jak to ustawi??
Do tego jak doda? nowe rangi do acl by wy?wietla?y si? pod /admins
(doda?em tam tylko moderatora]
[lua]Admin = aclGetGroup ( "Admin" )
Rcon = aclGetGroup ( "RCON" )
Moderator = aclGetGroup ( "Moderator" )
function jestRCONem(gracz)
if not getPlayerAccount(gracz) then return false end
accName = getAccountName(getPlayerAccount(gracz))
if not accName then return false end
if isObjectInACLGroup ("user."..accName, Rcon ) then return true end
end
function jestADMINem(gracz)
if not getPlayerAccount(gracz) then return false end
accName = getAccountName(getPlayerAccount(gracz))
if not accName then return false end
if isObjectInACLGroup ("user."..accName, Admin ) then return true end
end
function jestModem(gracz)
if not getPlayerAccount(gracz) then return false end
accName = getAccountName(getPlayerAccount(gracz))
if not accName then return false end
if isObjectInACLGroup ("user."..accName, Moderator ) then return true end
end
addCommandHandler("admins", function(gracz,cmd)
admini = {}
rconi = {}
moderatorzy = {}
for k,v in ipairs(getElementsByType("player")) do
if jestRCONem(v) then
table.insert(rconi, getPlayerName(v))
elseif jestModem (v) then
table.insert(moderatorzy, getPlayerName(v))
elseif jestADMINem(v) then
table.insert(admini, getPla...
1 ----- Witam, mam pytania jednak?e zrobi?em sobie skrypt na spawnowanie pojazd?w lecz, chc? aby np je?eli siedz? w poje?dzie i wpisuje /veh.create to zamienia?by si? pojazd na ten nowy a nie tworzy? nowy na moim poje?dzie.
Na list? GUI. Tak jak np. na net4game, ls-rp itp. Prosz? o pomoc, gdy? chce si? tego nauczy?. Najlepiej prosi?bym o podes?anie jakiego? kodu, z kt?rego wszystkiego bym si? nauczy?.