AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP50] Addon: Items Discount (https://forums.alliedmods.net/showthread.php?t=242544)

Catastrophe 06-21-2014 04:18

[ZP50] Addon: Items Discount
 
2 Attachment(s)
[ZP50] Addon: Items Discount

Description:-

Its just a Rip off from The item limiter plugin i made. Made this for one of my friend's server. Thought some people might find it useful.

So Basically this plugin gives player a kind of "discount" on extra items. The discount and on which item can be edited from the zp_extra_discount.ini (Note:- The discount is always in % so if u keep it 100 then the item will be free and if more than 100 then people will actually gain AP instead of losing them when purchasing that item)

This plugin will also add a small notice with the given discount on any extra item that is in the .ini file.

It has plenty of good uses like you can Give 50% discount on heavy items on weekends to attract more players or change the discounts and add new deals daily and so on....

How to add items and discount to them :-

Step 1:
Find the extra items register name. It is given inside any extra item's code in its register function

http://i61.tinypic.com/xao2hi.jpg

Step 2:
Copy and paste that name without the quotes in the "zp_extra_discount.ini" file in "item_id" section and in "item_discount" section put the desired discount (Note: As i mentioned earlier the discount is in % so keep it less than 100).

http://i57.tinypic.com/awc37b.jpg

Step 3:
Save the "zp_extra_discount.ini" and close it. (No change needs to be made in the .sma file of the extra item.)

Note: To add more than 1 extra item in the list, just add a coma after the previous extra item id in the zp_extra_discount.ini and add the id of this other extra item after the coma.

http://i60.tinypic.com/2l8b79u.jpg

Bugs : -

None. Report if u find any.

Although there is one thing. Do not put more than 128 items in the zp_item_discount.ini at one time, or it will give you errors.

My Note:-

Dont PM me for anything related to this topic, post it here.........

Change log:-

v1.0
Release

Servers Using this plugin: 74.91.119.56:27015

zmd94 06-21-2014 07:14

Re: [ZP50] Addon: Items Discount
 
Thank you. :up:

I have never think about a plugin that can give discount. :idea:

I have tried it in my ZP 5.0.5 server and it works. When we open the extra items menu, there will be a discount tag. Example:
Quote:

Jetpack + Bazooka 50 [10% Off]
However, this plugin will not work for VIP extra items but it still a good plugin. I will add this addon in here:
Thank for sharing. :wink:

Catastrophe 06-21-2014 08:11

Re: [ZP50] Addon: Items Discount
 
Quote:

Originally Posted by zmd94 (Post 2155009)
However, this plugin will not work for VIP extra items :wink:

It was never meant for VIP extras they work on different forwards than the basic extras.

wicho 06-21-2014 18:04

Re: [ZP50] Addon: Items Discount
 
Interesting, thx for share..


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

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