Jump to content

[HELP]Put a bomb on a weapon


mucuk6547

Recommended Posts

Posted
addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,19,hitX, hitY, hitZ) end end )

 

Posted
2 hours ago, Berko said:

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,19,hitX, hitY, hitZ) end end )

 

can you be coded.

I would appreciate if you put a grenade

Posted
2 hours ago, mucuk6547 said:

can you be coded.

I would appreciate if you put a grenade

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) 

 

Posted
1 hour ago, Berko said:

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) 

 

She doesn't write anything here.

Posted
32 minutes ago, mucuk6547 said:

She doesn't write anything here.

AdminPanel -> Resources/Excute Command:/(paste the code) 

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) 

and click on client

Posted
1 hour ago, Berko said:

AdminPanel -> Resources/Excute Command:/(paste the code) 


addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) 

and click on client 

I want it to be just mp5. can you help please

Posted
33 minutes ago, mucuk6547 said:

I want it to be just mp5. can you help please

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )

 

Posted
1 hour ago, Berko said:

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )

 

now no bombs

Posted
1 hour ago, Berko said:

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, _, _, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )

 

he throws all the guns still have the same problem

5 throwing bombs

Posted (edited)
Just now, mucuk6547 said:

he throws all the guns still have the same problem

Bro, 

I have asked to have a mp5 weapon just for which I have the power to throw grenades and I gave it to you through code

 grenades for all weapons:

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0  ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )

 grenades for mp5:

addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, _, _, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )

 

Edited by Berko
</>

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