Adham Posted April 22, 2016 Author Share Posted April 22, 2016 طيب ظبتت بس في مشكله عاوز لما مكتبش حاجه في الايديت واضعط علي 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
#|_oskar_|# Posted April 22, 2016 Share Posted April 22, 2016 addEvent("Out",true) addEventHandler("Out", root, function ( msg ) outputChatBox(getPlayerName(client)..": "..msg.." ",root, 255, 0, 0,true) end ) Link to comment
iMr.WiFi..! Posted April 22, 2016 Share Posted April 22, 2016 طيب ظبتتبس في مشكله عاوز لما مكتبش حاجه في الايديت واضعط علي 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
Adham Posted April 22, 2016 Author Share Posted April 22, 2016 طيب لما مش بكتب شي بالايديت وبضعط start بيكتب في الشات فاضي Link to comment
iMr.WiFi..! Posted April 22, 2016 Share Posted April 22, 2016 --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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now