Raised This Month: $51 Target: $400
 12% 

Dollar Weapon menu


Post New Thread Reply   
 
Thread Tools Display Modes
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 03-17-2024 , 18:35   Re: Dollar Weapon menu
Reply With Quote #31

Quote:
Originally Posted by Yanez98 View Post
Unfortunately, it won't do any good this way, it doesn't drop all the weapons, so you still have 2 in your hand!
Buddy, in the code We provided the plugin uses the strip_user_weapons() native.

It removes all the player weapons when a purchase in the market is confirmed.
Then, after this, the plugin gives the player the purchased weapon, and just this.

In all our tests here, the player holds only the purchased weapon.
__________________
💻Know Our New Blog👄
🔗tube2downs.blogspot.com
WATCH_D0GS UNITED is offline
Tote
Senior Member
Join Date: Jul 2023
Old 03-17-2024 , 19:03   Re: Dollar Weapon menu
Reply With Quote #32

Quote:
Originally Posted by WATCH_D0GS UNITED View Post
Buddy, in the code We provided the plugin uses the strip_user_weapons() native.

It removes all the player weapons when a purchase in the market is confirmed.
Then, after this, the plugin gives the player the purchased weapon, and just this.

In all our tests here, the player holds only the purchased weapon.
Nah, he want to remove only primary & secondary weapons. He doesn't want to remove the stuff like HE or Defuse Kit etc, i already gave him the solution. Now it's up to him whether he can understand what i've said or not ;)
Tote is offline
Tote
Senior Member
Join Date: Jul 2023
Old 03-17-2024 , 19:04   Re: Dollar Weapon menu
Reply With Quote #33

Quote:
Originally Posted by Tote View Post
or use this simple for secondary and primary except that c4,def etc

https://forums.alliedmods.net/showthread.php?t=170478
Just check THis for UR SOlution Buddy
Tote is offline
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 03-19-2024 , 10:18   Re: Dollar Weapon menu
Reply With Quote #34

There's a issue when pressing 'repurchase' in the next round after buying a pistol.
It subtracts the value of a pistol you already have in the inventory instead of the real items which were repurchased.
__________________
💻Know Our New Blog👄
🔗tube2downs.blogspot.com
WATCH_D0GS UNITED is offline
Yanez98
Junior Member
Join Date: Mar 2024
Old 03-22-2024 , 06:29   Re: Dollar Weapon menu
Reply With Quote #35

Quote:
Originally Posted by WATCH_D0GS UNITED View Post
There's a issue when pressing 'repurchase' in the next round after buying a pistol.
It subtracts the value of a pistol you already have in the inventory instead of the real items which were repurchased.
I wrote it because I think the rg_remove_items(index1) solution will be the best possible solution
Yanez98 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode