Useless Stuffs, Spam ... etc
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#1
Post
by z0h1r-LK » 2 years ago
Bonus Manager
Screenshots:
- Screenshot.
- 01.jpg (98.63 KiB) Viewed 12763 times
- Screenshot.
- 01.jpg (98.63 KiB) Viewed 12763 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:
Last edited by
z0h1r-LK 2 years ago, edited 9 times in total.
-
czirimbolo
- Veteran Member
- Posts: 598
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#2
Post
by czirimbolo » 2 years ago
- tempsnip.png (96.48 KiB) Viewed 12768 times
- tempsnip.png (96.48 KiB) Viewed 12768 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?
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#3
Post
by z0h1r-LK » 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
-
czirimbolo
- Veteran Member
- Posts: 598
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#4
Post
by czirimbolo » 2 years ago
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
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#5
Post
by z0h1r-LK » 2 years ago
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.
-
czirimbolo
- Veteran Member
- Posts: 598
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#6
Post
by czirimbolo » 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
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#7
Post
by z0h1r-LK » 2 years ago
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
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#8
Post
by Raheem » 2 years ago
Good job, approved tag added.
He who fails to plan is planning to fail
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#10
Post
by z0h1r-LK » 2 years ago
Update Fully. Version 1.2
-
czirimbolo
- Veteran Member
- Posts: 598
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#11
Post
by czirimbolo » 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
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#12
Post
by z0h1r-LK » 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
-
czirimbolo
- Veteran Member
- Posts: 598
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#13
Post
by czirimbolo » 2 years ago
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
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#14
Post
by z0h1r-LK » 2 years ago
So, Topic is will be removed!
-
czirimbolo
- Veteran Member
- Posts: 598
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#15
Post
by czirimbolo » 2 years ago
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
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#16
Post
by z0h1r-LK » 2 years ago
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!
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#17
Post
by Raheem » 2 years ago
Trashed based on author request.
He who fails to plan is planning to fail
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Register
Sign in
Users browsing this forum: No registered users and 1 guest