Level-XP System [Zombie Escape V2.3 Fixed]!
Jul 23, 2016 22:15:15 GMT
P!KaChu~, RaDNoX, and 1 more like this
Post by Raheem on Jul 23, 2016 22:15:15 GMT
Level-XP System
Description: Level-XP system is A powerful system for Zombie Escape V2.3 Fixed. This add to your server levels and player can gain levels by collecting XP. There are many ways to collect XP you will know.
CVARS: Cvars can be set in the amxx.cfg file.
1- levels_savetype (Default Value: 0)
There are 2 types to save your players levels and XP in:
0 = NVault
1 = MySQL
If you don't know what is MySQL Just use NVault. To understand about MySQL Read THIS.
If you used MySQL you will need to set these Cvars (Set also in amxx.cfg):
1- levels_host "Here IP, Site for database"
2- levels_user "Username for your database"
3- levels_pass "Password for your database"
4- levels_dbname "Database name here"
●Again if you don't know about MySQL use NVault and no problem will face you.
2- levels_save (Default: 2)
There are 3 types of mehod that levels and XP will be saved on MySQL or NVault by:
0 = IP
1 = Steam ID
2 = Name
3- levels_xp (Default: 10)
This cvar define how much XP will be given to player in two cases:
1-If Zombie Infected Human (Given to Zombie)
2-If Human Killed Zombie (Given to Human)
4- levels_triple (Default: 1)
0 = Disable
1 = Enable
5- levels_triple_kills (Default: 3)
Define how much kills needed player to get so he given the extra XP for Triple kill.
6- levels_triple_xp (Default: 3)
How much XP will given to player who made triple kill.
7- levels_ultra (Default: 1)
0 = Disable
1 = Enable
8- levels_ultra_kills (Default: 6)
Define how much kills needed player to get so he given the extra XP for Ultra Kill.
9- levels_ultra_xp (Default: 5)
How much XP given to player who made Ultra Kill.
10- escape_xp_amount (Default: 20)
How much XP will be given to Humans who escaped successfully. This XP given only to Alive Humans.
11- required_damage_hp (Default: 60)
This is the damage which player must do equal to it or higher than it so he receive damage XP.
12- damage_xp_amount (Default: 2)
How much XP will be given to player who made the required damage.
CVARS Ends Here. If you don't know how to set these cvars just see this example.
●Example: You need to give the player 200 XP For the kill so you first go and open amxx.cfg and in anywhere you add this line levels_xp 200 and save then you done it.
Natives: Functions that defined in this plugin and can be used by other plugins.
1- get_user_xp(id)
Returns player Experience (XP). This native works the same as cs_get_user_money(id). Remember this we will need it in the example.
2- set_user_xp(id, amount)
Sets player Experience (XP). This native works the same as cs_set_user_money(id). Remember this we will need it in the example.
3- get_user_level(id)
Returns player Level. Will see Example for it.
4- set_user_level(id, amount)
Sets player Level. You can use it to set player level.
5- get_user_max_level(id)
Returns player Level by XP. To understand this more when you run the plugin you see XP: 0/90
If you need to return the 90 (the amount needed to pass to the next level) you will use this native.
If need to return the 0 (the XP player gaining) you will use native 1 [First native: get_user_xp(id)].
Examples: These native is very important and will change Zombie Escape Mod to the better. You can use them as a system that player can buy through them extra-items this is better than money system and looks like Ammo Packs system in Zombie Plague Mod.
✰1: Will use in this example the first and second natives. If you need to Add to your server a new Extra-Item for this mod like Golden-AK and need to make it by XP not money so it works with this great system. So you need to get rid of cs_get_user_money() and cs_set_user_money() natives and use XP natives so first look at the code with money HERE
Now look at this with XP HERE. And let's see what changed.
1- You see that we add new line it's #include <levels>
2- Most of change occur in public CmdBuyAk(id) You can see that i only removes cstrike natives and put ours. Just easiy.
If you understand this Example you can make any item with XP not money and this is great things. Shops for Zombie Escape Mod will come soon but now it's private addons if you need it just PM me.
✰2: Will use in this example third native. Just if you need to make an extra plugin that when player say in chat /level he see his level. This just easy see code Here.
Further more you can use these natives in complicated plugins not only in these simple cases. All native here is very important and this will give to Zombie Escape Mod change to be like Zombie Plague Mod.
Must Know: If you used any of these natives in plugin you must make sure that you put levels include. And to run any plugin that used these natives you must run also the main Level-System Plugin.
Note: The main Level-System Plugin works only with Zombie Escape V2.3 Fixed If you use any other version this plugin won't work Correctly so don't come and Complain that the plugin not working. I'am not going to support any Zombie Escape Versions Except this version.
Zombie Escape Main Plugin Edits: I have edit in the Zombie Escape Main source some things. I changed colors of Hud message and make stats hud message up on the rader also removed this Expression "MASTER OF SURVIVAL" Also removed game information from the menu and lang file. So I'll attach the SMA, AMXX for the main Zombie Escape Plugin and also lang file.
Installing the plugin: Like any other plugin nothing new. Also add the new zombie escape files i attach so Level-System works correctly. Don't forget sounds.
Screenshots:
1- Damage XP.
3- Infection/Kill XP.
4- Level UP.
CVARS: Cvars can be set in the amxx.cfg file.
1- levels_savetype (Default Value: 0)
There are 2 types to save your players levels and XP in:
0 = NVault
1 = MySQL
If you don't know what is MySQL Just use NVault. To understand about MySQL Read THIS.
If you used MySQL you will need to set these Cvars (Set also in amxx.cfg):
1- levels_host "Here IP, Site for database"
2- levels_user "Username for your database"
3- levels_pass "Password for your database"
4- levels_dbname "Database name here"
●Again if you don't know about MySQL use NVault and no problem will face you.
2- levels_save (Default: 2)
There are 3 types of mehod that levels and XP will be saved on MySQL or NVault by:
0 = IP
1 = Steam ID
2 = Name
3- levels_xp (Default: 10)
This cvar define how much XP will be given to player in two cases:
1-If Zombie Infected Human (Given to Zombie)
2-If Human Killed Zombie (Given to Human)
4- levels_triple (Default: 1)
0 = Disable
1 = Enable
5- levels_triple_kills (Default: 3)
Define how much kills needed player to get so he given the extra XP for Triple kill.
6- levels_triple_xp (Default: 3)
How much XP will given to player who made triple kill.
7- levels_ultra (Default: 1)
0 = Disable
1 = Enable
8- levels_ultra_kills (Default: 6)
Define how much kills needed player to get so he given the extra XP for Ultra Kill.
9- levels_ultra_xp (Default: 5)
How much XP given to player who made Ultra Kill.
10- escape_xp_amount (Default: 20)
How much XP will be given to Humans who escaped successfully. This XP given only to Alive Humans.
11- required_damage_hp (Default: 60)
This is the damage which player must do equal to it or higher than it so he receive damage XP.
12- damage_xp_amount (Default: 2)
How much XP will be given to player who made the required damage.
CVARS Ends Here. If you don't know how to set these cvars just see this example.
●Example: You need to give the player 200 XP For the kill so you first go and open amxx.cfg and in anywhere you add this line levels_xp 200 and save then you done it.
Natives: Functions that defined in this plugin and can be used by other plugins.
1- get_user_xp(id)
Returns player Experience (XP). This native works the same as cs_get_user_money(id). Remember this we will need it in the example.
2- set_user_xp(id, amount)
Sets player Experience (XP). This native works the same as cs_set_user_money(id). Remember this we will need it in the example.
3- get_user_level(id)
Returns player Level. Will see Example for it.
4- set_user_level(id, amount)
Sets player Level. You can use it to set player level.
5- get_user_max_level(id)
Returns player Level by XP. To understand this more when you run the plugin you see XP: 0/90
If you need to return the 90 (the amount needed to pass to the next level) you will use this native.
If need to return the 0 (the XP player gaining) you will use native 1 [First native: get_user_xp(id)].
Examples: These native is very important and will change Zombie Escape Mod to the better. You can use them as a system that player can buy through them extra-items this is better than money system and looks like Ammo Packs system in Zombie Plague Mod.
✰1: Will use in this example the first and second natives. If you need to Add to your server a new Extra-Item for this mod like Golden-AK and need to make it by XP not money so it works with this great system. So you need to get rid of cs_get_user_money() and cs_set_user_money() natives and use XP natives so first look at the code with money HERE
Now look at this with XP HERE. And let's see what changed.
1- You see that we add new line it's #include <levels>
2- Most of change occur in public CmdBuyAk(id) You can see that i only removes cstrike natives and put ours. Just easiy.
If you understand this Example you can make any item with XP not money and this is great things. Shops for Zombie Escape Mod will come soon but now it's private addons if you need it just PM me.
✰2: Will use in this example third native. Just if you need to make an extra plugin that when player say in chat /level he see his level. This just easy see code Here.
Further more you can use these natives in complicated plugins not only in these simple cases. All native here is very important and this will give to Zombie Escape Mod change to be like Zombie Plague Mod.
Must Know: If you used any of these natives in plugin you must make sure that you put levels include. And to run any plugin that used these natives you must run also the main Level-System Plugin.
Note: The main Level-System Plugin works only with Zombie Escape V2.3 Fixed If you use any other version this plugin won't work Correctly so don't come and Complain that the plugin not working. I'am not going to support any Zombie Escape Versions Except this version.
Zombie Escape Main Plugin Edits: I have edit in the Zombie Escape Main source some things. I changed colors of Hud message and make stats hud message up on the rader also removed this Expression "MASTER OF SURVIVAL" Also removed game information from the menu and lang file. So I'll attach the SMA, AMXX for the main Zombie Escape Plugin and also lang file.
Installing the plugin: Like any other plugin nothing new. Also add the new zombie escape files i attach so Level-System works correctly. Don't forget sounds.
Screenshots:
1- Damage XP.
2- Escape XP.
4- Level UP.
5- Triple Kill XP.
6- Ultra Kill XP.
7- Status Message.
8- Spectator Message.
Download:
■Download Plugin from: HERE.
■See Code: HERE.
Best Deffender & Infector
Description: This plugin will show at the end of the round a Colored Chat Message say who was best Deffender in human team and who was best Infector in Zombies team Also will give them XP award.
CVARS: Set Cvars in amxx.cfg.
1- deffender_xp (Default: 30)
Define how much XP will be given to the best deffender at the end of the round.
2- infector_xp (Default: 30)
Define how much XP will be given to best infector at the end of the round.
Player Commands: Player can write this command in chat so he know who best deffender and infector at this time of the round.
1- say tracker
Will show player Hud Message with who best Deffender & infector during the round.
NOTE: This plugin need to work Level-XP system to be installed. Also Need Zombie Escape V2.3 Fixed to work.
Screenshots:
1- Tracker
Download:
■Download Plugin from: HERE.
■See Code: HERE.
Support Me: If you like this plugin and need me post other plugins for this mod for free just Support Me ---> Donate to our forum, Give me +karma, Invite people and refer them to use my plugin and to join our forum, Report bugs, Comment here if you like the plugin, Share your plugins that you used XP natives on it.
At the End: If you have problem and the answer not in this topic so post your problem here i'll be glad to help you. If you need help converting and plugin from money to XP just post here. Don't ask me to add useless things like level names not good idea at all. Not all requests can be done only what i prefer.
■Download Plugin from: HERE.
■See Code: HERE.
Best Deffender & Infector
Description: This plugin will show at the end of the round a Colored Chat Message say who was best Deffender in human team and who was best Infector in Zombies team Also will give them XP award.
CVARS: Set Cvars in amxx.cfg.
1- deffender_xp (Default: 30)
Define how much XP will be given to the best deffender at the end of the round.
2- infector_xp (Default: 30)
Define how much XP will be given to best infector at the end of the round.
Player Commands: Player can write this command in chat so he know who best deffender and infector at this time of the round.
1- say tracker
Will show player Hud Message with who best Deffender & infector during the round.
NOTE: This plugin need to work Level-XP system to be installed. Also Need Zombie Escape V2.3 Fixed to work.
Screenshots:
1- Tracker
2- Awards
Download:
■Download Plugin from: HERE.
■See Code: HERE.
Support Me: If you like this plugin and need me post other plugins for this mod for free just Support Me ---> Donate to our forum, Give me +karma, Invite people and refer them to use my plugin and to join our forum, Report bugs, Comment here if you like the plugin, Share your plugins that you used XP natives on it.
At the End: If you have problem and the answer not in this topic so post your problem here i'll be glad to help you. If you need help converting and plugin from money to XP just post here. Don't ask me to add useless things like level names not good idea at all. Not all requests can be done only what i prefer.
© This plugin made by me: Raheem. To ALL ZPPV Members ©
Have Fun.