AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP43|ZP50] Auto-save Ammopacks. (https://forums.alliedmods.net/showthread.php?t=156393)

yokomo 05-05-2011 20:16

[ZP43|ZP50] Auto-save Ammopacks.
 
1 Attachment(s)
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.


jc980 05-06-2011 01:06

Re: [TEST] ZP AmmoBank (fvault)
 
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)
}

yokomo 05-06-2011 02:33

Re: [TEST] ZP AmmoBank (fvault)
 
Quote:

Originally Posted by jc980 (Post 1463982)
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. :mrgreen:

jc980 05-06-2011 02:49

Re: [TEST] ZP AmmoBank (fvault)
 
Quote:

Originally Posted by yokomo (Post 1464043)
Depend on user, for me delete is easy than adding some new code. :mrgreen:

well, atleast you have free ammopacks every map change if you cant earn anything.

yokomo 05-06-2011 08:21

Re: [TEST] ZP AmmoBank (fvault)
 
Quote:

Originally Posted by jc980 (Post 1464050)
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.

jc980 05-06-2011 08:45

Re: [TEST] ZP AmmoBank (fvault)
 
Quote:

Originally Posted by yokomo (Post 1464233)
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. :D

georgik57 05-06-2011 10:08

Re: [TEST] ZP AmmoBank (fvault)
 
thanks

ErrorStereotype 05-06-2011 10:47

Re: [TEST] ZP AmmoBank (fvault)
 
ohh ty

SonicSonedit 05-06-2011 12:47

Re: [TEST] ZP AmmoBank (fvault)
 
Another one? =\

yokomo 05-06-2011 13:01

Re: [TEST] ZP AmmoBank (fvault)
 
Quote:

Originally Posted by SonicSonedit (Post 1464440)
Another one? =\

Flawless Victory! :mrgreen:


All times are GMT -4. The time now is 14:58.

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