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

ZP Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Berserk37
Junior Member
Join Date: Apr 2020
Old 04-24-2020 , 17:32   ZP Weapon
Reply With Quote #1

When I purchase a extra item weapon i use it but nextrou d it get lost.How I can make it once I buy it ,it will be there every round till I get zombie
Berserk37 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-24-2020 , 17:44   Re: ZP Weapon
Reply With Quote #2

let me guess, is this a golden item? like golden ak, mp5?
leave here your code
__________________
a simple act of caring creates an endless ripple.

Last edited by Nutu_; 04-24-2020 at 17:45.
Nutu_ is offline
Berserk37
Junior Member
Join Date: Apr 2020
Old 04-25-2020 , 08:55   Re: ZP Weapon
Reply With Quote #3

Well I wanna learn myself because there isn't just 1 weapon that expires nextroumd there a more.What I should edit in the sma?
Berserk37 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-25-2020 , 10:18   Re: ZP Weapon
Reply With Quote #4

yes ofc
somewhere in your source have a bool, like hasgoldenak = true/false, check in new round or end round event if you've got it false, turn it true, i cant explain to you better if i cant see your source
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 04-25-2020 , 13:36   Re: ZP Weapon
Reply With Quote #5

There are 3 places it might be. Here is how you find it (for dummy dumb if you really new to amxx)
1. New Round
Spoiler


2. After Cure / Humanized
Spoiler


3. Player Respawn
Spoiler


After you locate the possible place it might be, you need to know which one is the "check" which determined you have weapon or not.
they could used a int (all of this is example, it can be different depend on author)
PHP Code:
g_Has_Weapon[id] = 
a boolen
PHP Code:
g_Has_Weapon[id] = false 
or even BitVar
PHP Code:
UnGet_Bitvar(g_Has_Weapon[id], id
There are 3 hint that could be correct to what you searching for:
1. it contain the word "has" in there
Ex: hasgoldenak
2. It usually set to 0/false because it remove weapon at where you are searching
3. It has the weapon name in there (for me, I usually named it something like g_Had_AK60r with AK60r is the weapon name)

After that, remove that line. And your weapon won't be disappear at the start of the round again
__________________
My plugin:

Last edited by Celena Luna; 04-25-2020 at 13:38.
Celena Luna is offline
Berserk37
Junior Member
Join Date: Apr 2020
Old 04-28-2020 , 22:18   Re: ZP Weapon
Reply With Quote #6

Thanks both of you it worked

Last edited by Berserk37; 04-28-2020 at 22:22.
Berserk37 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:52.


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