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: /admins
1. JustPlay jak być wyś pod /admins ?
Hej co zrobić aby być wyś. Jako Admin Moderator Zarząd w tej tabelce

Jestem wpisany do bazy danych pod tr_admins

2. Widoczność pod /admins XYZZYRP
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.
3. Nie wyświetla duty na scoreboard i /admins
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
4. /admins
Witam szukam skrypty na antyspam komed? /admins.
5. /admins
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,...
6. /admins
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


addEventHandler("onPlayerLogin", root,
function(...
7. komenda /admins
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


addEventHandler("onPlayerLogin", root,
function(...
8. Nie działa mi /admins
Mam problem nie pokazuje mnie na /admins jak jestem na duty!
9. Komenda /admins
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
10. /admins
[lua]
addCommandHandler ( "admins", function ( plr, cmd )
admini = {}
support = {}
super = {}
for _,v in ipairs ( getElementsByType ( "player" ) ) do
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(v)), aclGetGroup ( "RCON" ) ) then
nick = "#FFFFFF"..getPlayerName "#0066cc["..getElementData(v,"id").."]" (v)
table.insert ( admini, nick )
end
end
outputChatBox ( "* ROOTy online:", plr, 255,0,0 )
--outputChatBox ( " ", plr, 255, 255, 0 )
if #admini > 0 then
c = table.concat ( admini, ", " )
outputChatBox ( c, plr, 255, 255, 255, true )
else
outputChatBox ( "--", plr,255,255,255,true )
end
-------------RCON
for _,v in ipairs ( getElementsByType ( "player" ) ) do
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(v)), aclGetGroup ( "Administrator" ) ) then
nick = "#FFFFFF"..getPlayerName "#0066cc["..getElementData(v,"id").."]" (v)
table.insert ( support, nick )
end
end
outputChatBox ( "#ff9900* Administratorzy online:", plr, 255,0,0, true )
--outputChatBox ( " ", plr, 0, 255, 255, true )
if #support > 0 then
c = table.concat ( support...
11. Widoczność na mapie i nowe rangi pod cmd /admins - XyzzyRP
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
12. /admins - ponownie
Wykorzysta?em kod od http://gtao.pl/on-line-vt101287.htm#642570.
SS'y : [img]http://imgur.com/OWIlWvC[/img]

(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...
13. /admins
Przerwa 8 miesiecy od lua robi swoje :/ . Chodzi mi o to, ?eby po /admins wyskakiwa?y nicki dostepnych RCON'ow.

function Admins (prl)
    for 
k,v in ipairs(players) do
    
local accountname ""
    
accountname getAccountName (getPlayerAccount(v))
    if (
isGuestAccount(getPlayerAccount(v)) == falsethen
        
if isObjectInACLGroup "user." .. accountnameaclGetGroup "admin" ) ) then
         outputChatBox 
("RCON'i:"prl255,0,0)
         
outputChatBox ("RCON,RCON,RCON"prl)
    
end
end
addCommandHandler 
("admins"Admins)
14. Tworzenie pojazdów / /ADMINS
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.

addCommandHandler("veh.create", function(plrcmdmodel)
    
local login getPlayerName(plr)
    if 
sprawdzRoota(login) == getPlayerName(plr) or sprawdzAdmina(login) == getPlayerName(plr) or sprawdzModeratora(login) == getPlayerName(plrthen
        
if (not modelthen
            outputChatBox
("U?yj: /veh.create <model>"plr)
            return
        
end
        
        local x
,y,getElementPosition(plr)
        
local r1,r2,r3 getElementRotation(plr)
        
local model getVehicleModelFromName(model)
        
local pojazd createVehicle(modelxyzr1r2r3)
        
warpPedIntoVehicle(plrpojazd)
    
end
end
)


2------- Witam, mam problem ot?? chc? zrobi? ?e po wpisaniu /admins pokazuj? si? admini z xml wszyscy dodani m?g?by kto? poda? przyk?ad?
15. [GF] Komenda /admins w GUI (Lista)
Witam.

Mam problem z przerobieniem tej komendy:

Kod:

CMD:admins(playerid, cmdtext[])
{
if(!ToAdminLevel(playerid,1)) return 0;
foreach(Player,i)
{
if(Zalogowany[i]&&PlayerInfo[i][pAdmin]>=1)
{
format(String, sizeof(String),"[%d] Admin %s (%s), ranga: %d",i,PlayerInfo[i][pNickOOC],Nick[i],PlayerInfo[i][pAdmin]);
SendClientMessage(playerid,KOLOR_ADMIN,String);

}
}
return 1;
}


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?.

Z g?ry dzi?kuj? za pomoc.[/code]
16. [INNE] Komenda /admins w gui
Chcia?bym t? komend? przerobi? na zcmd i ?eby jeszcze wy?wietla?o zwyk?ych Admin?w.

Kod:

if(strcmp(cmdtext, "/admins", true) == 0)
{
new Name[MAX_PLAYER_NAME], String[128], Count;
for(new i, mp = GetMaxPlayers(); i < mp; i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
GetPlayerName(i, Name, MAX_PLAYER_NAME);

format(String, sizeof(String), "%sn%s (id %d) - Administrator [RCON]", String, Name, i);
Count++;
}
}

if(Count)
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Admini online:", String, "Ok", "Ok");
else
SendClientMessage(playerid, -1, "Nie ma administrator?w online.");

return 1;
}


Za pomoc piwka![/code]
17. [SKRYPT] [INNE] Komenda /admins w
Wiele os?b chcia?o, prosz?:

Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.

Jest to kod. :P