Custom Level System v3.2
(CLeS)
(22 Features)
Status:
UP-TO-DATE(11/10/2015)
Description:
This plugin allow you to have level system in your ZP server. You can change the level name and also the required EXP for the next level. There are also many features added. Just edit the cl_system.cfg file. ;)
Compatibility:
-->
This plugin can be used in all ZP versions such as ZP5.0, ZP4.3, ZPA and ZPS. If you are using ZP5.0, just open the custom_level_free.sma file and edit this:
PHP Code:
//Uncomment 'IM_USING_ZP50' if your server is running ZP50 and above //#define IM_USING_ZP50
If you are using ZPA, just edit this:
PHP Code:
// if you are using this Custom Level for ZPA, // just change line below into #include <zombie_plague_advance> #include <zombieplague>
Requirement:
Quote:
1. Zombie Plague Mode.
New Language:
I have added multi-lingual supported for this CLeS. So, I need you help to translate it into your language. Feel free to help me. ;)
-->
Code:
[en]
CL_ASSIST = You've gained!g %d EXP!t for assisting!g %s %s
CL_BONUS_EXP = Bonus EXP:!g %d
CL_BONUS_AP = Bonus AP:!g %d
CL_CONNECT_MESSAGE = %s !tis connected !y| Level:!g %s!y | EXP :!g %d |
CL_CHANGE_NAME2 = %s, !gyour name has been changed into !y%s!
CL_CHANGE_NAME3 = %s, !gyour level and EXP will be transferred to your new name!
CL_CHANGE_NAME4 = Transferring is completed!
CL_DEALT_DAMAGE = You've gained!t %d EXP!y for dealing a damage of!t %d
CL_HEADSHOT_KILL = You've gained!g %d EXP!y for killing a zombie with a headshot
CL_INFORM = Level:!g %s !t| Bonus Health:!y %d !t| Bonus Armor:!g %d
CL_INFORM_2 = Just !ysay /cles !tto open the !gCustom Level !tmenu
CL_INFORM_3 = Just !ysay /savecl !tto save your current EXP!
CL_INFECT = You've gained!g %d EXP!y for infecting a human
CL_KILL = You've gained!g %d EXP!y for killing a zombie
CL_KILL_HUMAN = You've gained!g %d EXP!y for killing a human
CL_KILL_SURVIVOR = You've gained!g %d EXP!y for killing a survivor
CL_KILL_NEMESIS = You've gained!g %d EXP!y for killing a nemesis
CL_LEVEL_UP = Congratulations, your level now is!g %s
CL_SHOW_STAT = Level:!g %s!y | EXP for next level:!g %d
CL_SAVE = Saving completed!
CL_HUMAN_WIN = Humans have recieved!g %d EXP!y for defeating the plague
CL_HUMAN_SURVIVE = Humans have recieved!g %d EXP!y for survive in this round
CL_ZOMBIE_WIN = Zombies have recieved!g %d EXP!y for infecting all humans
Level Name and EXP:
-->
Now, you can edit the level name and EXP required for the next level. Yet, I don't recommend you to edit the EXP as it maybe cause problems to your server. Just edit the level name only.
Just edit the cl_system.cfg file. It easy as that. So, you don't need to compile again everytime you want to change a specific value for certain command.
Features (13 items):
-->
1. The connecting message feature that telling you what is the level and EXP of the player when he is connecting to the server.
-->
2. The level and EXP hud information. You can change the position of the hud whether at the left or at the right. You also can change it colors. Just edit in the cl_system.cfg file.
-->
3. The score information. You can enable and disable the score hud. Just edit in the cl_system.cfg file.
-->
4. Enable the dealt and recieved damage hud message. Just edit in the cl_system.cfg file.
-->
5. The CLeS menu. Just say /cles in your chat to open the CLeS menu.
-->
6. Top level feature. Just type /cltop or open the CLeS menu.
-->
7. Show required EXP for next level. Just type /clnext or open the CLeS menu.
-->
8. Level bonus. For each level, you can have multiply health and armor. Just edit in the cl_system.cfg file.
-->
9. Level icon. If you want to disable it, just edit in the cl_system.cfg file.
-->
10. EXP given for killing a zombie. Just edit in the cl_system.cfg file.
-->
11.EXP given for killing a zombie with a headshot. Just edit in the cl_system.cfg file.
-->
12. EXP and Ammo Packs bonus when you level up. Just edit in the cl_system.cfg file.
-->
13. Custom chat tag. Now, you can enable or disable custom level tag. Just open the custom_level.sma file, then edit this part:
Code:
//Uncomment 'CUSTOM_CHAT' if your want to use custom chat
#define CUSTOM_CHAT
-->
New Features (9 items):
-->
1. EXP bonus for killing the Survivor. Just edit the cl_system.cfg file.
-->
2. EXP bonus for killing the Nemesis. Just edit the cl_system.cfg file.
-->
3. An option for any players to save their EXP manually.
-->
Just open the CLeS menu. Then, a new menu will be displayed. Just choose "3" to save your EXP manually.
9. Just say /ontop to see the top online players. Credit to wbyokomo. ;)
Admin Command?
-->
Admin can give free EXP to any players. Firstly, just open the custom_level_free.sma file to configure which admin flag will have the access to the command:
PHP Code:
#define ADMIN_FLAG ADMIN_IMMUNITY
1. Then, to know the EXP for a certain player, just type free_give ThePlayerName 0
-->
2. There is EXP limit for each LEVEL. If you are tying to give EXP exceed the limit, there will be a reminder about the maximum free EXP allowed for the player.
-->
3. What will you see if you have succeed giving a player free EXP.
-->
Feel free to suggest anything. ;)
Changelog:
Spoiler
Quote:
(4/10/2014)
v1.0
- First release.
- [FIXED] The arrangement of code for custom tag.
v1.3
- [FIXED] The arrangement of code for event damage.
- [ADDED] New EXP bonus for killing Survivor
- [ADDED] New EXP bonus for killing Nemesis
- [ADDED] New text that need to be translated for new features.
(26/10/2014)
v1.4
- [ADDED] An option for any players to save their EXP manually.
- [ADDED] Different hud for player that has reached maximum level.
- [ADDED] An option whether to enable or disable the data expired feature.
- [ADDED] A message that telling each player about saving feature.
(27/10/2014)
v1.5
- [FIXED] Native problems with the hud message.
- [FIXED] Top level menu showing the same level and EXP for all players.
(27/10/2014)
v1.6
- [FIXED] Native problem at event_damage.
- [FIXED] Hud problems when map change.
(29/10/2014)
v1.7
- [FIXED] Remove unnecessary code in the new_round.
- [ADDED] Now, you can change your name while playing. All of your level and EXP will be transferred to your new name.
v1.8- [ADDED] Hud information about player that you are spectating.
(3/11/2014)
v1.9- [FIXED] The cvar name for the level up bonus.
(6/11/2014)
v2.0- [ADDED] An option to disable or enable player changing name feature.
(11/11/2014)
v2.1
- [OPTIMIZED] Removing unnecessary code.
- [FIXED] The arrangement of the code to reduce memory usage.
(14/11/2014)
v2.2- [FIXED] The custom chat for team.
(14/12/2014)
v2.3- [FIXED] The code in the damage event. ;)
(19/12/2014)
v2.4
- [FIXED] The code for top 15 players.
- [OPTIMIZED] The code for bonus when level up.
- [FIXED] The code when you are assisting someone else.
(8/3/2015)
v2.5
- [FIXED] The custom chat problem. Before this dead players can't chat each other.
- [FIXED] The bonus spam when you have reached maximum level.
- [FIXED] The menu code.
(19/4/2015)
v3.0
- [FIXED] Fully rewritten the code. ;)
- [FIXED] Add new feature that allow player to see top online players.
- [FIXED] Change command to open the CLeS menu. Now, player need to say /cles instead press [N] button.
(22/4/2015)
v3.1
- [FIXED] All hud problems.
(11/10/2015)
v3.2
- [FIXED] Removed unnecessary code and include.
- [FIXED] Menu code.