Jump to content

تصحيح


ivor

Recommended Posts

السلام عليكم

طبعآ في موضوع السبورت حقي والتريقرات في طلب الفنكشنات الى فات

و ما حد شاف حل

قولت بشوف انا واظبط

طيب وظبطتها انا

بس ابي الكود هاد

  
    elseif source == Button_Send then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
            if Msg ~= "" then 
                triggerServerEvent("Request_Message", localPlayer, Msg) 
                guiSetText(Edit_Msg, "") 
                guiSetEnabled(Button_Send, false) 
                setTimer(function () 
                guiSetEnabled(Button_Send, true) 
            end, 1000, 0) 
        end 
    end 
end 
) 
  

بدل الزر يتحول الى enter

جربت مانفعت و مسحت الاكواد الى جربتها كانت هريسة :lol:

Link to comment

bindKey("enter","down", function (key, keyState ) 
    elseif ( keyState == "down" ) then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
            if Msg ~= "" then 
                triggerServerEvent("Request_Message", localPlayer, Msg) 
                guiSetText(Edit_Msg, "") 
                guiSetEnabled(Button_Send, false) 
                setTimer(function () 
                guiSetEnabled(Button_Send, true) 
            end, 1000, 0) 
        end 
    end 
end 
) 
Link to comment
bindKey("enter","down", function (key, keyState ) 
    elseif ( keyState == "down" ) then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
            if Msg ~= "" then 
                triggerServerEvent("Request_Message", localPlayer, Msg) 
                guiSetText(Edit_Msg, "") 
                guiSetEnabled(Button_Send, false) 
                setTimer(function () 
                guiSetEnabled(Button_Send, true) 
            end, 1000, 0) 
        end 
    end 
end 
) 

خله يتعلم بدل ما هو شغال علي شغل نسخ لصق

bindKey("enter","down", function (key, keyState ) 
    if ( keyState == "down" ) then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
            if Msg ~= "" then 
                triggerServerEvent("Request_Message", localPlayer, Msg) 
                guiSetText(Edit_Msg, "") 
                guiSetEnabled(Button_Send, false) 
                setTimer(function () 
                guiSetEnabled(Button_Send, true) 
            end, 1000, 0) 
              end 
        end 
    end 
end 
) 
Link to comment
  
addEventHandler("onClientGUIClick", root, 
function () 
    if source == Button_Close then 
        guiSetVisible(wnd, false) 
        guiSetVisible(Rules_Window, false) 
        guiSetInputEnabled(false) 
            elseif source == Button_Close1 then 
        guiSetVisible(wnd, false) 
        guiSetVisible(Rules_Window1, false) 
        guiSetInputEnabled(false) 
    elseif source == Mute_UnMute then 
        guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) 
        guiBringToFront(Mute_Window) 
    elseif source == Close_Mute_Window then 
        guiSetVisible(Mute_Window, false) 
    elseif source == Clear_Chat then 
        triggerServerEvent("Request_Permission", localPlayer) 
    elseif source == Mute_Mute then 
        local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) 
        triggerServerEvent("Mute", localPlayer, grid) 
    elseif source == RulesButton then 
        guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) 
        guiBringToFront(Rules_Window) 
    elseif source == Close then 
        guiSetVisible(Rules_Window, false) 
    bindKey("enter","down", function (key, keyState ) 
    elseif ( keyState == "down" ) then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
            if Msg ~= "" then 
                triggerServerEvent("Request_Message", localPlayer, Msg) 
                guiSetText(Edit_Msg, "") 
                guiSetEnabled(Button_Send, false) 
                setTimer(function () 
                guiSetEnabled(Button_Send, true) 
            end, 1000, 0) 
        end 
    end 
end 
) 
  

كود الازرار كامل

Link to comment

addEventHandler("onClientGUIClick", root, 
function () 
if source == Button_Close then 
guiSetVisible(wnd, false) 
guiSetVisible(Rules_Window, false) 
guiSetInputEnabled(false) 
elseif source == Button_Close1 then 
guiSetVisible(wnd, false) 
guiSetVisible(Rules_Window1, false) 
guiSetInputEnabled(false) 
elseif source == Mute_UnMute then 
guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) 
guiBringToFront(Mute_Window) 
elseif source == Close_Mute_Window then 
guiSetVisible(Mute_Window, false) 
elseif source == Clear_Chat then 
triggerServerEvent("Request_Permission", localPlayer) 
elseif source == Mute_Mute then 
local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) 
triggerServerEvent("Mute", localPlayer, grid) 
elseif source == RulesButton then 
guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) 
guiBringToFront(Rules_Window) 
elseif source == Close then 
guiSetVisible(Rules_Window, false) 
end 
end) 
  
