Raised This Month: $12 Target: $400
 3% 

Subplugin Submission [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.


Post New Thread Reply   
 
Thread Tools Display Modes
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-01-2015 , 07:02   Re: [ZP43Fix5a] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #11

Quote:
Originally Posted by Unknown Guy View Post
GJ I will test this

Suggestion : Can you add some upgrades like purchasing item by xp?

you can do it your self
by the way, give me an extra item, i will show you how to do that (only for ZP50)
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 04-01-2015 at 07:02.
New.ZM.Life is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-01-2015 , 07:10   Re: [ZP43Fix5a] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #12

@ yokomo

i get error in compiling

line 186: number of arguments does not match in defenitions

this line i think :

PHP Code:
set_fail_state("Error opening nVault file [%s]"szVaultName
it should be

PHP Code:
set_fail_state("Error opening nVault file"
or sth else

also this parts have to remove, it force plugin to exit if you dont use zp50

PHP Code:
set_task(0.6"TurnOfDefHud")
public 
TurnOfDefHud() 
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 04-01-2015 at 07:21.
New.ZM.Life is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-01-2015 , 08:27   Re: [ZP43Fix5a] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #13

Quote:
Originally Posted by New.ZM.Life View Post
@ yokomo

i get error in compiling

line 186: number of arguments does not match in defenitions

this line i think :

PHP Code:
set_fail_state("Error opening nVault file [%s]"szVaultName
it should be

PHP Code:
set_fail_state("Error opening nVault file"
or sth else

also this parts have to remove, it force plugin to exit if you dont use zp50

PHP Code:
set_task(0.6"TurnOfDefHud")
public 
TurnOfDefHud() 
lol i didnt know that 182 not support formating text in set_fail_state.. ok i will change later.

Thanks for your report. Anyway what is zp50 cvar to disable default hud?
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-01-2015 , 09:16   Re: [ZP43Fix5a] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #14

zp50 doesnt have cvar to enable/disable HUD at all

any subplugin in zp50 uses a cvar to enable/disable hud message for that plugin
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 04-01-2015 at 10:18.
New.ZM.Life is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-01-2015 , 10:32   Re: [ZP43Fix5a] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #15

Quote:
Originally Posted by Unknown Guy View Post
GJ I will test this

Suggestion : Can you add some upgrades like purchasing item by xp?
I'm not recommended to buy item using xp because it will mess with your level and rank. The reason i make xp is to calculate player skills, once they reach certain amount they will level up. Also the xp_[get][set]_exp is use to give player exp for example you want to create admin command to give/add free xp to players.

Quote:
Originally Posted by New.ZM.Life View Post
zp50 doesnt have cvar to enable/disable HUD at all

any subplugin in zp50 uses a cvar to enable/disable hud message for that plugin
Wuu so to disable hud stats in ZP50 we need to disable it plugin right?

Ok updated to version 0.0.3.

Version 0.0.3
- Add support for ZP50, see .sma how to compile for ZP50.
- Fix set_fail_state native, amxmodx1.8.2 didn't support formating text.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 04-01-2015 at 10:37.
yokomo is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 04-02-2015 , 19:20   Re: [ZP43Fix5a | ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #16

Quote:
will throw an error if attacker > 32 because you don't check (1<=id<=MaxClients). So let make it simple.. just use amxx natives.. easy right?
Well is your code do it as you think is right, as I saw that you used that native often so I did that but did not think it would cause an error.. anyway good job

Last edited by wicho; 04-02-2015 at 19:21.
wicho is offline
SergiCruz
Senior Member
Join Date: Mar 2012
Location: Andalucía, España
Old 04-14-2015 , 12:44   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #17

I'm using this plugin in my server so I made a quite simple rewards system: health, armor, ammopacks, damage and items (each one can be enabled/disabled with a cvar).

As I said, it is really basic, and it's adapted to my needs, but it may help as an example or something like that. Also, you can just change the values and use it. (ZP4.3Fix5a only, but you can convert it to ZP5.0 easily)

Credits:
Code:
- yokomo (xp mod)
- mercylezz (zp mod)
- dias (takedamage code)
Edit: I forgot to remember you how awesome is that plugin, yokomo, good job (as always).
Attached Files
File Type: sma Get Plugin or Get Source (zp_exp_mod_rewards.sma - 436 views - 4.3 KB)
__________________
PodBot waypointer. Feel free to ask for waypoints for zm_ maps.

Last edited by SergiCruz; 04-14-2015 at 12:46.
SergiCruz is offline
Send a message via MSN to SergiCruz
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-14-2015 , 13:57   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #18

Quote:
Originally Posted by SergiCruz View Post
I'm using this plugin in my server so I made a quite simple rewards system: health, armor, ammopacks, damage and items (each one can be enabled/disabled with a cvar).

As I said, it is really basic, and it's adapted to my needs, but it may help as an example or something like that. Also, you can just change the values and use it. (ZP4.3Fix5a only, but you can convert it to ZP5.0 easily)

Credits:
Code:
- yokomo (xp mod)
- mercylezz (zp mod)
- dias (takedamage code)
Edit: I forgot to remember you how awesome is that plugin, yokomo, good job (as always).
Nice to see someone use this API, i will make some plugins using this API too (if i have free time).

**Edited**
I've edit and optimize your plugin, not much just a bit. Add support for ZP50 too.

To compile for ZP43 you need to comment #define USE_ZP50
make it //#define USE_ZP50
Attached Files
File Type: sma Get Plugin or Get Source (zp_reward_x.sma - 570 views - 5.3 KB)
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 04-15-2015 at 14:22.
yokomo is offline
SergiCruz
Senior Member
Join Date: Mar 2012
Location: Andalucía, España
Old 04-15-2015 , 09:09   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #19

Awesome, many thanks. :-)
What about making something like a "list of subplugins" in the future? I will edit NST zombie classes you posted long ago (https://forums.alliedmods.net/showthread.php?t=169683) in order to adjust them to your API (because I will use them), so I can post them here once they are made.
__________________
PodBot waypointer. Feel free to ask for waypoints for zm_ maps.

Last edited by SergiCruz; 04-15-2015 at 18:16.
SergiCruz is offline
Send a message via MSN to SergiCruz
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-15-2015 , 14:23   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #20

Quote:
Originally Posted by SergiCruz View Post
Awesome, many thanks. :-)
What about making something like a "list of subplugins" in the future? I will edit NST zombie classes you posted long ago (https://forums.alliedmods.net/showthread.php?t=169683) in order to adjust them to your API (because I will use them), so I can post them here once they are maken.
Nice idea, i will make it later.

**Edit**
You can create a new thread for that or just post your plugins in this thread. So i can edit the main post and link your plugins there.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 04-15-2015 at 17:10.
yokomo is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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