Jump to content

رايكم


Recommended Posts

عندي اقتراح اني اسوي لوحه  تنفع للريس

مثلا واحد يخرب بالريس و كذا

يكون لوحه تطرده من القيم 

و لمن ينطرد يكتب

..NamePlayer.. Has Been Kicked From Game By ..AdminName.. ( reason )

و تكتب السبب

و كذا

بس في مشكله معرف ابرمج الازرار اعرف اسوي اللوحه لاكن ازرار معرف ض

Link to comment
12 minutes ago, Ghost-Gamer said:

عندي اقتراح اني اسوي لوحه  تنفع للريس

مثلا واحد يخرب بالريس و كذا

يكون لوحه تطرده من القيم 

و لمن ينطرد يكتب

..NamePlayer.. Has Been Kicked From Game By ..AdminName.. ( reason )

و تكتب السبب

و كذا

بس في مشكله معرف ابرمج الازرار اعرف اسوي اللوحه لاكن ازرار معرف ض

تبي الكلام ذا يجي فـ الشات ولا وين؟

Link to comment
addEventHandler("onClientGUIClick",root, --- حدث عند الضغط علي الزر
  function()
    if source == button then -- غير اسم الزرار
     local GetNameD = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 )  --- غير اسم القريد لست
	if ( getPlayerFromName ( GetNameD ) ) then 
      local NameGet = getPlayerName(localPlayer)
      local ِAget = guiGetText(Edit) --- هذي لو انت مسوي ايدت فيها السبب #
      outputChatBox(''..GetNameD.. 'Has Been Kicked From Game By' ..NameGet.. '(' ..Aget.. ')',255,255,0,true)
        end
      end
    end
  )

غير مجرب

Edited by Abu-Solo
Link to comment
--[[-------------------------------------------------
Notes:

> This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running.
    To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there.
--]]-------------------------------------------------


