-
Posts
239 -
Joined
-
Last visited
Everything posted by Seba500PLK
-
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.
-
already gives'm sorry I did not have internet No, errors
-
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)
-
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)
-
[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)
-
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
-
it can be done?
-
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)
-
ok, works. THX
-
no work in grid show: Player ________________________
-
ok send
-
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
-
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 )
-
not trying to have something to work
-
Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got resource-data] Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got table]
-
grid show: Payer ____________________________
-
http://seba500plk.bl.ee/mta1.png
-
0.o in grid: AbbSS what is it?
-
Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got resource-data]
-
logged and grid just shows : Player ________________________
-
Bad argument @ 'guiGridListSetItemText'[Expected string at argument 4, got nil]
-
help me anyone?
