Soren Posted February 8, 2012 Share Posted February 8, 2012 Hola a todos hise este resource no lo teste pero se que funciona perfectamente function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 27, 24, 30) then -- Aqui agrega el ID's de las Armas que quieres que sean de fuego en este caso Spaz, DE, Ak4. createFire(hitX, hitY, hitZ, 12, true, false, true) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) Link to comment
ghost050 Posted February 8, 2012 Share Posted February 8, 2012 Mira, lo primero, si ya lo testeaste para que lo pones aca. Segundo, esta mal. Link to comment
Krujitoz Posted February 8, 2012 Share Posted February 8, 2012 (edited) Para que un Tadinga! lo copie... Edited February 8, 2012 by Guest Link to comment
Castillo Posted February 8, 2012 Share Posted February 8, 2012 local weapons = {[27] = true, [24] = true, [30] = true} -- Aqui agrega el ID de las Armas que quieres que sean de fuego en este caso Spaz, DE, Ak4. function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapons[weapon]) then createFire(hitX, hitY, hitZ, 10) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) Link to comment
Soren Posted February 8, 2012 Author Share Posted February 8, 2012 local weapons = {[27] = true, [24] = true, [30] = true} -- Aqui agrega el ID's de las Armas que quieres que sean de fuego en este caso Spaz, DE, Ak4. function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapons[weapon]) then createFire(hitX, hitY, hitZ, 10) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) Gracias Solidsanke14 tan maravilloso como siempre Link to comment
Recommended Posts