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

I need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cro_Elite
Junior Member
Join Date: Aug 2010
Old 08-18-2010 , 13:44   I need help
Reply With Quote #1

i need help i dont know how meake sh_Killer.amxx file
Quote:
//Killer! - Got Sg550

//This hero was made was using jtpizzalover's superhero generator
/* CVARS - copy and paste to shconfig.cfg

//Killer
Killer_level 24
Killer_health 1500 //Default 100 (no extra health)
Killer_armor 1000 //Default 150
Killer_gravity 350 //Default 1.0 = no extra gravity (0.50 is 50% normal gravity, ect.)
Killer_speed 1000 //Default -1 = no extra speed, this cvar is for all weapons (for faster then normal speed set to 261 or higher)

*/

#include <amxmodx>
#include <superheromod>

new HeroName[] = "Killer"
new bool:HasHero[SH_MAXSLOTS+1]


public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO Killer","1.0","Cro_Elite")

// DO NOT EDIT THIS FILE TO CHANGE CVARS, USE THE SHCONFIG.CFG
register_cvar("Killer_level", "24")
register_cvar("Killer_health", "1500")
register_cvar("Killer_armor", "1000")
register_cvar("Killer_gravity", "350")
register_cvar("Killer_speed", "1000")


// FIRE THE EVENT TO CREATE THIS SUPERHERO!
shCreateHero(HeroName, "Kill", "Got Sg550", false, "Killer_level")

// REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS)
// INIT
register_srvcmd("Killer_init", "Killer_init")
shRegHeroInit(HeroName, "Killer_init")

// EVENTS


// Let Server know about the hero's variables
shSetShieldRestrict(HeroName)
shSetMaxHealth(HeroName, "Killer_health")
shSetMaxArmor(HeroName, "Killer_armor")
shSetMinGravity(HeroName, "Killer_gravity")
shSetMaxSpeed(HeroName, "Killer_speed", "[0]")
}

public Killer_init()
{
// First Argument is an id
new temp[6]
read_argv(1, temp, 5)
new id = str_to_num(temp)

//This hero was made was using jtpizzalover's superhero generator
// Reset their shield restrict status
// Shield restrict MUST be before weapons are given out
shResetShield(id)




// Check is needed since this gets run on clearpowers even if user didn't have this hero
if ( is_user_alive(id) && HasHero[id] )
{
// This gets run if they had the power but don't anymore


shRemHealthPower(id)
shRemArmorPower(id)
shRemGravityPower(id)
shRemSpeedPower(id)
}



}




Cro_Elite is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 08-18-2010 , 14:18   Re: I need help
Reply With Quote #2


Quote:
Originally Posted by Rules
Posting
  • Search before a posting a question.
  • Use descriptive topic titles. People should know at a glance of the title what the thread is about.
  • Do not "bump" your threads. Bumping is posting simply to make the thread higher in the forum sort order.
  • Always be respectful to other members. Flaming or abusing members in any way will not be tolerated.
  • Do not spam, or post "me too" posts, or any such derivative drivel that does not contribute to a thread.
  • Do not advertise hosting services.
  • Do not create threads for the sole purpose of advertising a game server.
  • Do not post or attach illegal content, or links to illegal content, including viruses, trojans, and malware.
  • Do not derail threads or post completely unrelated topics in a thread.
  • Do not disrupt the readability of a thread with huge lengths of texts, wild color/font variations, or large images.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 08-18-2010 , 22:13   Re: I need help
Reply With Quote #3

BACKSEAT ADMIN FTW!!!
__________________
yang is offline
Send a message via AIM to yang
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 08-18-2010 , 22:21   Re: I need help
Reply With Quote #4

Quote:
Originally Posted by yang View Post
BACKSEAT ADMIN FTW!!!
No no, I always sit in the front seat.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 08-19-2010 , 05:59   Re: I need help
Reply With Quote #5

Quote:
//This hero was made was using jtpizzalover's superhero generator
GRRR

