Raised This Month: $ Target: $400
 0% 

Hero: Noob (AssKicR)


Post New Thread Reply   
 
Thread Tools Display Modes
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 08-24-2009 , 05:19   Re: Hero: Noob (AssKicR)
Reply With Quote #21

Noob with max level cvar added. see page 2.

maybe this hero can became a max level cvar tutorial for sh 1.2.0 heroes.

vittu, do you have a better way for this part ?

PHP Code:
plugin_init()
{
     ...
 
     
register_srvcmd("noob_levels""noob_levels")
     
shRegLevels(gHeroName,"noob_levels")
}
 
public 
noob_levels()
{
     new 
id[5]
     
read_argv(1,id,4)
     
noob_checklevel(str_to_num(id))


Last edited by Fr33m@n; 08-24-2009 at 05:29.
Fr33m@n is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-24-2009 , 12:43   Re: Hero: Noob (AssKicR)
Reply With Quote #22

Quote:
Originally Posted by Fr33m@n View Post
vittu, do you have a better way for this part ?

PHP Code:
plugin_init()
{
     ...
 
     
register_srvcmd("noob_levels""noob_levels")
     
shRegLevels(gHeroName,"noob_levels")
}
 
public 
noob_levels()
{
     new 
id[5]
     
read_argv(1,id,4)
     
noob_checklevel(str_to_num(id))

Yes, there is a lot of new cool natives I created to make it easier to do things. You just need to check the include:
Code:
/**
 * Gets the client's current level.
 *
 * @param id		The index of the client.
 * @return		The current level of the client.
 */
native sh_get_user_lvl(id);
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 08-24-2009 , 17:14   Re: Hero: Noob (AssKicR)
Reply With Quote #23

allready used this native. see sma.

this part was just for check when players level up. it's automatically drop the hero. (not at spwan or in another event...)

i don't use this part for have the level of the user. i used sh_get_user_lvl(id) for this.

Last edited by Fr33m@n; 08-24-2009 at 17:20.
Fr33m@n is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-24-2009 , 17:25   Re: Hero: Noob (AssKicR)
Reply With Quote #24

Quote:
Originally Posted by Fr33m@n View Post
allready used this native. see sma.

this part was just for check when players level up. it's automatically drop the hero. (not at spwan or in another event...)

i don't use this part for have the level of the user. i used sh_get_user_lvl(id) for this.
I don't understand your question then because that is exactly and the only thing that code did that you posted was check the users level.
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 08-24-2009 , 17:33   Re: Hero: Noob (AssKicR)
Reply With Quote #25

what is the event when a player level up or win a level (automatically when level up, not at spwan or something later) ?

(not talking about sh_get_user_lvl(id) )

Last edited by Fr33m@n; 08-24-2009 at 17:40.
Fr33m@n is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-24-2009 , 18:17   Re: Hero: Noob (AssKicR)
Reply With Quote #26

Quote:
Originally Posted by Fr33m@n View Post
what is the event when a player level up or win a level (automatically when level up, not at spwan or something later) ?

(not talking about sh_get_user_lvl(id) )
Oh yea I didn't see a reason to create a forward to tell you the exact time a players level changed. Especially since the manner heroes were using level checking was just to check the users level, not be told when it was changed.

If you want a forward that badly put in a request for it and I'll see what I can do.

Last edited by vittu; 08-24-2009 at 18:20.
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 08-24-2009 , 18:49   Re: Hero: Noob (AssKicR)
Reply With Quote #27

remove this part by making a check in CurWeapon event. basically do the same.
Fr33m@n is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-24-2009 , 19:34   Re: Hero: Noob (AssKicR)
Reply With Quote #28

Quote:
Originally Posted by Fr33m@n View Post
remove this part by making a check in CurWeapon event. basically do the same.
Why is not hero choice and spawn enough?
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 10-30-2009 , 08:25   Re: Hero: Noob (AssKicR)
Reply With Quote #29

Noob updated :

v2.1(2.2) - Fr33m@n 10/28/09
- use of SH_DMG_KILL param instead of use damage = get_user_health(victim)
- removed one sprite who don't work well with the tracer.

Noob v2.1
Noob v2.2(with a max level cvar)
needed : sh 1.2.0.10

Last edited by Fr33m@n; 10-30-2009 at 08:35.
Fr33m@n is offline
Moke
Junior Member
Join Date: Oct 2008
Location: uk
Old 11-02-2009 , 16:53   Re: Hero: Noob (AssKicR)
Reply With Quote #30

nice i just uploaded it
__________________
Moke is offline
Send a message via MSN to Moke
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 11:23.


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