Adham Posted July 7, 2016 Share Posted July 7, 2016 سلام عليكم اليوم ابي اسوي كود لما يكتب شي بالايدت ويضعط علي زر يجي الكتبه بالشات لكل الاعبين سويته م ظبت addEventHandler ( "onClientGUIClick",root, function ( ) if source == GUIEditor.button[4] then for _, p in ipairs(getElementsByType('player')) do edit = guiGetText(GUIEditor.edit[1]) outputChatBox(" "..guiGetText(GUIEditor.edit[1]).." ",p,255,0,255,true) end end ) Link to comment
Adham Posted July 7, 2016 Author Share Posted July 7, 2016 م ظبت بضعط علي الزر واكتب في الايديت يجلي شي بالدي بق عن كود outputChatBox الخطا فيه Link to comment
' A F . Posted July 7, 2016 Share Posted July 7, 2016 كودك يصير هيك addEventHandler ( "onClientGUIClick",root, function ( ) if source == GUIEditor.button[4] then if ( guiGetText ( GUIEditor.edit[1] ) ~= "" ) then triggerServerEvent("Send_",localPlayer,guiGetText(GUIEditor.edit[1])) end end end ) -- Server addEvent("Send_",true) addEventHandler("Send_",root, function ( Text ) outputChatBox ( Text , root , 255 , 255 , 255 , true ) end ) Link to comment
Adham Posted July 7, 2016 Author Share Posted July 7, 2016 طيب كدا بيظهر لكل الاعبين addEvent ("Rent",true) addEventHandler("Rent",root, function ( ) for i, player in ipairs ( getElementsByType ( "player" ) ) do outputChatBox( "#ffff00* [RentSysteam]: تم تفعيل الرنت للكل",root,255,255,255,true) end end) Link to comment
N3xT Posted July 7, 2016 Share Posted July 7, 2016 ماله داعي لوب , root بـ جانب سيرفر يعني للكل Link to comment
Adham Posted July 7, 2016 Author Share Posted July 7, 2016 الكود النتا عططهولي فوق ابيه لما يكتب في الايدت الون كدا #ff0000 هلا #ff3300 وكدا 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