☠ RaZeR ☠ Posted January 20, 2015 Posted January 20, 2015 (edited) شكرا خلاص حليت المشكلة بنفسي Edited January 20, 2015 by Guest
☠ RaZeR ☠ Posted January 20, 2015 Author Posted January 20, 2015 ارجواا حل المشكلة ابيه يشيل الكلام لكل اللاعبين مو اللاعب اللي لمس الماركر فقط ويظهر لجميع اللاعبين dxDrawText "" اعتقد نغير الروت ملاحظه : اللي اعرف ان الروت هي اللي تخلي يظهر لكل اللاعبين لاكن مدري وش صار كلنت addEvent("marker",true) addEventHandler("marker",root, function () function H() dxDrawText (getPlayerName(localPlayer).."has Taken " , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown",'left','top', false,false,false,true) end addEventHandler("onClientRender",root, H) setTimer ( function() removeEventHandler("onClientRender",root, H) end, 10000, 1 ) end ) سيرفر myMarker1 = createMarker(2488.80908, -1671.65955, 12.6, 'corona', 2.5, 255, 0, 0, 150) function MarkerHit(client) triggerClientEvent(client,"marker",client) end addEventHandler('onMarkerHit', myMarker1, MarkerHit)
#DRAGON!FIRE Posted January 20, 2015 Posted January 20, 2015 جرب : addEvent( "dxText_", true ) addEventHandler( "dxText_", root, function ( ) function txtRender ( ) dxDrawText ( getPlayerName ( source ).."has Taken", 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown", "left", "top", false, false, false, true ) end addEventHandler( "onClientRender", root, txtRender ) setTimer ( function ( ) removeEventHandler( "onClientRender", root, txtRender ) end, 10000, 1 ) end ) myMarker1 = createMarker(2488.80908, -1671.65955, 12.6, 'corona', 2.5, 255, 0, 0, 150) addEventHandler ( "onMarkerHit", resourceRoot, function ( element ) if ( source == myMarker1 ) then if ( getElementType ( element ) == "player" ) then triggerClientEvent ( root, "dxText_", element ) end end end )
☠ RaZeR ☠ Posted January 20, 2015 Author Posted January 20, 2015 شكرا زاحف : انا سويت مكانه توب بار شات احسن وشكله انظف ** شكرا على المجهود
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