Jump to content

شو الخطاء


Mohamed

Recommended Posts

  
addEventHandler("onClientGUIClick", root, function() 
  if source == GUIEditor.radiobutton[3] then 
    triggerServerEvent("setstat", localPlayer, "offline") 
    setElementData(localPlayer, "stat", "offline") 
  else 
    if source == GUIEditor.radiobutton[2] then 
      triggerServerEvent("setstat", localPlayer, "Support") 
      setElementData(localPlayer, "stat", "Support") 
    end 
  else 
    if source == GUIEditor.radiobutton[1] then 
      triggerServerEvent("setstat", localPlayer, "Player") 
      setElementData(localPlayer, "stat", "Player") 
    end 
  else 
    if source == GUIEditor.button[3] then 
      guiSetVisible(GUIEditor.window[1], false) 
      guiSetAlpha(GUIEditor.window[2], 1) 
      guiSetEnabled(GUIEditor.window[2], true) 
    end 
  else 
    if source == GUIEditor.button[2] then 
      local mes = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) 
      setClipboard(" " .. mes .. " ") 
    end 
  end 
end 
) 
  

Link to comment
addEventHandler("onClientGUIClick", root, function() 
  if ( source == GUIEditor.radiobutton[3] ) then 
    triggerServerEvent("setstat", localPlayer, "offline") 
    setElementData(localPlayer, "stat", "offline") 
    elseif ( source == GUIEditor.radiobutton[2] ) then 
      triggerServerEvent("setstat", localPlayer, "Support") 
      setElementData(localPlayer, "stat", "Support") 
    elseif ( source == GUIEditor.radiobutton[1] ) then 
      triggerServerEvent("setstat", localPlayer, "Player") 
      setElementData(localPlayer, "stat", "Player") 
    elseif ( source == GUIEditor.button[3] ) then 
      guiSetVisible(GUIEditor.window[1], false) 
      guiSetAlpha(GUIEditor.window[2], 1) 
      guiSetEnabled(GUIEditor.window[2], true) 
  elseif source == GUIEditor.button[2] then 
      local mes = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) 
      setClipboard(" " .. mes .. " ") 
        end 
end) 

Link to comment

ضبط بش شوف هون لما اضغط انترا ما يجي شي

  
Mohameh = function() 
  if guiGetVisible(GUIEditor.window[2]) then 
    local Text = guiGetText(GUIEditor.edit[1]) 
  end 
  if Text and Text ~= "" and Text ~= " " then 
    if getElementData(localPlayer, "stat") == "offline" then 
      return guiSetText(GUIEditor.edit[1], "") 
    end 
    if guiRadioButtonGetSelected(GUIEditor.radiobutton[2]) then 
      local ply = "Support" 
      triggerServerEvent("onSendMsg", localPlayer, Text, ply) 
    else 
      local ply = "Player" 
      triggerServerEvent("onSendMsg", localPlayer, Text, ply) 
    end 
    guiSetEnabled(GUIEditor.button[1], false) 
    setTimer(function() 
      guiSetEnabled(GUIEditor.button[1], true) 
    end, 5000, 1) 
    guiSetText(GUIEditor.edit[1], "") 
  end 
end 
bindKey("enter", "down", Mohameh) 
  

Link to comment
  
function Mohameh() 
  if guiGetVisible(GUIEditor.window[2]) then 
    local Text = guiGetText(GUIEditor.edit[1]) 
  end 
  if Text and Text ~= "" and Text ~= " " then 
    if getElementData(localPlayer, "stat") == "offline" then 
      return guiSetText(GUIEditor.edit[1], "") 
    end 
    if guiRadioButtonGetSelected(GUIEditor.radiobutton[2]) then 
      local ply = "Support" 
      triggerServerEvent("onSendMsg", localPlayer, Text, ply) 
    else 
      local ply = "Player" 
      triggerServerEvent("onSendMsg", localPlayer, Text, ply) 
    end 
    guiSetEnabled(GUIEditor.button[1], false) 
    setTimer(function() 
      guiSetEnabled(GUIEditor.button[1], true) 
    end, 5000, 1) 
    guiSetText(GUIEditor.edit[1], "") 
  end 
end 
bindKey("enter", "down", Mohameh) 
  

مآجربته

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...