Jump to content

استفسار بخصوص كود


Recommended Posts

لو سمحتو بدي كود كامل لاطلاق من سلاح لانشر + الطيران بالهوا ستاف + ما اموت

اكتبهم في اللوحة ذول

شكرا

الطلب الاول

  
setElementData 
addEventHandler -- "onClientWeaponFire" 
getElementData 
createExplosion 
  

الطلب الثاني

  
setWorldSpecialPropertyEnabled 

الطلب الثالث

  
addEventHandler -- "onClientPlayerDamage" 
cancelEvent 

Link to comment

القسم غلط ..# خذ:

1-

bindKey("sprint", "down", 
function(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
local weaponSolt = getPlayerWeaponSlot(localPlayer) 
local widh, height = guiGetScreenSize() 
local x, y, z = getPedWeaponMuzzlePosition(localPlayer) 
local cax , cay, caz = getCameraMatrix() 
local tx , ty, tz = getWorldFromScreenPosition(widh/1.89,height/2.5,7) 
local sx, sy, sz = (tx-cax)/5, (ty-cay)/5, (tz-caz)/5 
if weaponSolt then 
createProjectile(localPlayer, 19, x, y, z, 1, nil, 0, 0, 360-getPedRotation(localPlayer), sx, sy, sz) 
end 
end 
) 
  

2-

setWorldSpecialPropertyEnabled("extrajump ", true) 

3-

function onDamage() 
cancelEvent() 
end 
addEventHandler("onClientPlayerDamage", root, onDamage) 

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