GUIEditor = {
    staticimage = {},
    label = {},
    edit = {},
    button = {},
    window = {},
    gridlist = {},
    memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(495, 217, 300, 348, "Panel Kick From Game", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(23, 314, 260, 24, "Close", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(26, 280, 257, 24, "Kick Out Map", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.edit[1] = guiCreateEdit(76, 240, 183, 18, "", false, GUIEditor.window[1])
        GUIEditor.gridlist[1] = guiCreateGridList(13, 29, 277, 154, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Status", 0.5)

        GUIEditor.label[1] = guiCreateLabel(62, 162, 154, 36, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[1] = guiCreateStaticImage(20, 182, 42, 65, ":guieditor/client/colorpicker/alpha.png", false, GUIEditor.gridlist[1])
        GUIEditor.memo[1] = guiCreateMemo(92, 163, 143, 19, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[2] = guiCreateStaticImage(42, 183, 10, 0, ":guieditor/images/dx_elements/radio_button.png", false, GUIEditor.gridlist[1])
        GUIEditor.edit[2] = guiCreateEdit(76, 175, 36, 13, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[2] = guiCreateMemo(193, 171, 23, 21, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[3] = guiCreateMemo(75, 174, 61, 18, "", false, GUIEditor.gridlist[1])

        GUIEditor.label[2] = guiCreateLabel(79, 240, 15, 18, "", false, GUIEditor.window[1])
        GUIEditor.label[3] = guiCreateLabel(26, 240, 50, 18, "reason :", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(26, 198, 50, 15, "Search :", false, GUIEditor.window[1])
        GUIEditor.edit[3] = guiCreateEdit(76, 195, 183, 18, "", false, GUIEditor.window[1])    
    end
)

سويت اللوحه و باقي البرمجه

 

Link to comment
18 minutes ago, Ghost-Gamer said:

--[[-------------------------------------------------
Notes:

> This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running.
    To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there.
--]]-------------------------------------------------


GUIEditor = {
    staticimage = {},
    label = {},
    edit = {},
    button = {},
    window = {},
    gridlist = {},
    memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(495, 217, 300, 348, "Panel Kick From Game", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(23, 314, 260, 24, "Close", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(26, 280, 257, 24, "Kick Out Map", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.edit[1] = guiCreateEdit(76, 240, 183, 18, "", false, GUIEditor.window[1])
        GUIEditor.gridlist[1] = guiCreateGridList(13, 29, 277, 154, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Status", 0.5)

        GUIEditor.label[1] = guiCreateLabel(62, 162, 154, 36, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[1] = guiCreateStaticImage(20, 182, 42, 65, ":guieditor/client/colorpicker/alpha.png", false, GUIEditor.gridlist[1])
        GUIEditor.memo[1] = guiCreateMemo(92, 163, 143, 19, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[2] = guiCreateStaticImage(42, 183, 10, 0, ":guieditor/images/dx_elements/radio_button.png", false, GUIEditor.gridlist[1])
        GUIEditor.edit[2] = guiCreateEdit(76, 175, 36, 13, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[2] = guiCreateMemo(193, 171, 23, 21, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[3] = guiCreateMemo(75, 174, 61, 18, "", false, GUIEditor.gridlist[1])

        GUIEditor.label[2] = guiCreateLabel(79, 240, 15, 18, "", false, GUIEditor.window[1])
        GUIEditor.label[3] = guiCreateLabel(26, 240, 50, 18, "reason :", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(26, 198, 50, 15, "Search :", false, GUIEditor.window[1])
        GUIEditor.edit[3] = guiCreateEdit(76, 195, 183, 18, "", false, GUIEditor.window[1])    
    end
)

سويت اللوحه و باقي البرمجه

 

شوف كودي فوق ,,,

وحاول

Link to comment
----#ClientSide
GUIEditor = {
    staticimage = {},
    label = {},
    edit = {},
    button = {},
    window = {},
    gridlist = {},
    memo = {}
}
        GUIEditor.window[1] = guiCreateWindow(495, 217, 300, 348, "Panel Kick From Game", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
		guiSetVisible(GUIEditor.window[1],false)
        GUIEditor.button[1] = guiCreateButton(23, 314, 260, 24, "Close", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(26, 280, 257, 24, "Kick Out Map", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.edit[1] = guiCreateEdit(76, 240, 183, 18, "", false, GUIEditor.window[1])
        GUIEditor.gridlist[1] = guiCreateGridList(13, 29, 277, 154, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Status", 0.5)

        GUIEditor.label[1] = guiCreateLabel(62, 162, 154, 36, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[1] = guiCreateStaticImage(20, 182, 42, 65, ":guieditor/client/colorpicker/alpha.png", false, GUIEditor.gridlist[1])
        GUIEditor.memo[1] = guiCreateMemo(92, 163, 143, 19, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[2] = guiCreateStaticImage(42, 183, 10, 0, ":guieditor/images/dx_elements/radio_button.png", false, GUIEditor.gridlist[1])
        GUIEditor.edit[2] = guiCreateEdit(76, 175, 36, 13, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[2] = guiCreateMemo(193, 171, 23, 21, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[3] = guiCreateMemo(75, 174, 61, 18, "", false, GUIEditor.gridlist[1])

        GUIEditor.label[2] = guiCreateLabel(79, 240, 15, 18, "", false, GUIEditor.window[1])
        GUIEditor.label[3] = guiCreateLabel(26, 240, 50, 18, "reason :", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(26, 198, 50, 15, "Search :", false, GUIEditor.window[1])
        GUIEditor.edit[3] = guiCreateEdit(76, 195, 183, 18, "", false, GUIEditor.window[1])    

local KEX="F9"
function OPEDN()
    guiSetVisible( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) )  
   showCursor( guiGetVisible( GUIEditor.window[1] ) ) 
end
bindKey(KEX,"down",OPEDN)
  
addEventHandler("onClientGUIClick",root, --- حدث عند الضغط علي الزر
  function()
    if source == GUIEditor.button[2] then -- غير اسم الزرار
     local GetNameD = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 )  --- غير اسم القريد لست
	if ( getPlayerFromName ( GetNameD ) ) then 
      local NameGet = getPlayerName(localPlayer)
      local AAget = guiGetText(GUIEditor.edit[3]) --- هذي لو انت مسوي ايدت فيها السبب #
	  triggerServerEvent("Kick",localPlayer,GetNameD,AAget,NameGet)
        end
      end
    end
  )
  
  addEventHandler("onClientGUIClick",root,
  function()
  if source == GUIEditor.button[1] then
  guiSetVisible(GUIEditor.window[1],false)
  showCursor(false)
  end
  end
  )
-----#ServerSide

  addEvent("Kick",true)
  addEventHandler("Kick",root,
  function(NameGet,AAget,lpName)
 kickPlayer ( NameGet, AAget )  
 outputChatBox(''..NameGet.. 'Has Been Kicked From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)
 end
 )

عطني خبر,

#     ألقسم غلط ,

@Tete omar

 

Edited by Abu-Solo
Link to comment
2 hours ago, Abu-Solo said:

----#ClientSide
GUIEditor = {
    staticimage = {},
    label = {},
    edit = {},
    button = {},
    window = {},
    gridlist = {},
    memo = {}
}
        GUIEditor.window[1] = guiCreateWindow(495, 217, 300, 348, "Panel Kick From Game", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
		guiSetVisible(GUIEditor.window[1],false)
        GUIEditor.button[1] = guiCreateButton(23, 314, 260, 24, "Close", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(26, 280, 257, 24, "Kick Out Map", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.edit[1] = guiCreateEdit(76, 240, 183, 18, "", false, GUIEditor.window[1])
        GUIEditor.gridlist[1] = guiCreateGridList(13, 29, 277, 154, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Status", 0.5)

        GUIEditor.label[1] = guiCreateLabel(62, 162, 154, 36, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[1] = guiCreateStaticImage(20, 182, 42, 65, ":guieditor/client/colorpicker/alpha.png", false, GUIEditor.gridlist[1])
        GUIEditor.memo[1] = guiCreateMemo(92, 163, 143, 19, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[2] = guiCreateStaticImage(42, 183, 10, 0, ":guieditor/images/dx_elements/radio_button.png", false, GUIEditor.gridlist[1])
        GUIEditor.edit[2] = guiCreateEdit(76, 175, 36, 13, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[2] = guiCreateMemo(193, 171, 23, 21, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[3] = guiCreateMemo(75, 174, 61, 18, "", false, GUIEditor.gridlist[1])

        GUIEditor.label[2] = guiCreateLabel(79, 240, 15, 18, "", false, GUIEditor.window[1])
        GUIEditor.label[3] = guiCreateLabel(26, 240, 50, 18, "reason :", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(26, 198, 50, 15, "Search :", false, GUIEditor.window[1])
        GUIEditor.edit[3] = guiCreateEdit(76, 195, 183, 18, "", false, GUIEditor.window[1])    

local KEX="F9"
function OPEDN()
    guiSetVisible( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) )  
   showCursor( guiGetVisible( GUIEditor.window[1] ) ) 
end
bindKey(KEX,"down",OPEDN)
  
addEventHandler("onClientGUIClick",root, --- حدث عند الضغط علي الزر
  function()
    if source == GUIEditor.button[2] then -- غير اسم الزرار
     local GetNameD = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 )  --- غير اسم القريد لست
	if ( getPlayerFromName ( GetNameD ) ) then 
      local NameGet = getPlayerName(localPlayer)
      local AAget = guiGetText(GUIEditor.edit[3]) --- هذي لو انت مسوي ايدت فيها السبب #
	  triggerServerEvent("Kick",localPlayer,GetNameD,AAget,NameGet)
        end
      end
    end
  )
  
  addEventHandler("onClientGUIClick",root,
  function()
  if source == GUIEditor.button[1] then
  guiSetVisible(GUIEditor.window[1],false)
  showCursor(false)
  end
  end
  )

-----#ServerSide

  addEvent("Kick",true)
  addEventHandler("Kick",root,
  function(NameGet,AAget,lpName)
 kickPlayer ( NameGet, AAget )  
 outputChatBox(''..NameGet.. 'Has Been Kicked From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)
 end
 )

عطني خبر,

#     ألقسم غلط ,

@Tete omar

 


  addEvent("slap",true)
  addEventHandler("slap",root,
  function(NameGet,AAget,lpName)
 slapPlayer ( NameGet, AAget )  
 outputChatBox(''..NameGet.. 'Has Been Kicked From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)
 end
 )

انا ابي اعطيه سلاب و يقول اني طرده من القيم شوف الاكواد صح؟

و انا مسوي قائمه لللاعبين ما يطلع فيها و ال حاله ابيها وحده Alive وحده Dead

Link to comment
20 minutes ago, Ghost-Gamer said:

  addEvent("slap",true)
  addEventHandler("slap",root,
  function(NameGet,AAget,lpName)
 slapPlayer ( NameGet, AAget )  
 outputChatBox(''..NameGet.. 'Has Been Kicked From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)
 end
 )

انا ابي اعطيه سلاب و يقول اني طرده من القيم شوف الاكواد صح؟

و انا مسوي قائمه لللاعبين ما يطلع فيها و ال حاله ابيها وحده Alive وحده Dead

عدل ع الكلام

outputChatBox(''..NameGet.. 'Has Been Kicked From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)

خله

outputChatBox(''..NameGet.. 'Has Been Slapped From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)

Link to comment

بس اللوحه مافي اسماء اللاعبين كيف اخليهم يطلعون؟

و في Status 

ابي اخليها ل كل لاعب اذا ميت تطلع لنا Dead 

اذا ما مات يطلع لنا Alive

و بجرب ادعس الكلمه و بشوف اذا يعطي سلاب

Link to comment

Your code وشو ذا؟؟

 

و بالنسبه ل status  

ااذا كان عيش ما مات يطلع ب لون اخضر Alive

اذا مات يطلع  احمر Dead 

ipairs(getElementsByType('player'))do

your code

end

تقصد اشيل your code 

 و اخلي الكود حق اللوحه 

Link to comment
21 minutes ago, Ghost-Gamer said:

Your code وشو ذا؟؟

 

و بالنسبه ل status  

ااذا كان عيش ما مات يطلع ب لون اخضر Alive

اذا مات يطلع  احمر Dead 


ipairs(getElementsByType('player'))do

your code

end

تقصد اشيل your code 

 و اخلي الكود حق اللوحه 

تسوي تحقق اذا اللاعب ميت او لا وتضيفه لـ الرو او الكولمن

Link to comment
هذا ملف كيلنت 


GUIEditor = {
    staticimage = {},
    label = {},
    edit = {},
    button = {},
    window = {},
    gridlist = {},
    memo = {}
}
ipairs(getElementsByType('Player') do

addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(495, 217, 300, 348, "Panel Kick From Game", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(23, 314, 260, 24, "Close", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(26, 280, 257, 24, "Kick Out Map", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.edit[1] = guiCreateEdit(76, 240, 183, 18, "", false, GUIEditor.window[1])
        GUIEditor.gridlist[1] = guiCreateGridList(13, 29, 277, 154, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
        guiGridListAddColumn(GUIEditor.gridlist[1], "Status", 0.5)

        GUIEditor.label[1] = guiCreateLabel(62, 162, 154, 36, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[1] = guiCreateStaticImage(20, 182, 42, 65, ":guieditor/client/colorpicker/alpha.png", false, GUIEditor.gridlist[1])
        GUIEditor.memo[1] = guiCreateMemo(92, 163, 143, 19, "", false, GUIEditor.gridlist[1])
        GUIEditor.staticimage[2] = guiCreateStaticImage(42, 183, 10, 0, ":guieditor/images/dx_elements/radio_button.png", false, GUIEditor.gridlist[1])
        GUIEditor.edit[2] = guiCreateEdit(76, 175, 36, 13, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[2] = guiCreateMemo(193, 171, 23, 21, "", false, GUIEditor.gridlist[1])
        GUIEditor.memo[3] = guiCreateMemo(75, 174, 61, 18, "", false, GUIEditor.gridlist[1])

        GUIEditor.label[3] = guiCreateLabel(26, 240, 50, 18, "reason :", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(26, 198, 50, 15, "Search :", false, GUIEditor.window[1])
        GUIEditor.edit[3] = guiCreateEdit(76, 195, 183, 18, "", false, GUIEditor.window[1])    
    end
)



local KEX="F4"
function OPEDN()
    guiSetVisible( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) )  
   showCursor( guiGetVisible( GUIEditor.window[1] ) ) 
end
bindKey(KEX,"down",OPEDN)

 addEventHandler("onClientGUIClick",root, --- حدث عند الضغط علي الزر
  function()
    if source == GUIEditor.button["Player"] then -- غير اسم الزرار
     local GetNameD = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 )  --- غير اسم القريد لست
	if ( getPlayerFromName ( GetNameD ) ) then 
      local NameGet = getPlayerName(localPlayer)
      local AAget = guiGetText(GUIEditor.edit[3]) --- هذي لو انت مسوي ايدت فيها السبب #
	  triggerServerEvent("Slap",localPlayer,GetNameD,AAget,NameGet)
        end
      end
    end
  )
  
  
  addEventHandler("onClientGUIClick",root,
  function()
  if source == GUIEditor.button[1] then
  guiSetVisible(GUIEditor.window[1],false)
  showCursor(false)
  end
  end
  )
  
    -----------------------------------
    
    هذا ملف سيرففر
    
      addEvent("slap",true)
  addEventHandler("slap",root,
  function(NameGet,AAget,lpName)
 slapPlayer ( NameGet, AAget )  
 outputChatBox(''..NameGet.. 'Has Been Kicked From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)
 end
 )

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...