Jump to content

طلب كود


Adham

Recommended Posts

طيب ظبتت

بس في مشكله عاوز لما مكتبش حاجه في الايديت واضعط علي start

ما تظهر كلام بالشات فاضي

وعاوز لما يكتب في الايديت مثلن

#ff0000Team

#00ff00Team

تظهر االاوان النا كبتها الكود

c

[lua]addEventHandler ( "onClientGUIClick", resourceRoot,function () 
    if ( source == GUIEditor.button[1] ) then 
        local Sdit = guiGetText(edit) 
        if Sdit ~= '' then 
            triggerServerEvent("Out", localPlayer, Sdit) 
            setTimer(function () guiSetText(edit, " ")  end,600,1) 
        end 
    end 
end) 

[/lua]

s

addEvent("Out",true) 
addEventHandler("Out", root, 
function ( msg ) 
    outputChatBox(getPlayerName(client)..": "..msg.." ",root, 255, 0, 0) 
end 
) 

Link to comment
طيب ظبتت

بس في مشكله عاوز لما مكتبش حاجه في الايديت واضعط علي start

ما تظهر كلام بالشات فاضي

وعاوز لما يكتب في الايديت مثلن

#ff0000Team

#00ff00Team

تظهر االاوان النا كبتها الكود

c

[lua]addEventHandler ( "onClientGUIClick", resourceRoot,function () 
    if ( source == GUIEditor.button[1] ) then 
        local Sdit = guiGetText(edit) 
        if Sdit ~= '' then 
            triggerServerEvent("Out", localPlayer, Sdit) 
            setTimer(function () guiSetText(edit, " ")  end,600,1) 
        end 
    end 
end) 

[/lua]

s

addEvent("Out",true) 
addEventHandler("Out", root, 
function ( msg ) 
    outputChatBox(getPlayerName(client)..": "..msg.." ",root, 255, 0, 0) 
end 
) 

addEventHandler ( "onClientGUIClick", resourceRoot,function () 
    if ( source == GUIEditor.button[1] ) then 
        local Sdit = guiGetText(GUIEditor.edit[1]) 
        if Sdit ~= '' then 
            triggerServerEvent("Out", localPlayer, Sdit) 
            setTimer(function () guiSetText(GUIEditor.edit[1], " ")  end,600,1) 
        end 
    end 
end) 

[/lua]

s

addEvent("Out",true) 
addEventHandler("Out", root, 
function ( msg ) 
    outputChatBox" "..msg.." ",root, 255, 0, 0,true) 
end 
) 

Link to comment
  
--Client 
addEventHandler ( "onClientGUIClick", resourceRoot,function () 
    if ( source == GUIEditor.button[1] ) then 
        local Sdit = guiGetText(GUIEditor.edit[1]) 
        if Sdit ~= '' then 
            triggerServerEvent("Out", localPlayer, Sdit) 
            setTimer(function () guiSetText(GUIEditor.edit[1], " ")  end,600,1) 
      elseif Sdit == '' then 
            triggerServerEvent("SsS", localPlayer) 
        end 
    end 
end) 
  

  
--Server 
addEvent("Out",true) 
addEventHandler("Out", root, 
function ( msg ) 
    outputChatBox(" "..msg.." ",root, 255, 0, 0,true) 
end 
) 
  
addEvent("SsS",true) 
addEventHandler("SsS", root, 
function (  ) 
    outputChatBox(" ",root, 255, 0, 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...