Jump to content

Seba500PLK

Members
  • Posts

    239
  • Joined

  • Last visited

Everything posted by Seba500PLK

  1. Hi, if you can make the MTA page and will be available for everyone? I made this page in the MTA, but as someone enters it asks for a password and login.
  2. already gives'm sorry I did not have internet No, errors
  3. Hi, I want to make this bind work only admins. I have this code, but bind runs each --Client addEventHandler("onClientResourceStart",resourceRoot, function() if not isElement(window1) then shopInterface6() end bindKey ( "F2", "down", openGui ) end ) function openGui(a) if (a) then if not isElement(window1) then shopInterface6() end if not guiGetVisible(window1) then --stats() guiSetVisible ( window1, true ) showCursor(true) else guiSetVisible ( window1, false ) showCursor(false) end end end addEvent("accadmin", true) addEventHandler("accadmin", getRootElement(), openGui) --Server function accb() local account = getPlayerAccount ( source ) triggerClientEvent(playerSource, "accadmin", playerSource, isObjectInACLGroup ( "user." .. getAccountName(account), aclGetGroup ( "Admin" ) )) end addEventHandler("onClientResourceStart", resourceRoot, accb)
  4. Witam, czy jest możliwość przerobienia tego skyptu tak, aby pokazywał graczy online, a także offline z danej grupy? Mam coś takiego ale tylko pokazuje ludzi online. Prosiłbym o pomoc. Z góry dziękuje --Server function getgroup (player) players = getElementsByType ( "player" ) admins = "" for k,v in ipairs(players) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "BazaAdminow" ) ) then if (admins == "") then admins = getAccountName (getPlayerAccount(v)) else admins = admins .. ", " .. getAccountName (getPlayerAccount(v)) end end end end outputChatBox( "Base Own:", player, 255, 255, 0) outputChatBox( " " .. tostring ( admins ), player, 255, 255, 0) end addCommandHandler ("gettest", getgroup)
  5. [2014-08-15 22:28:33] ERROR: [DayZ-MTA]/infopanel/infos.lua:6: bad argument #1 to 'ipairs' (table expected, got boolean) [2014-08-15 22:28:33] WARNING: [DayZ-MTA]/infopanel/infos.lua:4: Bad argument @ 'getElementsByType' [Expected string at argument 1, got table] [2014-08-15 22:28:33] WARNING: [DayZ-MTA]/infopanel/infos.lua:3: Bad argument @ 'getAccountPlayer' [Expected account at argument 1, got trying to figure something out, but I do not it goes function getgroup (player ) local thePlayer = getAccountPlayer ( getAccounts () ) players = getElementsByType ( thePlayer ) admins = "" for k,v in ipairs(players) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "BazaAdminow" ) ) then if (admins == "") then admins = getAccountName (getPlayerAccount(v)) else admins = admins .. ", " .. getAccountName (getPlayerAccount(v)) end end end end outputChatBox( "Base Owns:", player, 255, 255, 0) outputChatBox( " " .. tostring ( admins ), player, 255, 255, 0) end addCommandHandler ("gettest", getgroup)
  6. I have no idea how to connect with each other. When you insert getAccounts () is the amount of accounts is shown, and I'm talking about the names in the group
  7. hi, I can do that showed the players offline? --Server function getgroup (player) players = getElementsByType ( "player" ) admins = "" for k,v in ipairs(players) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "BazaAdminow" ) ) then if (admins == "") then admins = getAccountName (getPlayerAccount(v)) else admins = admins .. ", " .. getAccountName (getPlayerAccount(v)) end end end end outputChatBox( "Base Own:", player, 255, 255, 0) outputChatBox( " " .. tostring ( admins ), player, 255, 255, 0) end addCommandHandler ("gettest", getgroup)
  8. no work in grid show: Player ________________________
  9. 1 shows only one person 2 Because on my server instead of nick which is set in the settings, it has a nickname of login
  10. I did something like that but my nickname is repeated as many times as there are players --Client function gridacc (account) local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText(playerList, row, column, account, false, false ) end end end addEvent("onAccountsSend",true) addEventHandler("onAccountsSend",root, gridacc) addEventHandler ( 'onClientResourceStart', resourceRoot, gridacc )
  11. not trying to have something to work
  12. Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got resource-data] Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got table]
  13. grid show: Payer ____________________________
  14. Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got resource-data]
  15. logged and grid just shows : Player ________________________
  16. Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got nil]
×
×
  • Create New...