Jump to content

Reload


Recommended Posts

I have not seen this question on the forum, which is a bit strange.

A question: How to create a shot to make perezyarazhatsya?

The difficulty was to understand the way to cancel the second shot.

If you still do not understand what I mean: who played on RP seen as the police recharges shocker. It's like a vivid example.

Link to comment
  • Moderators
to make perezyarazhatsya?

To make WHAT ?!

Do you mean a tazer ? click for images

You need use a specfic gun from GTA that you will use for that. (like the silenced pistol (id 23))

Then on client, listen for onClientPlayerDamage event and check if the id of the attacker weapon is 23.

If yes, then cancel the real bullet damages by calling cancelEvent()

To prevent the police officer to shoot more than one shock charge like the original pistol can, you will need to use:

setWeaponProperty (on server side) on weapon id 23 to set max ammo in clip to 1 (he will reload after each shot)

Link to comment
to make perezyarazhatsya?

To make WHAT ?!

Do you mean a tazer ? click for images

You need use a specfic gun from GTA that you will use for that. (like the silenced pistol (id 23))

Then on client, listen for onClientPlayerDamage event and check if the id of the attacker weapon is 23.

If yes, then cancel the real bullet damages by calling cancelEvent()

To prevent the police officer to shoot more than one shock charge like the original pistol can, you will need to use:

setWeaponProperty (on server side) on weapon id 23 to set max ammo in clip to 1 (he will reload after each shot)

Sorry, this is my translation inattentive. Thanks, second paragraph -- what I need.

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