Raised This Month: $32 Target: $400
 8% 

New XP Mod tutorial


Post New Thread Reply   
 
Thread Tools Display Modes
jasonf20
Junior Member
Join Date: Mar 2008
Old 03-15-2008 , 16:05   Re: New XP Mod tutorial
Reply With Quote #21

Quote:
Originally Posted by fxfighter View Post
i did use read_Data(1) read the code
not u in the final code thats in the main message in eDeath its missing the attacker variable
jasonf20 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 03-15-2008 , 16:09   Re: New XP Mod tutorial
Reply With Quote #22

Y thats why i fixed it.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Checkmarks
BANNED
Join Date: Sep 2007
Location: kentucky
Old 03-15-2008 , 18:38   Re: New XP Mod tutorial
Reply With Quote #23

Always wanted to make exp mod but never really knew how. Last tutorial didn't work. Thanks for making this.
I'd give you lots of respect and a +karma if you could add something though. This is nice and all, but it's pointless leveling up. Could you show everyone how to give people rewards at the certain levels? That way people actually WANT to level up and come back to the server
Checkmarks is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-16-2008 , 15:20   Re: New XP Mod tutorial
Reply With Quote #24

simple, say you want to give them more damage on level 3 on damage event, check their level then if high enough level just add some damage.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 03-16-2008 , 15:27   Re: New XP Mod tutorial
Reply With Quote #25

you can hook roundstart or spawn to give at start like extra hp or ar.
You can check thare level after level up in the death msg to.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-16-2008 , 18:31   Re: New XP Mod tutorial
Reply With Quote #26

basically you can do anything, just check if their level is high enough first, or if you have them choose skills to train that you have varriables to keep track of that:
psuedo:
Code:
if(playerLevel[index] >= 10) {      give_hp(index, 500);      uber(index); }
get what we mean?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Checkmarks
BANNED
Join Date: Sep 2007
Location: kentucky
Old 03-17-2008 , 15:41   Re: New XP Mod tutorial
Reply With Quote #27

yes, so i just put in

[code]
if(playerLevel[index] >= 10)
{
whatever i want to give them

}

and where do i put this?
Checkmarks is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 03-17-2008 , 15:49   Re: New XP Mod tutorial
Reply With Quote #28

Quote:
Originally Posted by fxfighter View Post
you can hook roundstart or spawn to give at start like extra hp or ar.
You can check thare level after level up in the death msg to.
__________________
atomen is offline
Send a message via MSN to atomen
Merko
Member
Join Date: Mar 2008
Old 03-26-2008 , 23:39   Re: New XP Mod tutorial
Reply With Quote #29

Uh. Hi.

I'm new too amxx scripting so I was just wondring if there is somthing wrong with the code, or maybe I compile it wrong? :p

I tried to compile it but I get the error:

Code:
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(43) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(45) : error 017: undefined symbol "attacker"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(48) : error 017: undefined symbol "attacker"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(51) : error 017: undefined symbol "attacker"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(54) : error 017: undefined symbol "attacker"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(56) : error 017: undefined symbol "attacker"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(56) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(56) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(56 -- 57) : error 017: undefined symbol "attacker"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(59) : error 017: undefined symbol "attacker"
/home/groups/amxmodx/tmp3/phpXo7cEB.sma(60) : error 017: undefined symbol "attacker"

9 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpXo7cEB.amx (compile failed).
An ideas? ;)

Edit: Got everything to work :]

Last edited by Merko; 03-27-2008 at 23:13.
Merko is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 03-27-2008 , 03:56   Re: New XP Mod tutorial
Reply With Quote #30

There's an error in the code. You can either wait for a reply in the relevant topic or you can post the code that you're trying to compile in Scripting Help.
Lee 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 13:19.


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