nikitafloy Posted June 22, 2014 Share Posted June 22, 2014 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 Citizen Posted June 22, 2014 Moderators Share Posted June 22, 2014 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
nikitafloy Posted June 22, 2014 Author Share Posted June 22, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now