Jump to content

Seba500PLK

Members
  • Posts

    239
  • Joined

  • Last visited

Everything posted by Seba500PLK

  1. I found some code, now help with this. He wants to list the screen but does not work. "Twoje PP" does not exist on the screen. Help This is not the whole part of the code --Client function getPlayerPoints (thePlayer) if saveMethod == "accounts" then if not isGuestAccount(getPlayerAccount(thePlayer)) then local account = getPlayerAccount(thePlayer) local points = getAccountData(account, "points_class") return tonumber(points) else outputDebugString("pointsystem_classes - getPlayerPoints (Account is guest! Can't get points!)") end elseif saveMethod == "database" then local serial = getPlayerSerial(thePlayer) local points = executeSQLSelect ( "pointsystem_classes", "points","serial = '" .. serial .. "'") if points then return tonumber(points[1]["points"]) else outputDebugString("pointsystem_classes - getPlayerPoints (Database unknow problem! Can't get points!)") end end end --Server addEventHandler("onClientResourceStart", resourceRoot, function() end ) addEventHandler("onClientRender", root, function() screenWidth, screenHeight = guiGetScreenSize() local cash2 = getPlayerPoints( getLocalPlayer() ) dxDrawText("Twoje PP: #FF0000"..cash2, screenWidth * 0.7 / 2, screenHeight * 0, screenWidth * 0.5 / 2, screenHeight * 0, tocolor(2, 2, 214, 255), 1, "bankgothic", "left", "top", false, false, true, true) --dxDrawText(""..cash, screenWidth * 0.76 / 2, screenHeight * 0.003, screenWidth * 0.5 / 2, screenHeight * 0, tocolor(255, 0, 0, 255), 0.80, "bankgothic", "left", "top", false, false, true, false, false) end )
  2. Hello, whether it is possible to create a second currency to the server?, the second currency wants to use to buy vip If possible ask for any some code
  3. ok all works thanks. thank you for your commitment Final code: --Server Side addEventHandler("onPlayerLogin",root, function ( ) local gPlayersInGroup = {} for _, nMax in ipairs ( getElementsByType ( 'player' )) do local nAccount = getAccountName(getPlayerAccount(nMax)) if (nAccount) then if isObjectInACLGroup ( "user." .. nAccount, aclGetGroup ( "Admin" ) ) then blip1 = createBlip( 1586.1999511719, 1236.4000244141, 9.800000190735, 35, 2, 255, 0, 0, 255, 0, 99999, nMax) end end end end )
  4. ohhhh problem, as I come out of the server and will enter it disappears from the map
  5. [2014-08-12 14:06:03] WARNING: [DayZ-MTA]/baza1marker2/baza1marker2s.lua:15: Bad argument @ 'createBlip' [Expected element at argument 12, got table]
  6. I have to be in groups, because he wants an automated system. Whoever buys this base gets Blip
  7. Now I see just me, how to make a group admins saw it? addEventHandler("onResourceStart",resourceRoot, function ( ) for _, nMax in ipairs ( getElementsByType ( 'player' )) do local nAccount = getAccountName(getPlayerAccount(nMax)) if (nAccount) then --if isObjectInACLGroup ( "user." .. nAccount, aclGetGroup ( "Admin" ) ) then blip1 = createBlip( 1586.1999511719, 1236.4000244141, 9.800000190735, 35, 2, 255, 0, 0, 255, 0, 99999, getPlayerFromName("Seba500PLK") ) --return --end end end end )
  8. [2014-08-12 12:20:41] ERROR: [DayZ-MTA]/baza1marker2/baza1marker2s.lua:5: attempt to concatenate local 'nAccount' (a boolean value) [2014-08-12 12:20:41] WARNING: [DayZ-MTA]/baza1marker2/baza1marker2s.lua:4: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got boolean] [2014-08-12 12:20:41] WARNING: [DayZ-MTA]/baza1marker2/baza1marker2s.lua:4: Bad argument @ 'getAccountName' [Expected account at argument 1, got player]
  9. Hi, does not display blip. Please help me In Server-Side function blips() local account = getPlayerAccount (localPlayer) if isObjectInACLGroup ( "user." .. getAccountName(account), aclGetGroup ( "Admin" ) ) then blip1 = createBlip( 1586.1999511719, 1236.4000244141, 9.800000190735, 35, 2, 255, 0, 0, 255, 0, 99999 ) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()),blips) in Client-side clear
×
×
  • Create New...