Jump to content

[HELP]Put a bomb on a weapon


mucuk6547

Recommended Posts

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

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

 

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

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

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

 

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

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