☠ RaZeR ☠ Posted January 14, 2015 Share Posted January 14, 2015 هلا شباب مدري وش فيها ذي onClientRender وربي طفش function createText ( cmd ) if cmd == "G" then dxDrawText ( " !!", 196, 0, 875, 163, tocolor ( 92, 45, 23, 255 ), 1.5, "pricedown" ) end end addEventHandler ( "onClientRender", root, createText ) addCommandHandler ( "G", createText ) لما اكتب حرف G في اف 8 تطلع الكتابه بسرعه وتروح جربت اسوي تايمر مب نافع Link to comment
</Mr.Tn6eL> Posted January 14, 2015 Share Posted January 14, 2015 function createText( ) dxDrawText ( " !!", 196, 0, 875, 163, tocolor ( 92, 45, 23, 255 ), 1.5, "pricedown" ) end addCommandHandler("G", function( ) addEventHandler("onClientRender", root, createText) end) Link to comment
☠ RaZeR ☠ Posted January 14, 2015 Author Share Posted January 14, 2015 شكرا بس عندي طلب انا استخدمت getPlayerName بس مب راضي يشتغل ** ابي اللي لمس الماركر يطلع اسمه في الشات outputChatBox("الماركر: "..getPlayerName(source), MarkerHit) Link to comment
☠ RaZeR ☠ Posted January 14, 2015 Author Share Posted January 14, 2015 outputChatBox( getPlayerName.." inside myMarker", hitElement, 255, 255, 0 ) بس مااشتغل Link to comment
</Mr.Tn6eL> Posted January 14, 2015 Share Posted January 14, 2015 outputChatBox( getPlayerName.." inside myMarker", hitElement, 255, 255, 0 ) بس مااشتغل outputChatBox( getPlayerName(hitElement).." inside myMarker", hitElement, 255, 255, 0 ) Link to comment
☠ RaZeR ☠ Posted January 14, 2015 Author Share Posted January 14, 2015 طلب هل في حل ابي احذف ال dx text بعد شرط كيف ؟؟ Link to comment
</Mr.Tn6eL> Posted January 14, 2015 Share Posted January 14, 2015 طلب هل في حل ابي احذف ال dx text بعد شرط كيف ؟؟ removeEventHandler("onClientRender", root, createText) Link to comment
☠ RaZeR ☠ Posted January 14, 2015 Author Share Posted January 14, 2015 شوف بالله dxDrawText (getPlayerName(hitPlayer) , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown" ) ليه ماتشتغل Link to comment
</Mr.Tn6eL> Posted January 14, 2015 Share Posted January 14, 2015 شوف بالله dxDrawText (getPlayerName(hitPlayer) , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown" ) ليه ماتشتغل dxDrawText (getPlayerName(localPlayer) , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown" ) Link to comment
☠ RaZeR ☠ Posted January 14, 2015 Author Share Posted January 14, 2015 كفو dxDrawText (getPlayerName(localPlayer),"has Taken " , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown" ) يعطيني الاسم مع كود الالوان مايكتب الكلمة has taken يقولي خطأ Link to comment
justboy Posted January 14, 2015 Share Posted January 14, 2015 dxDrawText (getPlayerName(localPlayer).."has Taken ", 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown" ) Link to comment
ALw7sH Posted January 14, 2015 Share Posted January 14, 2015 dxDrawText (getPlayerName(localPlayer).." has Taken " , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown",'left','top', false,false,false,true) Link to comment
☠ RaZeR ☠ Posted January 14, 2015 Author Share Posted January 14, 2015 شباب والله انا محتار كيف احط التايمر يعني بعد ثواني يشيل الكلمة من الشاشة dxdrawtext ** تنبيه شباب انتو كلكم حطيتوا لوكال بلاير انا ابي اللاعب اللي لمس الماركر مب السورس Link to comment
jafar Posted January 14, 2015 Share Posted January 14, 2015 check = false; function createText ( ) if check then dxDrawText ( getPlayerName ( localPlayer ) .. "has Taken ", 196, 0, 875, 163, tocolor ( 255, 255, 255 ), 1.5, "pricedown" ); end end addEventHandler ( "onClientRender", root, createText ); function markerHitorLeave ( player ) if player == localPlayer then if eventName == "onClientMarkerHit" then check = true; else check = false; end end end addEventHandler ( "onClientMarkerHit", marker, markerHitorLeave ); addEventHandler ( "onClientMarkerLeave", marker, markerHitorLeave ); Link to comment
☠ RaZeR ☠ Posted January 14, 2015 Author Share Posted January 14, 2015 شباب اخر طلب ** عندي ذا في الكلنت function MarkerHit ( hitPlayer, matchingDimension ) removeEventHandler("onClientRender", root, createText) end addEventHandler ( "onClientMarkerHit", myMarker1, MarkerHit ) ابي يتوصل تريقر مع ذا اللي في السيرفر myMarker1 = createMarker(2488.80908, -1671.65955, 12.6, 'corona', 2.5, 255, 0, 0, 150) function MarkerHit( hitPlayer, matchingDimension ) outputChatBox("#000000#" .. getPlayerName(hitPlayer) .. ":#D2691E : Has Taken ",root,183,92,38,true) 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