Raised This Month: $ Target: $400
 0% 

New XP Mod tutorial


Post New Thread Reply   
 
Thread Tools Display Modes
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-29-2009 , 16:54   Re: New XP Mod tutorial
Reply With Quote #141

That will not even work.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Trinity
BANNED
Join Date: Jun 2009
Location: Bendery
Old 10-30-2009 , 12:47   Re: New XP Mod tutorial
Reply With Quote #142

say /class for example)
Trinity is offline
Send a message via ICQ to Trinity Send a message via Skype™ to Trinity
Akatsuki
Member
Join Date: Jul 2009
Old 10-30-2009 , 13:04   Re: New XP Mod tutorial
Reply With Quote #143

Question how to make that it would be like when i am a 5lvl cow and when i change to horse my lvl change to 1 and when i change to cow my lvl would be again 5?
I realy need it thx!
__________________
ZombieXpMod Done 100%
Maybe I will create Avatar mod Na'vi vs Humans pending...
Akatsuki is offline
Howdy!
Senior Member
Join Date: Feb 2007
Old 10-30-2009 , 13:57   Re: New XP Mod tutorial
Reply With Quote #144

Quote:
Originally Posted by Akatsuki View Post
Question how to make that it would be like when i am a 5lvl cow and when i change to horse my lvl change to 1 and when i change to cow my lvl would be again 5?
I realy need it thx!
Save it to nvault.
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
Driving To Heaven
Senior Member
Join Date: Jun 2009
Location: somewhere far away
Old 10-31-2009 , 12:11   Re: New XP Mod tutorial
Reply With Quote #145

how add effects or skills? like sh_mario or something?
Driving To Heaven is offline
Akatsuki
Member
Join Date: Jul 2009
Old 11-10-2009 , 14:24   Re: New XP Mod tutorial
Reply With Quote #146

How to make that i get xp by damage have done?
__________________
ZombieXpMod Done 100%
Maybe I will create Avatar mod Na'vi vs Humans pending...
Akatsuki is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-11-2009 , 06:01   Re: New XP Mod tutorial
Reply With Quote #147

Quote:
Originally Posted by Akatsuki View Post
How to make that i get xp by damage have done?
since this tutorial aint supported anymore + get some bad errors in it.
I should suggest starting a treath.

You can just hook damage event with hamsandwich
Get attacker , Get damage , if damage is more then x , then you give him xp.
__________________
I am out of order!
grimvh2 is offline
Akatsuki
Member
Join Date: Jul 2009
Old 11-16-2009 , 13:24   Re: New XP Mod tutorial
Reply With Quote #148

me again i know that this tutorial aint supported anymore but still help me

how can i make that hp each level would be bigger like 10%

P.S thx grimvh2
__________________
ZombieXpMod Done 100%
Maybe I will create Avatar mod Na'vi vs Humans pending...
Akatsuki is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 11-19-2009 , 23:43   Re: New XP Mod tutorial
Reply With Quote #149

Quote:
PHP Code:
public eDeath( ) //function name
{
// If the player's Class is nothing, then dont bother to do any of the below
if(PlayerClass[attacker] == 0)
return PLUGIN_CONTINUE


// We create the victim variable, so that this function can check
// if a player was killed
new iVictim = read_data( 2 )
// If a player was killed by a HeadShot, this will be used for the cvar Xp_Hs
new headshot = read_data( 3 )

//which weapon was used
new clip, ammo, weapon = get_user_weapon(id,clip,ammo);
PlayerXP[attacker] += get_pcvar_num(XP_Kill)
// used for the xp_hs cvar
// it checks if the victim was killed by a headshot
if(headshot)
// give him/her bonus xp
PlayerXP[attacker] += get_pcvar_num(XP_Hs)
// checks if the victim was killed by a knife
if(weapon == CSW_KNIFE)
//give him/her bonus xp
PlayerXP[attacker] += get_pcvar_num(XP_Knife)
// this checks if the player has enough xp to advance to a new level

while(PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]])
{ // this will create the Congratulations message.
client_print(attacker, print_chat, "[Animal Mod] Congratulations! You are a level %i %s!", PlayerLevel[attacker],CLASSES[PlayerClass[attacker]])
// Add his/her level
PlayerLevel[attacker] += 1
}
// shows his level on a hud message
ShowHud(attacker)

}
Hey guy !!
fix your error, in DeathMsg, you must write like this:
PHP Code:
public plugin_init()
{
register_event("DeathMsg""eDeath""a");
//...
}
 
public 
eDeath()
{
new 
iKiller read_data(1//get the killer index
new iVictim read_data(2//get the victim index
new headshot read_data(3get the headshot
new weapon_name[24]
read_data(4weapon_name23//get the weapon
//your code

__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-24-2009 , 15:32   Re: New XP Mod tutorial
Reply With Quote #150

Quote:
Originally Posted by Akatsuki View Post
how can i make that hp each level would be bigger like 10%
Save the xp for the first level,
Then when your function is called to give a player xp, you check if the player his xp is more then: level 1 xp x (current level + 1) x 10%

example : if level one is 1000xp
level 2 : 1000xp x 2 x 10%, meaning you would need 2020xp to get level 2.
__________________
I am out of order!
grimvh2 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 04:04.


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