Jump to content

خلط الاسلحة


Recommended Posts

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
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 

أنت تبي تسوي خلط أسلحة و إلا خلط اكواد

:mrgreen: لان الي اشوفه انت مسوي خلط اكواد

اقرأ الويكي و تفهم كل شي ايش شغلته

https://wiki.multitheftauto.com/wiki/OnClientPlayerWeaponFire

المثال الثاني بالويكي يخلي الشوزن يطلق انفجار أنت عدل عليه و سوه يطلق صاروخ

Link to comment

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) 
  
  

؟؟ :roll:

Link to comment
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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...