Jump to content

طلب كود


Adham

Recommended Posts

Posted

طيب ظبتت

بس في مشكله عاوز لما مكتبش حاجه في الايديت واضعط علي 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 
) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
طيب ظبتت

بس في مشكله عاوز لما مكتبش حاجه في الايديت واضعط علي 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 
) 

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted

طيب لما مش بكتب شي بالايديت

وبضعط start

بيكتب في الشات فاضي

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
:arrowup::arrowup:

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
  
--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 
) 
  

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

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