#Mr.Rajo~,< Posted August 7, 2015 Share Posted August 7, 2015 السلام عليكم ورحمة الله وبركاته كيف اسوي ليبل يطلع لكل الاعبين انا عندي اديت بوكس ويوم اكتب فيه اجيبه باليبل بس انا لحالي اللي اشوف الكلام ابيه يطلع للكل Client side addEventHandler("onClientGUIClick" ,resourceRoot , function() if source == White then triggerServerEvent("Send" ,root) end end) addEvent("RSEND" ,true) addEventHandler("RSEND" ,resourceRoot , function() guiSetText(LABEL, " *[" .. plr .. "] : " ..tostring(guiGetText(Edit))) guiLabelSetColor ( LABEL, 255, 255, 255 ) end) server side addEvent("Send" ,true) addEventHandler("Send" ,root , function () triggerClientEvent(root ,"RSEND" ,root) end) Link to comment
Naif Posted August 7, 2015 Share Posted August 7, 2015 -- ClientSide addEventHandler("onClientGUIClick" ,resourceRoot , function() if source == White then wit = guiGetText(Edit) if ( wit ~= '' ) then triggerServerEvent("Send",getLocalPlayer()) end end end) addEvent('SS',true) addEventHandler('SS',root, function ( ) guiSetText(LABEL, " *[" ..getPlayerName(localPlayer).. "] : " ..wit.. " ") guiLabelSetColor ( LABEL, 255, 255, 255 ) end) -- Server Side addEvent('Send',true) addEventHandler('Send',root, function ( ) for i,player in ipairs ( getElementsByType('player') ) do triggerClientEvent(player,'SS',player) end 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