Dont post JTP generator heroes. The generator is broken.
__________________
The Art of War is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 08-19-2010 , 10:10   Re: I need help
Reply With Quote #6

A Hero I got from there actually worked for me, but yeah, I prefer to code them myself now that I know how, especially if I want the hero to have a dmgmult as old ways wont count in rankings.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 08-19-2010 , 10:16   Re: I need help
Reply With Quote #7

Quote:
Originally Posted by Exploited View Post
A Hero I got from there actually worked for me, but yeah, I prefer to code them myself now that I know how, especially if I want the hero to have a dmgmult as old ways wont count in rankings.
And the playermodel stuff do not work in the generator.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 08-19-2010 , 15:08   Re: I need help
Reply With Quote #8

Quote:
Originally Posted by Exploited View Post
A Hero I got from there actually worked for me, but yeah, I prefer to code them myself now that I know how, especially if I want the hero to have a dmgmult as old ways wont count in rankings.
Not completely. You do not get a weapon on spawn, only when case: SH_HERO_ADD == true, so you only have the weapon the round you pick it... And theres more.
__________________
The Art of War is offline
Cro_Elite
Junior Member
Join Date: Aug 2010
Old 08-20-2010 , 05:35   My 1st hero
Reply With Quote #9

how to meake sh_killer.amxx
tish is my hero how to meake sh_killer.amxx
Quote:
//Killer! - Got Sg550

//This hero was made was using jtpizzalover's superhero generator
/* CVARS - copy and paste to shconfig.cfg

//Killer
Killer_level 40
Killer_health 2000 //Default 100 (no extra health)
Killer_armor 1000 //Default 150
Killer_gravity 300 //Default 1.0 = no extra gravity (0.50 is 50% normal gravity, ect.)
Killer_speed 1000 //Default -1 = no extra speed, this cvar is for all weapons (for faster then normal speed set to 261 or higher)

*/

#include <amxmodx>
#include <superheromod>

new HeroName[] = "Killer"
new bool:HasHero[SH_MAXSLOTS+1]


public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO Killer","1.0","Cro_Elite")

// DO NOT EDIT THIS FILE TO CHANGE CVARS, USE THE SHCONFIG.CFG
register_cvar("Killer_level", "40")
register_cvar("Killer_health", "2000")
register_cvar("Killer_armor", "1000")
register_cvar("Killer_gravity", "300")
register_cvar("Killer_speed", "1000")


// FIRE THE EVENT TO CREATE THIS SUPERHERO!
shCreateHero(HeroName, "Kill", "Got Sg550", false, "Killer_level")

// REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS)
// INIT
register_srvcmd("Killer_init", "Killer_init")
shRegHeroInit(HeroName, "Killer_init")

// EVENTS


// Let Server know about the hero's variables
shSetShieldRestrict(HeroName)
shSetMaxHealth(HeroName, "Killer_health")
shSetMaxArmor(HeroName, "Killer_armor")
shSetMinGravity(HeroName, "Killer_gravity")
shSetMaxSpeed(HeroName, "Killer_speed", "[0]")
}

public Killer_init()
{
// First Argument is an id
new temp[6]
read_argv(1, temp, 5)
new id = str_to_num(temp)

//This hero was made was using jtpizzalover's superhero generator
// Reset their shield restrict status
// Shield restrict MUST be before weapons are given out
shResetShield(id)




// Check is needed since this gets run on clearpowers even if user didn't have this hero
if ( is_user_alive(id) && HasHero[id] )
{
// This gets run if they had the power but don't anymore


shRemHealthPower(id)
shRemArmorPower(id)
shRemGravityPower(id)
shRemSpeedPower(id)
}



}



Cro_Elite is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 08-20-2010 , 07:45   Re: My 1st hero
Reply With Quote #10

Quote:
Originally Posted by Cro_Elite View Post
how to meake sh_killer.amxx
tish is my hero how to meake sh_killer.amxx
http://wiki.amxmodx.org/Compiling_Pl...28AMX_Mod_X%29
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
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 20:37.


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