Dr.Xen Posted February 27, 2014 Share Posted February 27, 2014 (edited) السلام عليكم ورحمة الله وبركاته!! كيفكم حالكم !@ دووؤوم الصحة والعافية .. اريد طلب كود اطلاق صواريخ من السيارة عند ضغط زر كلك يسار من الماوس .. زي الي بالشوتر .. وشكرآ! Edited February 28, 2014 by Guest Link to comment
#DRAGON!FIRE Posted February 27, 2014 Share Posted February 27, 2014 CanShoot = true bindKey ( "arrow_l", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) Link to comment
Dr.Xen Posted February 27, 2014 Author Share Posted February 27, 2014 اخوي زاحف انا اعدل الإحداثيات ولأ كذا جاهز؟ + ما عرفت إحداثيات وش x, y, z Link to comment
shwaeki Posted February 27, 2014 Share Posted February 27, 2014 هيك الكود جاهز بس انتا ركبة و شغلة Link to comment
Dr.Xen Posted February 27, 2014 Author Share Posted February 27, 2014 CanShoot = true bindKey ( "arrow_l", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) كلينت ^ 1 جربت بس ما زبط مدري ليه Link to comment
#DRAGON!FIRE Posted February 27, 2014 Share Posted February 27, 2014 الكود سليم ما فيه اي اخطأ .. ولو متاكد حاطه بـ جانب كلنت وكل شي صحيح debugscript 3 Link to comment
xFace[B]ook Posted February 27, 2014 Share Posted February 27, 2014 CanShoot = true bindKey ( "arrow_l", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) كلينت ^ 1 جربت بس ما زبط مدري ليه CanShoot = true bindKey ( "mouse1", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) Link to comment
CRoW,,# Posted February 27, 2014 Share Posted February 27, 2014 CanShoot = true bindKey ( "arrow_l", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) حق عناد ذذ Link to comment
Dr.Xen Posted February 28, 2014 Author Share Posted February 28, 2014 لأزم اعوض برقم السيارة الديبوق : Warning: car2\script.lua:3 Bad Argument @ 'bindKey Link to comment
#DRAGON!FIRE Posted February 28, 2014 Share Posted February 28, 2014 Client Side ! CanShoot = true bindKey ( "mouse1", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) Link to comment
Dr.Xen Posted February 28, 2014 Author Share Posted February 28, 2014 Warning: car2\script.lua:3 Bad Argument @ 'bindKey Link to comment
#DRAGON!FIRE Posted February 28, 2014 Share Posted February 28, 2014 Warning: car2\script.lua:3 Bad Argument @ 'bindKey اطرح الميتا . CanShoot = true bindKey ( "arrow_l", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) حق عناد ذذ عنأد صحح غلط بسيط كان فيه ذذ . Link to comment
Dr.Xen Posted February 28, 2014 Author Share Posted February 28, 2014 كفوو ومشكور + زبطت 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