7REF_MTA Posted March 10, 2016 Share Posted March 10, 2016 بدي كود مثلا عند اضغط علي زر انا مخلي الزر يظهر في الشات للشخص نفسه لكن بدي يكون يظهر لكل الموجودين في السيرفر او في outChatBox(root,"تم نقل "..getPlayerName.."الي وظعية الافك",root, 255, 255, 255, true ) او exports["guimessages"]:outputServer(root,"تم نقل "..getPlayerName.."الي وظعية الافك",root, 255, 255, 255, true ) Link to comment
#Soking Posted March 10, 2016 Share Posted March 10, 2016 client addEventHandler("onClientGUIClick", root, function( ) if ( source == N ) then triggerServerEvent('add',localPlayer) end end ) server addEvent("add",true) addEventHandler("add",root, function ( ) exports["guimessages"]:outputServer(root,"تم نقل "..getPlayerName(source).."الي وظعية الافك",root, 255, 255, 255, true ) end) هيك تقصد ؟ Link to comment
7REF_MTA Posted March 10, 2016 Author Share Posted March 10, 2016 client addEventHandler("onClientGUIClick", root, function( ) if ( source == N ) then triggerServerEvent('add',localPlayer) end end ) server addEvent("add",true) addEventHandler("add",root, function ( ) exports["guimessages"]:outputServer(root,"تم نقل "..getPlayerName(source).."الي وظعية الافك",root, 255, 255, 255, true ) end) هيك تقصد ؟ قصدي اني يوم اضغط علي زر يقولي كلام مثل مانا كاتب لكن يطلع للجميع مو انا فقط Link to comment
7REF_MTA Posted March 10, 2016 Author Share Posted March 10, 2016 جربتها اسمع شغلتها لكن المشكله انه يكرر مرتين مو مره انا ابيها مره واحده Link to comment
#Soking Posted March 10, 2016 Share Posted March 10, 2016 استبدل triggerServerEvent('add',localPlayer) بذي triggerServerEvent(localPlayer,'add',localPlayer) وجرب Link to comment
7REF_MTA Posted March 10, 2016 Author Share Posted March 10, 2016 جربت صار مايطلع ابد Link to comment
#Soking Posted March 10, 2016 Share Posted March 10, 2016 triggerServerEvent('add',localPlayer,localPlayer) جرب دا طيب Link to comment
#Soking Posted March 10, 2016 Share Posted March 10, 2016 addEvent("add",true) addEventHandler("add",root, function ( ) exports["guimessages"]:outputServer(root,"تم نقل "..getPlayerName(source).."الي وظعية الافك",root, 255, 255, 255) end) خلي ملف السيرفر هيك طيب وجرب Link to comment
#Soking Posted March 10, 2016 Share Posted March 10, 2016 addEvent("add",true) addEventHandler("add",root, function ( Name ) exports["guimessages"]:outputServer(root,"تم نقل "..Name.."الي وظعية الافك",root, 255, 255, 255, true ) end) كلينت addEventHandler("onClientGUIClick", root, function( ) if ( source == N ) then Name = getPlayerName(localPlayer) triggerServerEvent('add',localPlayer,Name) end end ) Link to comment
SycroX Posted March 10, 2016 Share Posted March 10, 2016 (edited) يا حبيبي كيف تباه يشتغل و انتا كاتب exports["guimessages"]:outputServer(root,"تم نقل "..Name.."الي وظعية الافك",root, 255, 255, 255, true ) خله كدا exports["guimessages"]:outputServer(root, "تم نقل "..Name.."الي وظعية الافك", 255, 255, 255, true ) Syntax : exports["guimessages"]:outputServer(source, text, r, g, b) مثال addEventHandler("onPlayerLogin", root, exports["guimessages"]:outputServer(root," "..getPlayerName(source).." Has Login !!", 255, 255, 0) end) Edited March 10, 2016 by Guest Link to comment
#Soking Posted March 10, 2016 Share Posted March 10, 2016 exports["guimessages"]:outputServer(root,'تم نقل "..Name.." الى وضعية الافك ',255,255,255) جرب السطر دا بدل العندك ضض Link to comment
7REF_MTA Posted March 10, 2016 Author Share Posted March 10, 2016 طيب حتي ماقدر في الشات مو لازم في الجيو مسج Link to comment
#|_oskar_|# Posted March 10, 2016 Share Posted March 10, 2016 ممكن تفهمني ايش طلبك لانى صراحه مافهمت شئ Link to comment
7REF_MTA Posted March 10, 2016 Author Share Posted March 10, 2016 طلبي بسيط ان اول ماظغط علي زر يجي كلام في الشات او في الجيو مسيج ولكن يظهر عندي وعند كل الناس Link to comment
SycroX Posted March 10, 2016 Share Posted March 10, 2016 addEventHandler("onClientGUIClick", root, function() if source == Button1 then triggerServerEvent("msg", localPlayer) end end) ---- Server Side addEvent("msg", true) addEventHandler("msg", root, function() exports["guimessages"]:outputServer(root, "HI ALL", 255, 255, 0, true) end) Link to comment
7REF_MTA Posted March 10, 2016 Author Share Posted March 10, 2016 ياخي ولله المشكلة مو هنا المشكلة انه يكرر الكلمة مرتين انا بدي يقول HI ALL مره واحدههههههههه Link to comment
Jupi Posted March 10, 2016 Share Posted March 10, 2016 ياخي ولله المشكلة مو هنا المشكلة انه يكرر الكلمة مرتين انا بدي يقول HI ALL مره واحدههههههههه وريني الكود بتاعك اللي انت حاطه في الملف كدة :~) Link to comment
Mr.R Posted March 10, 2016 Share Posted March 10, 2016 addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == اسم الزر ) then exports [ "guimessages" ] : outputClient ( root, "Hi All", 255, 255, 255, true ) end end ) بكذا بيطلع الكلام للكل الي في السيرفر بناء على طلبك + حطه من جانب كلينت وتأكد من ملف الميتا انه مضبوط يكون شغال عشان يطلع الكلام guimessgaes وضروري مود Link to comment
SycroX Posted March 11, 2016 Share Posted March 11, 2016 addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == اسم الزر ) then exports [ "guimessages" ] : outputClient ( root, "Hi All", 255, 255, 255, true ) end end ) بكذا بيطلع الكلام للكل الي في السيرفر بناء على طلبك + حطه من جانب كلينت وتأكد من ملف الميتا انه مضبوط يكون شغال عشان يطلع الكلام guimessgaes وضروري مود كودك خطا ----- exports["guimessages"]:outputClient("HI ALL", 255, 255, 255, true) علي طول فكودي انا مسوي تريقر للسيرفر + الأخ الي يقول يكرر الكلام الكود جربتو ما يكرر الكلام معي 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