AhmeD~9MoD Posted May 9, 2013 Share Posted May 9, 2013 شباب ابغى كود يخلي سلاح معين يطلق رصاص سلاح معين مثلاً : رشاش يطلق صواريخ Link to comment
jafar Posted May 9, 2013 Share Posted May 9, 2013 createProjectile "onClientPlayerWeaponFire" Link to comment
فاّرس Posted May 9, 2013 Share Posted May 9, 2013 createProjectile "onClientPlayerWeaponFire" setWeaponProperty setPedWeaponSlot Link to comment
AhmeD~9MoD Posted May 9, 2013 Author Share Posted May 9, 2013 hitX hitY hitZ لحين ماسويتهم + مافهمت شغلتهم بالظبط ذآ الكود الي سويته اعتقد فيه اخطاء : addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) function onClientPlayerWeaponFireFunc(30, 200, 100, hitX, hitY, hitZ, hitElement) createProjectile(getLocalPlayer(),19,x,y,z,200) end end Link to comment
TAPL Posted May 9, 2013 Share Posted May 9, 2013 hitXhitY hitZ لحين ماسويتهم + مافهمت شغلتهم بالظبط ذآ الكود الي سويته اعتقد فيه اخطاء : addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) function onClientPlayerWeaponFireFunc(30, 200, 100, hitX, hitY, hitZ, hitElement) createProjectile(getLocalPlayer(),19,x,y,z,200) end end أنت تبي تسوي خلط أسلحة و إلا خلط اكواد لان الي اشوفه انت مسوي خلط اكواد اقرأ الويكي و تفهم كل شي ايش شغلته https://wiki.multitheftauto.com/wiki/OnClientPlayerWeaponFire المثال الثاني بالويكي يخلي الشوزن يطلق انفجار أنت عدل عليه و سوه يطلق صاروخ Link to comment
AhmeD~9MoD Posted May 9, 2013 Author Share Posted May 9, 2013 AK-47 يطلق قنابل function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 30) then createExplosion(hitX, hitY, hitZ, 16, true, 0, true) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) ؟؟ Link to comment
AhmeD~9MoD Posted May 9, 2013 Author Share Posted May 9, 2013 function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 30) then createProjectile(getLocalPlayer(),16,x,y,z,1000) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) Link to comment
iPrestege Posted May 9, 2013 Share Posted May 9, 2013 function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 30) then createProjectile(getLocalPlayer(),16,x,y,z,1000) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) x,y,z = ?? hitX,hitY,hitZ Link to comment
AhmeD~9MoD Posted May 9, 2013 Author Share Posted May 9, 2013 function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 30) then createProjectile(getLocalPlayer(),16,hitX,hitY,hitZ,1000) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) Link to comment
AhmeD~9MoD Posted May 9, 2013 Author Share Posted May 9, 2013 مايطلع في غلط بس لما اجي بطلق بسلاح الأي كي 47 مايطلق قنابل .. Link to comment
PaiN^ Posted May 9, 2013 Share Posted May 9, 2013 إقرأ الأرجمنت posX,posY,posZ: float starting coordinates for the projectile. They are coordinates of creator by default 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