{"action":"created","issue":{"url":"https://api.github.com/repos/lpiob/MTA-XyzzyRP/issues/307","repository_url":"https://api.github.com/repos/lpiob/MTA-XyzzyRP","labels_url":"https://api.github.com/repos/lpiob/MTA-XyzzyRP/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/lpiob/MTA-XyzzyRP/issues/307/comments","events_url":"https://api.github.com/repos/lpiob/MTA-XyzzyRP/issues/307/events","html_url":"https://github.com/lpiob/MTA-XyzzyRP/issues/307","id":138663375,"number":307,"title":"Jak dodać nowe rangi, RCON oraz pracownik Techniczny?","user":{"login":"LisegMTA","id":17669507,"avatar_url":"https://avatars.githubusercontent.com/u/17669507?v=3","gravatar_id":"","url":"https://api.github.com/users/LisegMTA","html_url":"https://github.com/LisegMTA","followers_url":"https://api.github.com/users/LisegMTA/followers","following_url":"https://api.github.com/users/LisegMTA/following{/other_user}","gists_url":"https://api.github.com/users/LisegMTA/gists{/gist_id}","starred_url":"https://api.github.com/users/LisegMTA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LisegMTA/subscriptions","organizations_url":"https://api.github.com/users/LisegMTA/orgs","repos_url":"https://api.github.com/users/LisegMTA/repos","events_url":"https://api.github.com/users/LisegMTA/events{/privacy}","received_events_url":"https://api.github.com/users/LisegMTA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-05T09:17:53Z","updated_at":"2016-03-12T10:03:07Z","closed_at":null,"body":"Witam, mam problem z dodaniem nowych rang [XyzyRP]. Głównie zależy mi na randze RCON. Czy mogłbyktoś podesłać fragment ACL'a z oto tą rangą ? Chciałbym żeby miała ona wszystkie możliwości. Z góry dzięki."},"comment":{"url":"https://api.github.com/repos/lpiob/MTA-XyzzyRP/issues/comments/195708115","html_url":"https://github.com/lpiob/MTA-XyzzyRP/issues/307#issuecomment-195708115","issue_url":"https://api.github.com/repos/lpiob/MTA-XyzzyRP/issues/307","id":195708115,"user":{"login":"LisegMTA","id":17669507,"avatar_url":"https://avatars.githubusercontent.com/u/17669507?v=3","gravatar_id":"","url":"https://api.github.com/users/LisegMTA","html_url":"https://github.com/LisegMTA","followers_url":"https://api.github.com/users/LisegMTA/followers","following_url":"https://api.github.com/users/LisegMTA/following{/other_user}","gists_url":"https://api.github.com/users/LisegMTA/gists{/gist_id}","starred_url":"https://api.github.com/users/LisegMTA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LisegMTA/subscriptions","organizations_url":"https://api.github.com/users/LisegMTA/orgs","repos_url":"https://api.github.com/users/LisegMTA/repos","events_url":"https://api.github.com/users/LisegMTA/events{/privacy}","received_events_url":"https://api.github.com/users/LisegMTA/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T10:03:06Z","updated_at":"2016-03-12T10:03:06Z","body":"> --[[\r\n> @author Lukasz Biegaj <wielebny@bestplay.pl>\r\n> @author Karer <karer.programmer@gmail.com>\r\n> @author WUBE <wube@lss-rp.pl>\r\n> @copyright 2011-2013 Lukasz Biegaj <wielebny@bestplay.pl>\r\n> @license Dual GPLv2/MIT\r\n> ]]--\r\n> \r\n> \r\n> \r\n> function cmd_admins(plr)\r\n> local supporterzy={}\r\n> local admini={}\r\n> local rcon={}\r\n> for i,v in ipairs(getElementsByType(\"player\")) do\r\n> if (isAdmin(v)) then\r\n> local t\r\n> local login=getElementData(v,\"auth:login\")\r\n> if (login) then\r\n> t=login..\"(\"..getElementData(v,\"id\")..\")\"\r\n> --[[\r\n> if (getElementData(v,\"pmoff\")) then\r\n> t=login..\"(-)\"\r\n> else\r\n> t=login..\"(\"..getElementData(v,\"id\")..\")\"\r\n> end\r\n> ]]--\r\n> table.insert(admini,t)\r\n> end\r\n> \r\n> elseif (isSupport(v)) then\r\n> local t\r\n> local login=getElementData(v,\"auth:login\")\r\n> if (login) then\r\n> t=login..\"(\"..getElementData(v,\"id\")..\")\"\r\n> --[[\r\n> if (getElementData(v,\"pmoff\")) then\r\n> t=login..\"(-)\"\r\n> else\r\n> t=login..\"(\"..getElementData(v,\"id\")..\")\"\r\n> end\r\n> ]]--\r\n> \r\n> table.insert(supporterzy,t)\r\n> end\r\n> end\r\n> end\r\n> outputChatBox(\"RCON:\", plr, 50,0,0)\r\n> if (#rcon>0) then\r\n> outputChatBox(\" \" .. table.concat(rcon,\", \"), plr)\r\n> else\r\n> outputChatBox(\" brak\", plr)\r\n> end\r\n> outputChatBox(\"Administratorzy:\", plr, 200,0,0)\r\n> if (#admini>0) then\r\n> outputChatBox(\" \" .. table.concat(admini,\", \"), plr)\r\n> else\r\n> outputChatBox(\" brak\", plr)\r\n> end\r\n> outputChatBox(\"Pracownik Techniczny:\", plr, 100,0,200)\r\n> if (#admini>0) then\r\n> outputChatBox(\" \" .. table.concat(admini,\", \"), plr)\r\n> else\r\n> outputChatBox(\" brak\", plr)\r\n> end\r\n> outputChatBox(\"Support:\", plr, 100,100,255)\r\n> if (#supporterzy>0) then\r\n> outputChatBox(\" \" .. table.concat(supporterzy,\", \"), plr)\r\n> else\r\n> outputChatBox(\" brak\", plr)\r\n> end\r\n> end\r\n> addCommandHandler(\"admins\", cmd_admins, false, false)\r\n> \r\n> local function outputChatBoxSplitted(text, target, c1,c2,c3, ca)\r\n> if (string.len(text)<128) then\r\n> outputChatBox(text, target, c1,c2,c3,ca)\r\n> return\r\n> end\r\n> local t=\"\"\r\n> for i,v in string.gmatch(text,\"(.)\") do\r\n> if (string.len(t)>0 and string.len(t)+string.len(i)>=128) then\r\n> outputChatBox(t, target, c1,c2,c3,ca)\r\n> t=\" \"\r\n> end\r\n> t=t..i\r\n> end\r\n> if (string.len(t)>0 and t~=\" \") then\r\n> outputChatBox(t, target, c1,c2,c3,ca)\r\n> end\r\n> \r\n> end\r\n> \r\n> addCommandHandler(\"losowanie\",function(player,cmd,yes,no)\r\n> if (not yes) or (not no) then outputChatBox(\"(( /losowanie [JEZELI TAK] [JEZELI NIE] ))\",player) return end\r\n> local rand = math.random(1,2)\r\n> if rand==1 then --yes\r\n> message = yes\r\n> else--no\r\n> message = no\r\n> end\r\n> local character = getElementData(player,\"character\")\r\n> if (not character) then\r\n> outputChatBox(\"Najpierw dołącz do gry\", player, 255, 0, 0,true)\r\n> return\r\n> end\r\n> local x,y,z = getElementPosition(player)\r\n> exports[\"lss-admin\"]:gameView_add(\"IC \" .. character.imie .. \" \" .. character.nazwisko .. \"/\"..getPlayerID(player)..\": /do - /losowanie \" .. message)\r\n> local strefa = createColSphere(x,y,z,30)\r\n> local gracze = getElementsWithinColShape(strefa, \"player\")\r\n> \r\n> for i,v in ipairs(gracze) do\r\n> if (getElementInterior(v)==getElementInterior(player) and getElementDimension(v)==getElementDimension(player)) then\r\n> outputChatBoxSplitted( \" * \" .. message .. \" #A0A0A0((\" .. character.imie .. \" \" .. character.nazwisko .. \" - /losowanie))\", v, 0x41, 0x69, 0xE1, true)\r\n> triggerClientEvent(v, \"onCaptionedEvent\", root, message, 10)\r\n> for i2,v2 in ipairs(getElementsByType(\"player\")) do\r\n> if (getCameraTarget(v2)==v and v~=v2) then\r\n> triggerClientEvent(v2, \"onCaptionedEvent\", root, message, 10)\r\n> outputChatBoxSplitted( \" * \" .. message .. \" #A0A0A0((\" .. character.imie .. \" \" .. character.nazwisko .. \" - /losowanie))\", v2, 0x41, 0x69, 0xE1, true) -- aqq\r\n> end\r\n> end\r\n> end\r\n> end\r\n> destroyElement(strefa)\r\n> \r\n> end) \r\n\r\nWitam proszę o przerobienie tego skryptu z command_misc. Rangi działają ale wyświetla mnie we wszystkich chciałbym (aby dało się dodać w jakiej randze kto się wyswietla, chyba ze zalezne to jest od ACL więc proszę o wytłumaczenie) abym wyswietlal się tylko w RCON, a nie wiem jak to przerobić.\r\n"}}