Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] [HELP] Fully eliminating weapon when no ammo left

 
  • 0 Vote(s) - 0 Average
Pawn [HELP] Fully eliminating weapon when no ammo left
Smyle
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Jan 2021
Reputation: 0
Location: Brazil
#1
2021-01-11, 08:54 PM
Hey.

So, since a while ago i was having an issue when finishing using a weapon (when i shot the last bullet left). As we all know, when we're using GetPlayerWeaponData, old weapons with no ammo left are still returned and basically that fucks everything up if you're checking if a player already has that specific weapon by using the GetPlayerWeaponData function.

So my question is: Is there any way we can like reset or eliminate that weapon when whe shot the last bullet for the last time? As i said, the weapon vanishes, but it still shows up on GetPlayerWeaponData.

I already tried to remove it when shooting and checking if it was the last bullet using OnPlayerWeaponShot, but i had no success on it.

Please, help!  +REP to those who can give me a good answer.

Thank yall.
« Next Oldest | Next Newest »



Messages In This Thread
[HELP] Fully eliminating weapon when no ammo left - by Smyle - 2021-01-11, 08:54 PM
RE: [HELP] Fully eliminating weapon when no ammo left - by gzxmx94 - 2021-01-12, 12:21 PM
RE: [HELP] Fully eliminating weapon when no ammo left - by Pinch - 2021-01-12, 02:59 PM
RE: [HELP] Fully eliminating weapon when no ammo left - by Smyle - 2021-01-14, 01:35 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode