mostafaalal Posted January 22, 2016 Share Posted January 22, 2016 كيف احط ماركر والي يدخل داخل الماركر تجيه رسالة في الشات اعتقد انها سهلة Link to comment
#|_oskar_|# Posted January 22, 2016 Share Posted January 22, 2016 createMarker outputChatBox Link to comment
#StrOnG_,) Posted January 22, 2016 Share Posted January 22, 2016 createMarkeroutputChatBox + OnClientMarkerHit Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 createMarkeroutputChatBox كذا؟ Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) outputChatBox('يمنع الاقتراب من هذه المنطقة!',255,0,0,true) addEventHandler("onClientMarkerHit",Marker, function (player) Link to comment
Abdul KariM Posted January 22, 2016 Share Posted January 22, 2016 createMarkeroutputChatBox كذا؟ Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) outputChatBox('يمنع الاقتراب من هذه المنطقة!',255,0,0,true) addEventHandler("onClientMarkerHit",Marker, function (player) Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) addEventHandler ("onClientMarkerHit",resourceRoot, function ( player ) if ( source == Marker ) and ( getElementType ( player ) ) then outputChatBox ( 'يمنع الاقتراب من هذه المنطقة!' , 255 , 0 , 0 , true ) end end ) ; Link to comment
Jupi Posted January 22, 2016 Share Posted January 22, 2016 (edited) createMarkeroutputChatBox كذا؟ Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) outputChatBox('يمنع الاقتراب من هذه المنطقة!',255,0,0,true) addEventHandler("onClientMarkerHit",Marker, function (player) Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) addEventHandler ("onClientMarkerHit",resourceRoot, function ( player ) if ( source == Marker ) and ( getElementType ( player ) ) then outputChatBox ( 'يمنع الاقتراب من هذه المنطقة!' , 255 , 0 , 0 , true ) end end ) ; لازم تتحقق انه اللي ضرب الماركر هو الlocalplayer لانه كذا بتظهر للكل + getElementType مالها فائدة و هذا التصحيح Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) addEventHandler ("onClientMarkerHit",resourceRoot, function ( player ) if ( source == Marker ) and player == localPlayer then outputChatBox ( "يمنع الاقتراب من هذه المنطقة !", 255, 0, 0, true) end end ) Edited January 22, 2016 by Guest Link to comment
#|_oskar_|# Posted January 22, 2016 Share Posted January 22, 2016 كذا؟ Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) outputChatBox('يمنع الاقتراب من هذه المنطقة!',255,0,0,true) addEventHandler("onClientMarkerHit",Marker, function (player) XXX الفنكشن انت حاطه تحت اخر شئ المفروض يكون اول كود وبعدين تحط اكوادك تحته وناقصك اند + التحقق عالعموم تفضل local Text = 'يمنع الاقتراب من هذه المنطقة' local Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) addEventHandler("onClientMarkerHit",Marker, function (player) if player == localPlayer then outputChatBox ('#00FF00'..Text,255,0,0,true) end end) Link to comment
Abdul KariM Posted January 23, 2016 Share Posted January 23, 2016 مشكور اخوي دابل مانتبهت لها صراحة اشكرك بالتوفيق ان شاء الله Link to comment
mostafaalal Posted January 23, 2016 Author Share Posted January 23, 2016 كذا؟ Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) outputChatBox('يمنع الاقتراب من هذه المنطقة!',255,0,0,true) addEventHandler("onClientMarkerHit",Marker, function (player) XXX الفنكشن انت حاطه تحت اخر شئ المفروض يكون اول كود وبعدين تحط اكوادك تحته وناقصك اند + التحقق عالعموم تفضل local Text = 'يمنع الاقتراب من هذه المنطقة' local Marker = createMarker (1002.3,-644,121, "cylinder",5,0,0,0, 0 ) addEventHandler("onClientMarkerHit",Marker, function (player) if player == localPlayer then outputChatBox ('#00FF00'..Text,255,0,0,true) end end) شكرا مرة اخرى افدت الجميع Link to comment
mostafaalal Posted January 23, 2016 Author Share Posted January 23, 2016 العفو - حياك الله للاسف عند دخول مكان الماركر لا يحدث اي شيئ Link to comment
#|_oskar_|# Posted January 23, 2016 Share Posted January 23, 2016 العفو - حياك الله للاسف عند دخول مكان الماركر لا يحدث اي شيئ الكود شغال تمام شكلك مخليه سيرفر اطرح الميتا Link to comment
mostafaalal Posted January 23, 2016 Author Share Posted January 23, 2016 <?xml version="1.0"?> - Link to comment
#|_oskar_|# Posted January 23, 2016 Share Posted January 23, 2016 <?xml version="1.0"?>- <meta> <script src="client.lua" type="client" /> </meta> 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