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

[Addon] Monster XP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-07-2008 , 12:14   [Addon] Monster XP
Reply With Quote #1

Monster XP v2.1

v2.1 - Fr33m@n - 12/19/09
- Cleaned up code.
- Better way for avoid the fact that players
can win monster's xp more than one time for one monster killed.
(Thanks to ConnorMcLeod and Arkshine)

Know thing : don't set a max health monster to 5, otherwise players will not win xp for killing this monster. (set the max health to 4 or 6, but not 5)

shconfig.cfg CVARS
Code:
//Monster XP
mxp_agrunt_xp 15 //How many XP a player gets when he kills an agrunt ?
mxp_apache_xp 20 //How many XP a player gets when he kills an apache ?
mxp_barney_xp 15 //How many XP a player gets when he kills a barney ?
mxp_bigmomma_xp 25 //How many XP a player gets when he kills a bigmomma ?
mxp_bullsquid_xp 5 //How many XP a player gets when he kills a bullsquid ?
mxp_controller_xp 15 //How many XP a player gets when he kills an controller ?
mxp_gargantua_xp 50 //How many XP a player gets when he kills an gargantua ?
mxp_headcrab_xp 3 //How many XP a player gets when he kills a headcrab ?
mxp_houndeye_xp 5 //How many XP a player gets when he kills a houndeye ?
mxp_hassassin_xp 15 //How many XP a player gets when he kills a hassassin ?
mxp_hgrunt_xp 15 //How many XP a player gets when he kills a hgrunt ?
mxp_scientist_xp 1 //How many XP a player gets when he kills a scientist ?
mxp_islave_xp 10 //How many XP a player gets when he kills an islave ?
mxp_snark_xp 1 //How many XP a player gets when he kills a snark ?
mxp_zombie_xp 10 //How many XP a player gets when he kills a zombie ?
**SuperHero Mod 1.2.0 & up ONLY**
Attached Files
File Type: cfg de_dust_monster.cfg (5.1 KB, 871 views)
File Type: sma Get Plugin or Get Source (sh_mxp.sma - 1672 views - 5.6 KB)
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System

Last edited by Sam Tsuki; 02-09-2010 at 20:21.
Sam Tsuki is offline
dxteam
Senior Member
Join Date: Dec 2005
Old 08-07-2008 , 14:31   Re: [Addon] Monster XP
Reply With Quote #2

Big tnx !!!
dxteam is offline
Send a message via ICQ to dxteam
fireattack
Senior Member
Join Date: Jul 2008
Old 08-26-2008 , 10:54   Re: [Addon] Monster XP
Reply With Quote #3

Please put hgrunt and apache , hassassin

EDIT : +karma FOR YOU!!!

Last edited by fireattack; 08-27-2008 at 11:02.
fireattack is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-27-2008 , 11:54   Re: [Addon] Monster XP
Reply With Quote #4

Quote:
Originally Posted by fireattack View Post
Please put hgrunt and apache , hassassin

EDIT : +karma FOR YOU!!!
I'm on it ;)
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System
Sam Tsuki is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 08-27-2008 , 18:33   Re: [Addon] Monster XP
Reply With Quote #5

THANKS!!!
fireattack is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-29-2008 , 10:18   Re: [Addon] Monster XP
Reply With Quote #6

New Version: 1.1
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System
Sam Tsuki is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 08-29-2008 , 21:19   Re: [Addon] Monster XP
Reply With Quote #7

In this version are hgrunt, hassassin and apache?
fireattack is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-29-2008 , 21:22   Re: [Addon] Monster XP
Reply With Quote #8

Quote:
Originally Posted by fireattack View Post
In this version are hgrunt, hassassin and apache?
Quote:
v1.1
-Added hgrunt, apache and hassassin
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System
Sam Tsuki is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 08-29-2008 , 21:30   Re: [Addon] Monster XP
Reply With Quote #9

Oh sorry , you are the best ^^

EDIT : this is a suggest , when you kill an scientist, the plugin take you XP ,example : you kill an scientist and you lost 10 XP.

Last edited by fireattack; 08-29-2008 at 21:43. Reason: suggest
fireattack is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-29-2008 , 22:30   Re: [Addon] Monster XP
Reply With Quote #10

Be aware there is no need for a noncs version since sh mod can only run on cs or cz (and I have no plans to bring it to other mods as i embedded even more cs reliant code into the core)...

Also, in sh 1.2.0 you can now add xp with a native instead of calling a server command:
Code:
/**
 * Sets or Adds to the client's current XP.
 *
 * @param id		The index of the client.
 * @param xp		The xp to set/add on the client.
 * @param addtoxp	False to set client xp to the xp specified, true to add xp to client's current xp.
 * @return		1 if success, -1 if invalid client.
 */
native sh_set_user_xp(id, xp, bool:addtoxp = false);
If you want it to be still comaptible with older SH you can simply check if SH_VERSION is defined, if not it is older SH else use the native.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Reply



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 05:44.


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