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

[ZP43|ZP50] Auto-save Ammopacks.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-05-2011 , 20:16   [ZP43|ZP50] Auto-save Ammopacks.
Reply With Quote #1

Descriptions:
Code:
A plugin to auto store ammopacks into vault and it can be stay how many days define in plugin.
Modules:
Code:
#include <nvault>
Configurations:
Code:
//Your vault name
#define VAULT_NAME "apstore"

//Max player's ammopack value that can be save in vault.
#define MAX_AMMOPACK 9999

//Max day player's ammopack can be stay in vault, set 0 = permanent.
#define DAY_PRUNE 15
ZP50 Support:
Code:
//Uncomment 'IM_USING_ZP50' if your server is running ZP50 and above.
#define IM_USING_ZP50
Changes Log:
Code:
0.0.1
- Re-write whole code.
- Now using nvault module.
- Remove loop to save AP every x seconds.
FAQs:
Code:
Q: How to view and edit .vault file?
A: Use "nVault Editor" by bugsy, see http://forums.alliedmods.net/showthread.php?t=66657

Q: How to use nVault Editor?
A: Step by step:
1. Close server.
2. Download .vault file.
3. Open with nVault Editor.
4. Search for player's steamid.
5. Change the value.
6. Save and close vault.
Attached Files
File Type: sma Get Plugin or Get Source (zp_ap_store.sma - 4026 views - 1.9 KB)
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 08-14-2014 at 03:37. Reason: Re-write whole plugin.
yokomo is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-06-2011 , 01:06   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #2

try nfvault by emp.

and also, instead of deleting the cvar. i just replaced it as a native.
Quote:
natives zp_additional_ammo_packs(id)
{
g_ammopacks[id] += get_pcvar_num(cvar_ammopacks)
}
__________________
jc980 is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-06-2011 , 02:33   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #3

Quote:
Originally Posted by jc980 View Post
try nfvault by emp.

and also, instead of deleting the cvar. i just replaced it as a native.
Depend on user, for me delete is easy than adding some new code.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-06-2011 , 02:49   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #4

Quote:
Originally Posted by yokomo View Post
Depend on user, for me delete is easy than adding some new code.
well, atleast you have free ammopacks every map change if you cant earn anything.
__________________
jc980 is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-06-2011 , 08:21   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #5

Quote:
Originally Posted by jc980 View Post
well, atleast you have free ammopacks every map change if you cant earn anything.
It can be done through an external plugin, just set taskid & use set user ammopack when client put in server. No need to add new stuff on main plugin.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-06-2011 , 08:45   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #6

Quote:
Originally Posted by yokomo View Post
It can be done through an external plugin, just set taskid & use set user ammopack when client put in server. No need to add new stuff on main plugin.
but i like new stuff.
__________________
jc980 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-06-2011 , 10:08   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #7

thanks
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
ErrorStereotype
Senior Member
Join Date: Feb 2011
Location: Bosnia and Herzegovina
Old 05-06-2011 , 10:47   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #8

ohh ty
ErrorStereotype is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-06-2011 , 12:47   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #9

Another one? =\
__________________

SonicSonedit is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-06-2011 , 13:01   Re: [TEST] ZP AmmoBank (fvault)
Reply With Quote #10

Quote:
Originally Posted by SonicSonedit View Post
Another one? =\
Flawless Victory!
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo 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 06:15.


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