Jump to content

HelpGuys

Members
  • Posts

    106
  • Joined

  • Last visited

Everything posted by HelpGuys

  1. --سيرفر function Enviar (cantidad, name) for i,v in ipairs(getElementsByType("player")) do setElementData(v, "PlayTime", getElementData(v,"PlayTime") or 0 ) + cantidad end outputChatBox("ساعة ["..cantidad.."] قامت الادارة بأعطاء حميع اللاعبين",root,255,255,255,true) end addEvent("SendHours1", true) addEventHandler("SendHours1", getRootElement(), Enviar)
  2. --كلينت local sX, sY = guiGetScreenSize () addEventHandler("onClientRender", root, function () if ( getElementData ( resourceRoot, "Have_" ) == true ) then local Lines = getChatboxLayout ()["chat_lines"] if ( Lines <= 10 ) then Lines = Lines + 1 elseif ( Lines >= 20 ) then Lines = Lines - 1 else Lines = Lines end if ( getElementData ( resourceRoot, "Msg_" ) == "delete" ) then setElementData ( resourceRoot, "Have_", false ) else dxDrawBorderedText ( "#1a75ff Admin : #FFFFFF" .. getElementData ( resourceRoot, "Msg_" ).. "", 20, 200, 300, 300, tocolor(255, 255, 255, 255), 1.0, "default-bold", "left", "top", true, false, true, true, false) dxDrawBorderedText ( "".. getElementData ( resourceRoot, "By_" ) .."", 20, 219, 300, 300, tocolor(255, 255, 255, 255), 1.0, "default-bold", "left", "top", false, false, false, false, false) end end end) bindKey("u", "down", "chatbox","IM") function dxDrawBorderedText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 ) local wh = 1 local msg_gsub = text:gsub ( '#%x%x%x%x%x%x', '' ) dxDrawText ( msg_gsub, x - wh, y - wh, w - wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) -- black dxDrawText ( msg_gsub, x + wh, y - wh, w + wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) dxDrawText ( msg_gsub, x - wh, y + wh, w - wh, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) dxDrawText ( msg_gsub, x + wh, y + wh, w + wh, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) dxDrawText ( msg_gsub, x - wh, y, w - wh, h, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) dxDrawText ( msg_gsub, x + wh, y, w + wh, h, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) dxDrawText ( msg_gsub, x, y - wh, w, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) dxDrawText ( msg_gsub, x, y + wh, w, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 ) end --سيرفر local Groups = { "Console", "AL-3GeD" } function isPlayerAdmin(player) for k,v in ipairs ( Groups ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then return true end end end addCommandHandler("IM", function ( player, cmd, ... ) if not ( isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( isPlayerAdmin ( player ) ) then local msg = {...} local message = table.concat(msg, " ") setElementData ( resourceRoot, "Have_", true ) setElementData ( resourceRoot, "Msg_", message ) if ( getElementData ( player, "Name" ) and getElementData ( player, "Name" ) ~= false ) then setElementData ( resourceRoot, "By_", getElementData ( player, "Name" )) else setElementData ( resourceRoot, "By_", getPlayerName ( player )) end else end else end end)
  3. 
    aTable = {
    
    	{ "2-", "  "  },
    	{ "3-", "  "  },
    	{ "4-", "  "  },
    	{ "5-", "  "  },
    
    }
    
    Mrc = {
    	{ "1-", "  "  },
    	{ "2-", "  "  },
    	{ "3-", "  "  },
    	{ "4-", "  "  },
    	{ "5-", "  "  },
    
    }
    
    GUIEditor = {
        tab = {},
        tabpanel = {},
        button = {},
        window = {},
        gridlist = {}
    }
    local screenW, screenH = guiGetScreenSize()
    GUIEditor.window[1] = guiCreateWindow((screenW - 655) / 2, (screenH - 391) / 2, 655, 391, "-x لــوحة أعلــى الاعبــــبين x-", false)
    guiWindowSetSizable(GUIEditor.window[1], false)
    guiSetAlpha(GUIEditor.window[1], 1.00)
    guiSetVisible(GUIEditor.window[1], false)
    
    GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 33, 635, 322, false, GUIEditor.window[1])
    
    GUIEditor.tab[1] = guiCreateTab("أعلى [ 10 ] تواجد", GUIEditor.tabpanel[1])
    
    GUIEditor.gridlist[1] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[1])
    guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
    guiGridListAddColumn(GUIEditor.gridlist[1], "Hours", 0.5)
    
    addPlayers = function()
    	setTimer( function()
    		guiGridListClear(GUIEditor.gridlist[1])
    		timeTable = {  };
    			for _, player in ipairs( getElementsByType( 'player' ) ) do
    				table.insert( timeTable, { name = getPlayerName( player ), hours = getElementData( player, "PlayTime" ) or "0:0:0", hSort = tonumber(split(getElementData( player, "PlayTime" ) or "0:0:0", ":")[1]) or 0 } )
    			end
    		table.sort( timeTable, function(a, b)
    			return tonumber(a.hSort) > tonumber(b.hSort)
    		end )
    			for i, _ in ipairs( timeTable ) do
    			local row = guiGridListAddRow( GUIEditor.gridlist[1] )
    			guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, i.."- "..timeTable[i].name, false, false )
    			guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, timeTable[i].hours, false, false )
    			guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, 255, 0, 0)
    			guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 5, 255, 0)
    		end
    	end, 1000, 0 )
    end
    addPlayers( )
    
    GUIEditor.tab[2] = guiCreateTab("أعلى [ 10 ] لفل", GUIEditor.tabpanel[1])
    
    GUIEditor.gridlist[2] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[2])
    guiGridListAddColumn(GUIEditor.gridlist[2], "Player", 0.3)
    guiGridListAddColumn(GUIEditor.gridlist[2], "Level", 0.3)
    guiGridListAddColumn(GUIEditor.gridlist[2], "Kills", 0.3)
    
    function getTopLevel(  )
    	levelTable = {  };
    		for _, player in ipairs( getElementsByType( 'player' ) ) do
    			local lvl = getElementData( player, 'Level' ) or '0'
    			local kls = getElementData( player, 'Kills' ) or '0'
    				table.insert( levelTable, { plr = player, Level = lvl, Kills = kls } )
    			end
    		table.sort( levelTable,
    			function( min, max )
    		return ( tonumber( min.Kills ) or '' ) > ( tonumber( max.Kills ) ), ( tonumber( min.Level ) or '' ) > ( tonumber( max.Level ) )
    	end )
    return levelTable
    end
    setTimer( function(  )
    guiGridListClear( GUIEditor.gridlist[2] )
    	local pLevel = getTopLevel(  )
    			for num = 1, #getElementsByType( 'player' ) do
    				if ( num >= 10 ) then return end
    					if ( pLevel[1] ) then
    				local row = guiGridListAddRow( GUIEditor.gridlist[2] )
    			local pName = guiGridListSetItemText( GUIEditor.gridlist[2], row, 1, num..'- '..getPlayerName( pLevel[num].plr ), false, false )
    		local pValue = guiGridListSetItemText( GUIEditor.gridlist[2], row, 2, pLevel[num].Level, false, false )
    		local pValue2 = guiGridListSetItemText( GUIEditor.gridlist[2], row, 3, pLevel[num].Kills, false, false )
    			guiGridListSetItemColor( GUIEditor.gridlist[2], row, 100, 100, 100, 0)
    		guiGridListSetItemColor( GUIEditor.gridlist[2], row, 1, 255, 0, 0)
    		guiGridListSetItemColor( GUIEditor.gridlist[2], row, 2, 5, 255, 0)
    	end
    end
    end, 1000, 0 )

    Heroيعني لما اخش لسيرفر بأسم كذا 
    فلوحة يكون اسمي كذا 
     

    ✖ ᕼᕮᖇO ✖
     
    1. Master_MTA

      Master_MTA

      aTable = {
      
      	{ "2-", "  "  },
      	{ "3-", "  "  },
      	{ "4-", "  "  },
      	{ "5-", "  "  },
      
      }
      
      Mrc = {
      	{ "1-", "  "  },
      	{ "2-", "  "  },
      	{ "3-", "  "  },
      	{ "4-", "  "  },
      	{ "5-", "  "  },
      
      }
      
      GUIEditor = {
          tab = {},
          tabpanel = {},
          button = {},
          window = {},
          gridlist = {}
      }
      local screenW, screenH = guiGetScreenSize()
      GUIEditor.window[1] = guiCreateWindow((screenW - 655) / 2, (screenH - 391) / 2, 655, 391, "-x لــوحة أعلــى الاعبــــبين x-", false)
      guiWindowSetSizable(GUIEditor.window[1], false)
      guiSetAlpha(GUIEditor.window[1], 1.00)
      guiSetVisible(GUIEditor.window[1], false)
      
      GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 33, 635, 322, false, GUIEditor.window[1])
      
      GUIEditor.tab[1] = guiCreateTab("أعلى [ 10 ] تواجد", GUIEditor.tabpanel[1])
      
      GUIEditor.gridlist[1] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[1])
      guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
      guiGridListAddColumn(GUIEditor.gridlist[1], "Hours", 0.5)
      
      addPlayers = function()
      	setTimer( function()
      		guiGridListClear(GUIEditor.gridlist[1])
      		timeTable = {  };
      			for _, player in ipairs( getElementsByType( 'player' ) ) do
              local plrname=getPlayerName( player )
              if getPlayerName(player)=='Hero' then plrname='✖ ᕼᕮᖇO ✖' end
      				table.insert( timeTable, { name =plrname , hours = getElementData( player, "PlayTime" ) or "0:0:0", hSort = tonumber(split(getElementData( player, "PlayTime" ) or "0:0:0", ":")[1]) or 0 } )
      			end
      		table.sort( timeTable, function(a, b)
      			return tonumber(a.hSort) > tonumber(b.hSort)
      		end )
      			for i, _ in ipairs( timeTable ) do
      			local row = guiGridListAddRow( GUIEditor.gridlist[1] )
      			guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, i.."- "..timeTable[i].name, false, false )
      			guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, timeTable[i].hours, false, false )
      			guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, 255, 0, 0)
      			guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 5, 255, 0)
      		end
      	end, 1000, 0 )
      end
      addPlayers( )
      
      GUIEditor.tab[2] = guiCreateTab("أعلى [ 10 ] لفل", GUIEditor.tabpanel[1])
      
      GUIEditor.gridlist[2] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[2])
      guiGridListAddColumn(GUIEditor.gridlist[2], "Player", 0.3)
      guiGridListAddColumn(GUIEditor.gridlist[2], "Level", 0.3)
      guiGridListAddColumn(GUIEditor.gridlist[2], "Kills", 0.3)
      
      function getTopLevel(  )
      	levelTable = {  };
      		for _, player in ipairs( getElementsByType( 'player' ) ) do
      			local lvl = getElementData( player, 'Level' ) or '0'
      			local kls = getElementData( player, 'Kills' ) or '0'
      				table.insert( levelTable, { plr = player, Level = lvl, Kills = kls } )
      			end
      		table.sort( levelTable,
      			function( min, max )
      		return ( tonumber( min.Kills ) or '' ) > ( tonumber( max.Kills ) ), ( tonumber( min.Level ) or '' ) > ( tonumber( max.Level ) )
      	end )
      return levelTable
      end
      setTimer( function(  )
      guiGridListClear( GUIEditor.gridlist[2] )
      	local pLevel = getTopLevel(  )
      			for num = 1, #getElementsByType( 'player' ) do
      				if ( num >= 10 ) then return end
      					if ( pLevel[1] ) then
                      local plrname=getPlayerName( pLevel[num].plr  )
              if getPlayerName(pLevel[num].plr )=='Hero' then plrname='✖ ᕼᕮᖇO ✖' end
      				local row = guiGridListAddRow( GUIEditor.gridlist[2] )
      			local pName = guiGridListSetItemText( GUIEditor.gridlist[2], row, 1, num..'- '..getPlayerName( pLevel[num].plr ), false, false )
      		local pValue = guiGridListSetItemText( GUIEditor.gridlist[2], row, 2, pLevel[num].Level, false, false )
      		local pValue2 = guiGridListSetItemText( GUIEditor.gridlist[2], row, 3, pLevel[num].Kills, false, false )
      			guiGridListSetItemColor( GUIEditor.gridlist[2], row, 100, 100, 100, 0)
      		guiGridListSetItemColor( GUIEditor.gridlist[2], row, 1, 255, 0, 0)
      		guiGridListSetItemColor( GUIEditor.gridlist[2], row, 2, 5, 255, 0)
      	end
      end
      end, 1000, 0 )

      اهم شي يكون اسمك

      Hero

      بدون اكواد الوان

    2. HelpGuys

      HelpGuys

      تم ححطيت أخي منجحت ولو سمحت بدي ايها على سريال مهو اي شخص يخش بأسم هيرو في لوحة يكون اسمها هيك سمحني اخي مزبطت

    3. salh
  4. aTable = { { "2-", " " }, { "3-", " " }, { "4-", " " }, { "5-", " " }, } Mrc = { { "1-", " " }, { "2-", " " }, { "3-", " " }, { "4-", " " }, { "5-", " " }, } GUIEditor = { tab = {}, tabpanel = {}, button = {}, window = {}, gridlist = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 655) / 2, (screenH - 391) / 2, 655, 391, "-x لــوحة أعلــى الاعبــــبين x-", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 33, 635, 322, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("أعلى [ 10 ] تواجد", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Hours", 0.5) addPlayers = function() setTimer( function() guiGridListClear(GUIEditor.gridlist[1]) timeTable = { }; for _, player in ipairs( getElementsByType( 'player' ) ) do table.insert( timeTable, { name = getPlayerName( player ), hours = getElementData( player, "PlayTime" ) or "0:0:0", hSort = tonumber(split(getElementData( player, "PlayTime" ) or "0:0:0", ":")[1]) or 0 } ) end table.sort( timeTable, function(a, b) return tonumber(a.hSort) > tonumber(b.hSort) end ) for i, _ in ipairs( timeTable ) do local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, i.."- "..timeTable[i].name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, timeTable[i].hours, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 5, 255, 0) end end, 1000, 0 ) end addPlayers( ) GUIEditor.tab[2] = guiCreateTab("أعلى [ 10 ] لفل", GUIEditor.tabpanel[1]) GUIEditor.gridlist[2] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Player", 0.3) guiGridListAddColumn(GUIEditor.gridlist[2], "Level", 0.3) guiGridListAddColumn(GUIEditor.gridlist[2], "Kills", 0.3) function getTopLevel( ) levelTable = { }; for _, player in ipairs( getElementsByType( 'player' ) ) do local lvl = getElementData( player, 'Level' ) or '0' local kls = getElementData( player, 'Kills' ) or '0' table.insert( levelTable, { plr = player, Level = lvl, Kills = kls } ) end table.sort( levelTable, function( min, max ) return ( tonumber( min.Kills ) or '' ) > ( tonumber( max.Kills ) ), ( tonumber( min.Level ) or '' ) > ( tonumber( max.Level ) ) end ) return levelTable end setTimer( function( ) guiGridListClear( GUIEditor.gridlist[2] ) local pLevel = getTopLevel( ) for num = 1, #getElementsByType( 'player' ) do if ( num >= 10 ) then return end if ( pLevel[1] ) then local row = guiGridListAddRow( GUIEditor.gridlist[2] ) local pName = guiGridListSetItemText( GUIEditor.gridlist[2], row, 1, num..'- '..getPlayerName( pLevel[num].plr ), false, false ) local pValue = guiGridListSetItemText( GUIEditor.gridlist[2], row, 2, pLevel[num].Level, false, false ) local pValue2 = guiGridListSetItemText( GUIEditor.gridlist[2], row, 3, pLevel[num].Kills, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 100, 100, 100, 0) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 2, 5, 255, 0) end end end, 1000, 0 ) Heroيعني لما اخش لسيرفر بأسم كذا فلوحة يكون اسمي كذا ✖ ᕼᕮᖇO ✖
  5. اوك اخوي الحين رح افتح موضوع
  6. elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 local Serials = { ["Serial"] = true } if Serials[getPlayerSerial(yourPlayer) then return end setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( isPedInVehicle ( to ) ) then local vehicle = getPedOccupiedVehicle ( to ) local seats = getVehicleMaxPassengers ( vehicle ) + 1 local i = 0 while ( i < seats ) do if ( not getVehicleOccupant ( vehicle, i ) ) then setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i ) fadeCamera ( p, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) break end i = i + 1 end if ( i >= seats ) then warp ( p, to ) outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p ) end else warp ( p, to ) end end if ( action == "warp" ) then warpPlayer ( source, player ) else warpPlayer ( player, data ) mdata = getPlayerName ( data ) end else action = nil end if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 local Serials = { ["Serial"] = true } if Serials[getPlayerSerial(yourPlayer) then return end setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( isPedInVehicle ( to ) ) then local vehicle = getPedOccupiedVehicle ( to ) local seats = getVehicleMaxPassengers ( vehicle ) + 1 local i = 0 while ( i < seats ) do if ( not getVehicleOccupant ( vehicle, i ) ) then setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i ) fadeCamera ( p, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) break end i = i + 1 end if ( i >= seats ) then warp ( p, to ) outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p ) end else warp ( p, to ) end end if ( action == "warp" ) then warpPlayer ( source, player ) else warpPlayer ( player, data ) mdata = getPlayerName ( data ) end else action = nil end if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) هيك ؟
  7. ي اخواني بدي مساعدتكم
  8. aTable = { { "2-", " " }, { "3-", " " }, { "4-", " " }, { "5-", " " }, } Mrc = { { "1-", " " }, { "2-", " " }, { "3-", " " }, { "4-", " " }, { "5-", " " }, } GUIEditor = { tab = {}, tabpanel = {}, button = {}, window = {}, gridlist = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 655) / 2, (screenH - 391) / 2, 655, 391, "-x لــوحة أعلــى الاعبــــبين x-", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 33, 635, 322, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("أعلى [ 10 ] تواجد", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Hours", 0.5) addPlayers = function() setTimer( function() guiGridListClear(GUIEditor.gridlist[1]) timeTable = { }; for _, player in ipairs( getElementsByType( 'player' ) ) do table.insert( timeTable, { name = getPlayerName( player ), hours = getElementData( player, "PlayTime" ) or "0:0:0", hSort = tonumber(split(getElementData( player, "PlayTime" ) or "0:0:0", ":")[1]) or 0 } ) end table.sort( timeTable, function(a, b) return tonumber(a.hSort) > tonumber(b.hSort) end ) for i, _ in ipairs( timeTable ) do local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, i.."- "..timeTable[i].name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, timeTable[i].hours, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 5, 255, 0) end end, 1000, 0 ) end addPlayers( ) GUIEditor.tab[2] = guiCreateTab("أعلى [ 10 ] لفل", GUIEditor.tabpanel[1]) GUIEditor.gridlist[2] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Player", 0.3) guiGridListAddColumn(GUIEditor.gridlist[2], "Level", 0.3) guiGridListAddColumn(GUIEditor.gridlist[2], "Kills", 0.3) function getTopLevel( ) levelTable = { }; for _, player in ipairs( getElementsByType( 'player' ) ) do local lvl = getElementData( player, 'Level' ) or '0' local kls = getElementData( player, 'Kills' ) or '0' table.insert( levelTable, { plr = player, Level = lvl, Kills = kls } ) end table.sort( levelTable, function( min, max ) return ( tonumber( min.Kills ) or '' ) > ( tonumber( max.Kills ) ), ( tonumber( min.Level ) or '' ) > ( tonumber( max.Level ) ) end ) return levelTable end setTimer( function( ) guiGridListClear( GUIEditor.gridlist[2] ) local pLevel = getTopLevel( ) for num = 1, #getElementsByType( 'player' ) do if ( num >= 10 ) then return end if ( pLevel[1] ) then local row = guiGridListAddRow( GUIEditor.gridlist[2] ) local pName = guiGridListSetItemText( GUIEditor.gridlist[2], row, 1, num..'- '..getPlayerName( pLevel[num].plr ), false, false ) local pValue = guiGridListSetItemText( GUIEditor.gridlist[2], row, 2, pLevel[num].Level, false, false ) local pValue2 = guiGridListSetItemText( GUIEditor.gridlist[2], row, 3, pLevel[num].Kills, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 100, 100, 100, 0) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 2, 5, 255, 0) end end end, 1000, 0 ) GUIEditor.tab[3] = guiCreateTab("أفضل الداعمين", GUIEditor.tabpanel[1]) GUIEditor.gridlist[3] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Player", 0.5) guiGridListAddColumn(GUIEditor.gridlist[3], "Amount", 0.5) for i, _ in ipairs( aTable ) do local row = guiGridListAddRow( GUIEditor.gridlist[3] ) guiGridListSetItemText( GUIEditor.gridlist[3], row, 1, aTable[i][1], false, false ) guiGridListSetItemText( GUIEditor.gridlist[3], row, 2, aTable[i][2], false, false ) guiGridListSetItemColor( GUIEditor.gridlist[3], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[3], row, 2, 5, 255, 0) end GUIEditor.tab[3] = guiCreateTab("المـرشحين للمـانجرس", GUIEditor.tabpanel[1]) GUIEditor.gridlist[3] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Player", 0.5) guiGridListAddColumn(GUIEditor.gridlist[3], "Amount", 0.5) for i, _ in ipairs( Mrc ) do local row = guiGridListAddRow( GUIEditor.gridlist[3] ) guiGridListSetItemText( GUIEditor.gridlist[3], row, 1, Mrc[i][1], false, false ) guiGridListSetItemText( GUIEditor.gridlist[3], row, 2, Mrc[i][2], false, false ) guiGridListSetItemColor( GUIEditor.gridlist[3], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[3], row, 2, 255, 255, 0) end GUIEditor.button[1] = guiCreateButton(20, 361, 615, 20, "Close |#| اغلاق", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") addEventHandler( 'onClientGUIClick', GUIEditor.button[1], function( ) guiSetVisible(GUIEditor.window[1], false) showCursor(false) end, false ) bindKey( 'F7', 'down', function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end) addCommandHandler('14',function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(true) end )
  9. اخي الغالي انا حطيت هذا في Server طيب والحين كيف اطلع لوحة؟ function centerWindow (center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) /2,(screenH - windowH) /2 guiSetPosition(center_window, x, y, false) end GUI = guiCreateWindow(530, 297, 281, 85, "Hours All Chat", false) guiWindowSetSizable(GUI, false) guiSetVisible(GUI, false) centerWindow (GUI) Label = guiCreateLabel(10, 33, 58, 15, "Amount $::", false, GUI) Hours_Edit = guiCreateEdit(78, 31, 82, 21, "", false, GUI) guiEditSetMaxLength(Hours_Edit, Boton_Send = guiCreateButton(170, 31, 47, 21, "Send", false, GUI) guiSetProperty(Boton_Send, "NormalTextColour", "FFAAAAAA") CopyRight = guiCreateLabel(10, 60, 261, 15, "Created By TounsiPro", false, GUI) guiSetFont(CopyRight, "default-bold-small") guiLabelSetColor(CopyRight, 254, 120, 21) guiLabelSetHorizontalAlign(CopyRight, "center", false) Boton_Cancelar = guiCreateButton(223, 31, 47, 21, "Cancel", false, GUI) guiSetProperty(Boton_Cancelar, "NormalTextColour", "FFAAAAAA") function Open () guiSetVisible(GUI, true) showCursor(true) end addEvent("Abrir", true) addEventHandler("Abrir", getLocalPlayer(), Open) function close () guiSetVisible(GUI, false) showCursor(false) end addEventHandler("onClientGUIClick", Boton_Cancelar, close, false) function sendm () name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(Hours_Edit) triggerServerEvent("SendHours1",getRootElement(),cantidad,name) end addEventHandler("onClientGUIClick", Boton_Send, sendm, false) function centerWindow (center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) /2,(screenH - windowH) /2 guiSetPosition(center_window, x, y, false) end GUI = guiCreateWindow(530, 297, 281, 85, "Hours All Chat", false) guiWindowSetSizable(GUI, false) guiSetVisible(GUI, false) centerWindow (GUI) Label = guiCreateLabel(10, 33, 58, 15, "Amount $::", false, GUI) Hours_Edit = guiCreateEdit(78, 31, 82, 21, "", false, GUI) guiEditSetMaxLength(Hours_Edit, 8) Boton_Send = guiCreateButton(170, 31, 47, 21, "Send", false, GUI) guiSetProperty(Boton_Send, "NormalTextColour", "FFAAAAAA") CopyRight = guiCreateLabel(10, 60, 261, 15, "Created By TounsiPro", false, GUI) guiSetFont(CopyRight, "default-bold-small") guiLabelSetColor(CopyRight, 254, 120, 21) guiLabelSetHorizontalAlign(CopyRight, "center", false) Boton_Cancelar = guiCreateButton(223, 31, 47, 21, "Cancel", false, GUI) guiSetProperty(Boton_Cancelar, "NormalTextColour", "FFAAAAAA") function Open () guiSetVisible(GUI, true) showCursor(true) end addEvent("Abrir", true) addEventHandler("Abrir", getLocalPlayer(), Open) function close () guiSetVisible(GUI, false) showCursor(false) end addEventHandler("onClientGUIClick", Boton_Cancelar, close, false) function sendm () name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(Hours_Edit) triggerServerEvent("SendHours1",getRootElement(),cantidad,name) end addEventHandler("onClientGUIClick", Boton_Send, sendm, false) الكلينت ماغير فيه شيء؟
  10. الكلينت function centerWindow (center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) /2,(screenH - windowH) /2 guiSetPosition(center_window, x, y, false) end GUI = guiCreateWindow(530, 297, 281, 85, "Hours All", false) guiWindowSetSizable(GUI, false) guiSetVisible(GUI, false) centerWindow (GUI) Label = guiCreateLabel(10, 33, 58, 15, "Amount $::", false, GUI) Hours_Edit = guiCreateEdit(78, 31, 82, 21, "", false, GUI) guiEditSetMaxLength(Hours_Edit, Boton_Send = guiCreateButton(170, 31, 47, 21, "Send", false, GUI) guiSetProperty(Boton_Send, "NormalTextColour", "FFAAAAAA") CopyRight = guiCreateLabel(10, 60, 261, 15, "Hours All", false, GUI) guiSetFont(CopyRight, "default-bold-small") guiLabelSetColor(CopyRight, 254, 120, 21) guiLabelSetHorizontalAlign(CopyRight, "center", false) Boton_Cancelar = guiCreateButton(223, 31, 47, 21, "Cancel", false, GUI) guiSetProperty(Boton_Cancelar, "NormalTextColour", "FFAAAAAA") function Open () guiSetVisible(GUI, true) showCursor(true) end addEvent("Abrir", true) addEventHandler("Abrir", getLocalPlayer(), Open) function close () guiSetVisible(GUI, false) showCursor(false) end addEventHandler("onClientGUIClick", Boton_Cancelar, close, false) function sendm () name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(Hours_Edit) triggerServerEvent("SendHours1",getRootElement(),cantidad,name) end addEventHandler("onClientGUIClick", Boton_Send, sendm, false) === Server ==== function onAdmins ( thePlayer ) local cuenta = getAccountName( getPlayerAccount(thePlayer) ) if isObjectInACLGroup("user."..cuenta, aclGetGroup("Console")) then triggerClientEvent ( "Abrir", thePlayer) else end end addCommandHandler("Hours", onAdmins) function Enviar (cantidad, name) givePlayerHours(getRootElement(), tonumber(cantidad)) outputChatBox("تم توزيع ساعات للآعبين .."..cantidad, getRootElement(), 255, 255, 255, true) end addEvent("SendHours1", true) addEventHandler("SendHours1", getRootElement(), Enviar)
  11. بدي مود على سرياللات لما تحط سريال شخص في هذا المود مرح يقدر اي شخص يسحبه من لوحة ادمينه
  12. local sX, sY = guiGetScreenSize () addEventHandler("onClientRender", root, function () if ( getElementData ( resourceRoot, "Have_" ) == true ) then local Lines = getChatboxLayout ()["chat_lines"] if ( Lines <= 10 ) then Lines = Lines + 1 elseif ( Lines >= 20 ) then Lines = Lines - 1 else Lines = Lines end if ( getElementData ( resourceRoot, "Msg_" ) == "delete" ) then setElementData ( resourceRoot, "Have_", false ) else dxDrawBorderedText ( "#1a75ffAdmin : #FFFFFF" .. getElementData ( resourceRoot, "Msg_" ).. "", 33, 221, 205, 242, tocolor(255, 255, 255, 255), 1.0, "default-bold", "left", "top", true, false, true, true, true) end end end) bindKey("u", "down", "chatbox","IM") function dxDrawBorderedText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 ) local wh = 1 local msg_gsub = text:gsub ( '#%x%x%x%x%x%x', '' ) dxDrawText ( msg_gsub, x - wh, y - wh, w - wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( msg_gsub, x + wh, y - wh, w + wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x - wh, y + wh, w - wh, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x + wh, y + wh, w + wh, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x - wh, y, w - wh, h, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x + wh, y, w + wh, h, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x, y - wh, w, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x, y + wh, w, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 ) end ________________________________________________________________________________________________________________________ local Groups = { "Console", "AL-3GeD" } function isPlayerAdmin(player) for k,v in ipairs ( Groups ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then return true end end end addCommandHandler("IM", function ( player, cmd, ... ) if not ( isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( isPlayerAdmin ( player ) ) then local msg = {...} local message = table.concat(msg, " ") setElementData ( resourceRoot, "Have_", true ) setElementData ( resourceRoot, "Msg_", message ) if ( getElementData ( player, "Name" ) and getElementData ( player, "Name" ) ~= false ) then setElementData ( resourceRoot, "By_", getElementData ( player, "Name" )) else setElementData ( resourceRoot, "By_", getPlayerName ( player )) end else end else end end) ممكن تعطيني كود احطه كود كلمة تكتبها في اف8 تكون عبر سريال والكلمه هاذي لما تكتب في اف8 مرح يقدر اي شخص يكتب فالعاجل ححتى لو كنت انت زي كذا #Msg : العاجل مغلق حليا ..
  13. ينقفل العاجل ولا يقدر آي احد يكتب لما يجي شخص يكتب العاجل يطلع بشات العاجل مقفل حليا لازم يرجع الصاحب السيرفر ويكتب الكلمه على شن يفتح xDسلام عليكم بدي كود يقفل العاجل كيف ؟ لما تكتب بي اف8 مثال ردو ي مبرمجين
  14. ميقدر لو بضل مية مره هذي حمايه مين معه؟ WarpPlayerToسلام عليكم شباب مين معه كود لما تحط سريال شخص فلوحة ميقدر احد يسحبك كيف يعني لما لما يجي شخص يسحبها
  15. لا مش هيك اخي بالله تعال فيس افهم ولو زبطت معي برسلك فلوس https://www.facebook.com/profile.php?id=100023056662478
  16. مثل لوحة اعلى تواجد في سيرفر سعد مثال انا بخش اسمي في سيرفر هيك King فلوحة يكون اسمي ???? ♥
  17. سلام كيفيك ي غالي بالله بدي كود يخلي اسم فلوحة اعلى تواجد يكون مزخرف
×
×
  • Create New...