Raised This Month: $ Target: $400
 0% 

[Addon] Monster XP


Post New Thread Reply   
 
Thread Tools Display Modes
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-29-2008 , 23:58   Re: [Addon] Monster XP
Reply With Quote #11

Quote:
Originally Posted by vittu View Post
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)...
Will remove

Quote:
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.
Will use in the next version
__________________
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-30-2008 , 11:01   Re: [Addon] Monster XP
Reply With Quote #12

I need the noncs version without givemoney only frags and XP ,because when I kill some monsters the server shut down, If I use the old noncs version without money run good.

:/
fireattack is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-30-2008 , 13:58   Re: [Addon] Monster XP
Reply With Quote #13

Quote:
Originally Posted by fireattack View Post
I need the noncs version without givemoney only frags and XP ,because when I kill some monsters the server shut down, If I use the old noncs version without money run good.

:/
I don't think the money is the problem
I'll do some research and see what's wrong
__________________
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 12-10-2009 , 16:45   Re: [Addon] Monster XP
Reply With Quote #14

Can you make a version withouth the SH?
fireattack is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 12-10-2009 , 17:03   Re: [Addon] Monster XP
Reply With Quote #15

Quote:
Originally Posted by fireattack View Post
Can you make a version withouth the SH?
he did search for it in the amxmodx plugins forum.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-11-2009 , 07:13   Re: [Addon] Monster XP
Reply With Quote #16

There is a problem with ham_killed : you can win xp more than one time for one monster killed (pev_flag, pev_health > 0, ham_isalive or thing like this don't avoid that.)

I thought that set a task was the better way, but it's not.
then some people helped me (Arkshine, Connor) so i will update it when i have the time.

Last edited by Fr33m@n; 12-11-2009 at 15:22.
Fr33m@n is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-11-2009 , 13:30   Re: [Addon] Monster XP
Reply With Quote #17

You can easyly do it yourself.

btw your are in superhero mod forum, not in amxmodx forum.

Last edited by Fr33m@n; 12-11-2009 at 15:26.
Fr33m@n is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 12-11-2009 , 19:26   Re: [Addon] Monster XP
Reply With Quote #18

Quote:
Originally Posted by fireattack View Post
Can you make a version withouth the SH?
Quote:
Originally Posted by fireattack View Post
I want the noncs version, because it works with SCXPM and monstermod.
I don't even want to pretend I know what you want this for from your posts...

Please explain what you are wanting to use this on and with cstrike, svencoop, dod, what? you want just money and frags or what? you want it to work with some other plugin (ask that plugins author to make it compatible)?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-12-2009 , 04:32   Re: [Addon] Monster XP
Reply With Quote #19

because of remove_entity(this)
Fr33m@n is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 12-23-2009 , 10:24   Re: [Addon] Monster XP
Reply With Quote #20

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: sma Get Plugin or Get Source (sh_mxp.sma - 705 views - 5.6 KB)

Last edited by Fr33m@n; 12-23-2009 at 10:39.
Fr33m@n is offline
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 07:38.


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