StarBoy Posted August 5, 2015 Share Posted August 5, 2015 السلام عليكم ورحمه الله وبركاته انا عملت لوحه وفيها button ابي لما اضغط على البوتون يفعل الليزر ويشتغل االيزر للاسلاح Link to comment
iMr.SFA7 Posted August 5, 2015 Share Posted August 5, 2015 https://community.multitheftauto.com/ind ... ils&id=652 Link to comment
StarBoy Posted August 5, 2015 Author Share Posted August 5, 2015 https://community.multitheftauto.com/index.php?p=resources&s=details&id=652 كذا صحيح addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then executeCommandHandler ( "laser" ) end end ) Link to comment
iMr.SFA7 Posted August 5, 2015 Share Posted August 5, 2015 resourceRoot حط بدالها root Link to comment
Simple. Posted August 5, 2015 Share Posted August 5, 2015 getPedTargetStart getPedTargetEnd dxDrawLine3D Link to comment
0m4r Posted August 5, 2015 Share Posted August 5, 2015 function onGuiClick (button, state, absoluteX, absoluteY) if ( source == Button ) then function narBullets() local x,y,z = getPedWeaponMuzzlePosition(localPlayer) x2,y2,z2 = getPedTargetCollision(localPlayer) if not x2 then x2,y2,z2 = getPedTargetEnd(localPlayer) end dxDrawLine3D(x,y,z, x2,y2,z2, tocolor(255,0,0), 2) end addEventHandler("onClientRender", root, narBullets) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) Link to comment
Simple. Posted August 5, 2015 Share Posted August 5, 2015 function onGuiClick (button, state, absoluteX, absoluteY) if ( source == Button ) then function narBullets() local x,y,z = getPedWeaponMuzzlePosition(localPlayer) x2,y2,z2 = getPedTargetCollision(localPlayer) if not x2 then x2,y2,z2 = getPedTargetEnd(localPlayer) end dxDrawLine3D(x,y,z, x2,y2,z2, tocolor(255,0,0), 2) end addEventHandler("onClientRender", root, narBullets) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) آول شيء قآل تم الحل ثآني شيء كودك هريسه ! Link to comment
iMr.SFA7 Posted August 5, 2015 Share Posted August 5, 2015 (edited) function onGuiClick (button, state, absoluteX, absoluteY) if ( source == Button ) then function narBullets() local x,y,z = getPedWeaponMuzzlePosition(localPlayer) x2,y2,z2 = getPedTargetCollision(localPlayer) if not x2 then x2,y2,z2 = getPedTargetEnd(localPlayer) end dxDrawLine3D(x,y,z, x2,y2,z2, tocolor(255,0,0), 2) end addEventHandler("onClientRender", root, narBullets) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) الحين وش الفايدة من ردك بما أن صاحب الموضوع تمت افادته ماله داعي ترد Edited August 5, 2015 by Guest Link to comment
StarBoy Posted August 5, 2015 Author Share Posted August 5, 2015 ابي حل outputChatBox("laser on", 245,0,0) اخليه جوي مسج Link to comment
StarBoy Posted August 5, 2015 Author Share Posted August 5, 2015 كذا ؟؟ exports["guimessages"]:outputClient("اللغة: العربية", 255, 255, 255) Link to comment
iMr.SFA7 Posted August 5, 2015 Share Posted August 5, 2015 كذا ؟؟exports["guimessages"]:outputClient("اللغة: العربية", 255, 255, 255) exports["guimessages"]:outputClient("Text") Link to comment
0m4r Posted August 6, 2015 Share Posted August 6, 2015 الحين وش الفايدة من ردك بما أن صاحب الموضوع تمت افادته ماله داعي ترد طيب مافيها شيء لو رديت وساعدته آول شيء قآل تم الحل ثآني شيء كودك هريسه ! الكود شغال مافيه شيء Link to comment
Rockyz Posted August 7, 2015 Share Posted August 7, 2015 ابي حلoutputChatBox("laser on", 245,0,0) اخليه جوي مسج كذا اذا تبي الكلام يطلع للكل استخدم : exports["guimessages"]:outputServer(root, "* Laser On", 0, 255, 255) واذا تبي يطلع الكلام بس للاعب نفسه استخدم : exports["guimessages"]:outputClient("* Laser On") بالنسبة للكود الثاني اذا تبي يطلع ملون جرب خل الاكواد مال الالوان اتمنى افدتك طبعا بتقول ليش عطيتك واصلا عطوك بس للاضافة ادا تبيه لكل الاعبين 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