bindKey("enter","down", function (key, keyState ) 
if ( keyState == "down" ) then 
local Msg = guiGetText(Edit_Msg) 
if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
if Msg ~= "" then 
triggerServerEvent("Request_Message", localPlayer, Msg) 
guiSetText(Edit_Msg, "") 
guiSetEnabled(Button_Send, false) 
setTimer(function () 
guiSetEnabled(Button_Send, true) 
end, 1000, 0) 
end 
end 
end) 
Link to comment
addEventHandler("onClientGUIClick", root, 
function () 
    if source == Button_Close then 
        guiSetVisible(wnd, false) 
        guiSetVisible(Rules_Window, false) 
        guiSetInputEnabled(false) 
    elseif source == Button_Close1 then 
        guiSetVisible(wnd, false) 
        guiSetVisible(Rules_Window1, false) 
        guiSetInputEnabled(false) 
    elseif source == Mute_UnMute then 
        guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) 
        guiBringToFront(Mute_Window) 
    elseif source == Close_Mute_Window then 
        guiSetVisible(Mute_Window, false) 
    elseif source == Clear_Chat then 
        triggerServerEvent("Request_Permission", localPlayer) 
    elseif source == Mute_Mute then 
        local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) 
        triggerServerEvent("Mute", localPlayer, grid) 
    elseif source == RulesButton then 
        guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) 
        guiBringToFront(Rules_Window) 
    elseif source == Close then 
        guiSetVisible(Rules_Window, false) 
        bindKey("enter","down", function (key, keyState ) 
    elseif ( keyState == "down" ) then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
        if Msg ~= "" then 
            triggerServerEvent("Request_Message", localPlayer, Msg) 
            guiSetText(Edit_Msg,Msg) 
            guiSetEnabled(Button_Send, false) 
            setTimer(guiSetEnabled,1000,1,Button_Send, true) 
            end 
        end 
    end 
end 
) 

Link to comment
addEventHandler("onClientGUIClick", root, 
function () 
    if source == Button_Close then 
        guiSetVisible(wnd, false) 
        guiSetVisible(Rules_Window, false) 
        guiSetInputEnabled(false) 
    elseif source == Button_Close1 then 
        guiSetVisible(wnd, false) 
        guiSetVisible(Rules_Window1, false) 
        guiSetInputEnabled(false) 
    elseif source == Mute_UnMute then 
        guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) 
        guiBringToFront(Mute_Window) 
    elseif source == Close_Mute_Window then 
        guiSetVisible(Mute_Window, false) 
    elseif source == Clear_Chat then 
        triggerServerEvent("Request_Permission", localPlayer) 
    elseif source == Mute_Mute then 
        local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) 
        triggerServerEvent("Mute", localPlayer, grid) 
    elseif source == RulesButton then 
        guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) 
        guiBringToFront(Rules_Window) 
    elseif source == Close then 
        guiSetVisible(Rules_Window, false) 
        bindKey("enter","down", function (key, keyState ) 
    elseif ( keyState == "down" ) then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
        if Msg ~= "" then 
            triggerServerEvent("Request_Message", localPlayer, Msg) 
            guiSetText(Edit_Msg,Msg) 
            guiSetEnabled(Button_Send, false) 
            setTimer(guiSetEnabled,1000,1,Button_Send, true) 
            end 
        end 
    end 
end 
) 

كودك خربان يالاخ جالس تخبص انت هخهخههخه

        bindKey("enter","down", function (key, keyState ) 
    elseif ( keyState == "down" ) then 
        local Msg = guiGetText(Edit_Msg) 
        if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0)  return end 
        if Msg ~= "" then 
            triggerServerEvent("Request_Message", localPlayer, Msg) 
            guiSetText(Edit_Msg,Msg) 
            guiSetEnabled(Button_Send, false) 
            setTimer(guiSetEnabled,1000,1,Button_Send, true) 
            end 
        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...