Page 1 of 1
Bonus Manager v1.2
Posted: 17 Sep 2021, 20:56
by z0h1r-LK
Bonus Manager
Screenshots:
- Screenshot.
- 01.jpg (98.63 KiB) Viewed 12803 times
- Screenshot.
- 01.jpg (98.63 KiB) Viewed 12803 times
Description:
It's a bonus list, every bonus has have level, The player can get a bonus from menu, once round or after a cooldown time or once time in map.
How to create new bonus plugin:
1. Include <ze_bonus_manager> in your plugin.
2. Declare this in plugin_init()
// Register new bonus in menu.
ze_register_bonus("Frost Nade", "Handler_FrostNade", 30)
3. Create handler function located in ze_register_bonus(), Like it:
public Handler_FrostNade(iPlayer, iBonus) {
// Player is not a alive
if (!is_user_alive(iPlayer)) {
ze_colored_print(iPlayer, "%L", LANG_PLAYER, "BONUS_NOTALIVE")
return;
}
// Give player frost nade.
rg_give_item(iPlayer, "weapon_flashbang")
}
Requirements:
ze_levels - viewtopic.php?f=15&t=72
How to open menu:
say /bonus
say .bonus
say !bonus
say_team /bonus
say_team .bonus
say_team !bonus
Cvars:
ze_bonus_enable
- 1 | Always players can get bonus from menu without limit.
- 2 | Can players get bonus once time every cooldown time. Require:
ze_bonus_cooldown
.
- 3 | Can players get bonus, But can't override max times. Require:
ze_bonus_maxtimes
.
- 4 | Can players get bonus once time every round.
- 5 | Can players get bonus once time every map.
ze_bonus_cooldown
- 60 | Cooldown time before re-enable bonus menu for players. Require:
ze_bonus_enable 2
.
ze_bonus_maxtimes
- 3 | Max times to disable menu for players. Require:
ze_bonus_enable 3
.
Configuration:
zombie_escape.txt
[en]
BONUS_DONE = You has get the bonus (%s).
BONUS_COOLDOWN = The cooldown time is not over, Wait ^4%d^1 sec(s).
BONUS_LEVEL_ENOUGH = You don't have level enough.
BONUS_ONCETIME = You can get a bonus a once time in map.
BONUS_ISZOMBIE = Bonus menu is not available for zombies.
BONUS_MAXTIME = You have reached the maximum number of times.
BONUS_REMTIMES = You can open bonus menu ^4%s^1 time(s).
BONUS_NOTALIVE = You are not a alive!
MENU_TITLE_BONUS = Menu Bonus \r(Your level: %d)
FREE = Free
LVL = Lvl
UNLOCKED = Unlocked!
ze_bonus.ini Copy this file in configs directory.
[+10 HP]
NAME = +10 HP
LEVEL = 5
[+10 AR]
NAME = +10 AR
LEVEL = 10
[+10 EC]
NAME = +10 EC
LEVEL = 15
[Fire Nade]
NAME = Fire Nade
LEVEL = 20
[Frost Nade]
NAME = Frost Nade
LEVEL = 25
[+10 Speed]
NAME = +10 Speed
LEVEL = 30
[Damage x1.2]
NAME = Damage x1.2
LEVEL = 40
Change Logs:
[Version 1.0]
- Release.
[Version 1.1]
- Fixed some bugs
- Fixed display menu for zombies.
- Fixed level required in menu (Thanks. czirimbolo)
- Added new items in ze_bns_items.sma.
- Added new native ze_open_bonus_menu().
- Updated Cvar ze_bonus_enable.
[Version 1.2]
- Added new item "Damage x1.2".
- Added file controlling bonus ze_bonus.ini.
- Updated Cvar "ze_bonus_enable" new property.
- Fixed enable bonus menu after player reconnect.
Download:
Re: Bonus Manager (1.0)
Posted: 19 Sep 2021, 11:34
by czirimbolo
- tempsnip.png (96.48 KiB) Viewed 12808 times
- tempsnip.png (96.48 KiB) Viewed 12808 times
its showing your current level but it should show required level to unlock.
Second thing:
with this cvar ze_bonus_enable 3 (once per map) you can use bonus again after reconnect
Can you fix these?
Re: Bonus Manager (1.0)
Posted: 19 Sep 2021, 16:50
by z0h1r-LK
czirimbolo wrote: ↑2 years ago
tempsnip.png
its showing your current level but it should show required level to unlock.
Second thing:
with this cvar ze_bonus_enable 3 (once per map) you can use bonus again after reconnect
Can you fix these?
Thanks bro.
Updated 1.1, Copy new lang in zombie_escape.txt
Check from change logs
Re: Bonus Manager (1.0)
Posted: 19 Sep 2021, 19:17
by czirimbolo
Z0uha1r_LK wrote: ↑2 years ago
czirimbolo wrote: ↑2 years ago
tempsnip.png
its showing your current level but it should show required level to unlock.
Second thing:
with this cvar ze_bonus_enable 3 (once per map) you can use bonus again after reconnect
Can you fix these?
Thanks bro.
Updated 1.1, Copy new lang in zombie_escape.txt
Check from change logs
nice, but I have small request:
bonus like HP, armor, speed etc work only for ONE round. Can you make it working on 1 map and resetting after change map? It would have sense then.
Speed bonus or armor for 1 round is a little bit poor
Re: Bonus Manager (1.0)
Posted: 20 Sep 2021, 15:23
by z0h1r-LK
czirimbolo wrote: ↑2 years ago
nice, but I have small request:
bonus like HP, armor, speed etc work only for ONE round. Can you make it working on 1 map and resetting after change map? It would have sense then.
Speed bonus or armor for 1 round is a little bit poor
I will add this features in next update.
Re: Bonus Manager (1.1)
Posted: 24 Sep 2021, 15:38
by czirimbolo
you can add max 6 bonuses because there is no second page. Please fix it and we can add more than 6 bonuses
Re: Bonus Manager (1.1)
Posted: 25 Sep 2021, 13:22
by z0h1r-LK
czirimbolo wrote: ↑2 years ago
you can add max 6 bonuses because there is no second page. Please fix it and we can add more than 6 bonuses
ok
Re: Bonus Manager (1.1)
Posted: 12 Oct 2021, 21:06
by Raheem
Good job, approved tag added.
Re: Bonus Manager (1.1)
Posted: 13 Oct 2021, 05:05
by czirimbolo
It needs to be fixed bro
Re: Bonus Manager v1.2
Posted: 19 Oct 2021, 14:01
by z0h1r-LK
Update Fully. Version 1.2
Re: Bonus Manager v1.2
Posted: 10 Nov 2021, 12:04
by czirimbolo
Z0uha1r_LK wrote: ↑2 years ago
Update Fully. Version 1.2
Did you fix speed and armor? Speed Bonus is for 1 round or for 1 map? It should be for 1 map
Re: Bonus Manager v1.2
Posted: 14 Nov 2021, 16:09
by z0h1r-LK
czirimbolo wrote: ↑2 years ago
Z0uha1r_LK wrote: ↑2 years ago
Update Fully. Version 1.2
Did you fix speed and armor? Speed Bonus is for 1 round or for 1 map? It should be for 1 map
Of Course
Re: Bonus Manager v1.2
Posted: 17 Nov 2021, 14:35
by czirimbolo
Z0uha1r_LK wrote: ↑2 years ago
czirimbolo wrote: ↑2 years ago
Z0uha1r_LK wrote: ↑2 years ago
Update Fully. Version 1.2
Did you fix speed and armor? Speed Bonus is for 1 round or for 1 map? It should be for 1 map
Of Course
you did NOT fixed it. Speed and armor are STILL only for 1 round, its useless. Make them for 1 MAP
Re: Bonus Manager v1.2
Posted: 17 Nov 2021, 21:55
by z0h1r-LK
So, Topic is will be removed!
Re: Bonus Manager v1.2
Posted: 18 Nov 2021, 12:19
by czirimbolo
Z0uha1r_LK wrote: ↑2 years ago
So, Topic is will be removed!
why? you cant fix it? Its good idea about bonus plugin but must be fixed
Re: Bonus Manager v1.2
Posted: 18 Nov 2021, 12:29
by z0h1r-LK
czirimbolo wrote: ↑2 years ago
why? you cant fix it? Its good idea about bonus plugin but must be fixed
I need time to fix that!
Re: Bonus Manager v1.2
Posted: 18 Nov 2021, 16:01
by Raheem
Trashed based on author request.