AnoirTiza Posted January 20, 2019 Share Posted January 20, 2019 شباب بدي لما ادخل على الماركر تفتح اللوحة إيش المشكل؟؟ -- client side addEvent("triggerPanel",true) addEventHandler("triggerPanel",resourceRoot, function () local screenW, screenH = guiGetScreenSize() mywindow = guiCreateWindow((screenW - 379) / 2, (screenH - 147) / 2, 379, 147, "Panel", false) guiWindowSetSizable(mywindow, false) مش مهم مش مهم مش مهم end ) -- server side gatesmarker = createMarker ( 369.820703125, 162.27880859375, 1024.7890625, "cylinder", 1, 255, 255, 0, 170 ) function markerhit () triggerClientEvent ( source, "triggerPanel", getRootElement(), gatemarker ) end addEventHandler("onMarkerHit",gatemarker,markerhit) Link to comment
KillerX Posted January 20, 2019 Share Posted January 20, 2019 13 hours ago, AnoirTiza said: function markerhit () triggerClientEvent ( source, "triggerPanel", getRootElement(), gatemarker ) end addEventHandler("onMarkerHit",gatemarker,markerhit) الخطا هنا خليها كذا function markerhit (player,dim) if ( getElementType( player ) == 'player' and dim ) then triggerClientEvent( player , 'triggerPanel' , player) end ; end addEventHandler("onMarkerHit",gatemarker,markerhit) 1 Link to comment
AnoirTiza Posted January 20, 2019 Author Share Posted January 20, 2019 ليش سويت تحقق؟؟ " ; " و إيش هذا لنو سويت ماركر و لما ادخل في الماركر بروح أنتريور ثاني و ظبطت معي بدون ما سويت if getElementType Link to comment
KillerX Posted January 21, 2019 Share Posted January 21, 2019 (edited) 21 hours ago, AnoirTiza said: ليش سويت تحقق؟؟ " ; " و إيش هذا لنو سويت ماركر و لما ادخل في الماركر بروح أنتريور ثاني و ظبطت معي بدون ما سويت if getElementType getElementType عشان يتحقق نوع اللي دخل الماركر يمكن يدخل بيد او سيارة وهيشتغل عليهم الكود ويحصل اخطاء لانهم مب لاعبين 20 hours ago, AnoirTiza said: كودك مو شغال ايش يظهر بالديبق Edited January 21, 2019 by KillerX Link to comment
AnoirTiza Posted January 21, 2019 Author Share Posted January 21, 2019 ولا شي في الديبق Link to comment
Guest Posted January 21, 2019 Share Posted January 21, 2019 (edited) gatesmarker = createMarker ( 369.820703125, 162.27880859375, 1024.7890625, "cylinder", 1, 255, 255, 0, 170 ) function markerhit () triggerClientEvent ( source, "triggerPanel", getRootElement(), gatesmarker ) end addEventHandler("onMarkerHit",gatesmarker,markerhit) + تأكد من الميتا .. Edited January 21, 2019 by Guest Link to comment
KillerX Posted January 21, 2019 Share Posted January 21, 2019 12 hours ago, PaisoN^ said: triggerClientEvent ( source, "triggerPanel", getRootElement(), gatesmarker ) السورس هنا معنا الماركر اللي دخلوا وكودك دا معناة يرسل للكلنت حق المركر وطبعا دا مستحيل الكلنت للاعب فقط Link to comment
N3xT Posted January 22, 2019 Share Posted January 22, 2019 Client: local gasMarker = createMarker ( 369.820703125, 162.27880859375, 1024.7890625, "cylinder", 1, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", gasMarker, function ( _, dimension ) if ( dimension ) then guiSetVisible ( window, true ) showCursor ( true ) 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