my hero wan't work when i go into game and gonna pick it it isen't showing upp
Code:
//destroyer
/* CVARS - copy and paste cvars to schonfig.cfg
//destroyer
dest_level 11 //level of destroyer
dest_health 3000 //health of destroyer
dest_armor 1000 //armor of destroyer
dest_knifespeed 290 //how fast he can hit with his cyber knife
dest_healpoints 99.9 //how much health destroyer regain
dest_gravity 0.40 //the gravity of destroyer
dest_speed 900 //how fast destroyer is
dest_knifemulti 99.9 //damage multiplier for his cyber knife
dest_hppercent 25.0 //how much his electro tentacles sucks of health out of the victim
*/
#include <amxmod>
#include <vexd_utilities>
#include <superheromod>
//global variables
new gHeroName[]="Destroyer"
new bool:gHasDestroyerPowers[SH_MAXSLOTS+1]
new gPlayerLevels[SH_MAXSLOTS+1]
new gPlayerMaxHealth[SH_MAXSLOTS+1]
new Float:gMultiplier
new gHealPoints
//------------------------------------------------------------------------------
public_init()
{
//plugin info
register_plugin("SUPERHERO Destroyer","1.0","spyhunter")
//DO NOT EDIT THESE CVARS. USE shconfig.cfg
register_cvar("dest_level", "11")
register_cvar("dest_health", "3000")
register_cvar("dest_armor", "1000")
register_cvar("dest_knifespeed", "290")
register_cvar("dest_healpoints", "99.9")
register_cvar("dest_gravity", "0.40")
register_cvar("dest_speed", "900")
register_cvar("dest_knifemulti", "99.9")
register_cvar("dest_hppercent", "25.0")
//FIRE THIS EVENT TO CREATE THIS HERO
shCreateHero(gHeroName, "Destroyer Powers", "cyberman and starwars destroyer fuzed together", false, "dest_level")
//REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS
register_srvcmd("dest_init", "dest_init")
shRegHeroInit(gHeroName, "dest_init")
shSetMaxHealth(gHeroName, "dest_health" )
shSetMinGravity(gHeroName, "dest_gravity" )
shSetMaxArmor(gHeroName, "dest_armor" )
shSetMaxSpeed(gHeroName, "dest_speed", "[0]" )
//INIT
register_srvcmd("dest_init", "dest_init")
shRegHeroInit(gHeroName,"dest_init")
//LEVELS
register_srvcmd("dest_levels", "dest_levels")
shRegLevels(gHeroName,"dest_levels")
//ENERGY
register_event("damage", "dest_damage", "b", "2!0")
// HEAL LOOP
set_task(30.0,"dest_loop",0,"",0,"b" )
// EXTRA KNIFE DAMAGE
register_event("damage", "dest_damage", "b", "2!0")
// Let server know about Destroyer's max knife speed
shSetMaxSpeed(gHeroName, "dest_knifespeed", "[29]" )
gMultiplier = get_cvar_float("dest_hppercent")
//SUPERHERO tells max health
register_srvcmd("dest_maxhealth", "dest_maxhealth")
shRegMaxHealth(gHeroName, "dest_maxhealth" )
}
//----------------------------------------------------------------------------------------------
public dest_init()
{
// First Argument is an id
new temp[6]
read_argv(1,temp,5)
new id=str_to_num(temp)
// 2nd Argument is 0 or 1 depending on whether the id has destroyer skills
read_argv(2,temp,5)
new hasPowers = str_to_num(temp)
gPlayerMaxHealth[id] = 100
gHasDestroyerPowers[id] = (hasPowers!=0)
// Got to take away powers from a user that dropped Destroyer
if ( !hasPowers && is_user_connected(id) ) {
shRemHealthPower(id)
shRemGravityPower(id)
shRemArmorPower(id)
shRemSpeedPower(id)
}
}
//----------------------------------------------------------------------------------------------
public dest_loop()
{
if (!shModActive()) return
for ( new id = 1; id <= SH_MAXSLOTS; id++ ) {
if ( gHasDestroyerPowers[id] && is_user_alive(id) ) {
// Let the server add the hps back since the # of max hps is controlled by it
shAddHPs(id, gHealPoints, gPlayerMaxHealth[id] )
}
}
}
//----------------------------------------------------------------------------------------------
public dest_levels()
{
new id[5]
new lev[5]
read_argv(1,id,4)
read_argv(2,lev,4)
gPlayerLevels[str_to_num(id)] = str_to_num(lev)
}
//----------------------------------------------------------------------------------------------
public dest_damage(id)
{
if (!shModActive() || !is_user_connected(id)) return
new damage = read_data(2)
new attacker = get_user_attacker(id)
if ( attacker <= 0 || attacker > SH_MAXSLOTS ) return
if ( gHasDestroyerPowers[attacker] && is_user_alive(attacker) && attacker != id ) {
//Add som HP back!
gMultiplier = get_cvar_float("dest_hppercent")
new giveHPs = floatround( damage * gMultiplier * gPlayerLevels[attacker] )
if (get_user_health(attacker) < gPlayerMaxHealth[attacker] && giveHPs > 0 ) {
new alphanum = damage * 2
if (alphanum > 200) alphanum = 200
else if (alphanum < 40) alphanum = 40
setScreenFlash(attacker, 255, 10, 10, 10, alphanum )
shAddHPs(attacker, giveHPs, gPlayerMaxHealth[attacker] )
}
}
}
//----------------------------------------------------------------------------------------------
public dest_maxhealth()
{
new id[6]
new health[9]
read_argv(1,id,5)
read_argv(2,health,8)
gPlayerMaxHealth[str_to_num(id)] = str_to_num(health)
}
//----------------------------------------------------------------------------------------------
public client_connect(id)
{
gHasDestroyerPowers[id] = false
}
//----------------------------------------------------------------------------------------------
Code:
echo "[SH] Successfully Loaded Superhero Config File"
//********************** GENERAL MOD CVARS **********************
//enables/disables the mod 0=disable, 1=enable
sv_superheros 1
//flag to determine who can access the important server commands
sh_adminaccess m
//if optional C/D is on a server - don't let people without C/D have
sh_cdrequired 0
//Debug Message Level
//ONLY enable this if you are trying to fix something, it prints A LOT of messages
// 0 = Disabled, 1 = Server Print, 2 = Server Log, 3+ = More Messages, Server Log
sh_debug_messages 0
//# of heros allowed with bind characters - after that you must pick non-bind heros only
sh_maxbinds 9
//Max number of powers players can pick from, this is also limited by the number of levels you have.
sh_maxpowers 40
//What level to start newcomers at
sh_minlevel 0
//Save XP or restart from 0 each map
sh_savexp 1
//How many days to save xp for?
sh_xpsavedays 30
//Save XP at end of every round
//Very Useful for servers that crash a lot
sh_endroundsave 1
//Give XP for Hostage/Bomb Events
//This cvar sets the value of XP given/taken from players for these events.
//Hostage rescues only get 1/4th the XP because there is usually 4 of them.
sh_bombhostxp 25
//DO NOT USE WITH LONG-TERM XP
//1 = on | 0 = off - Give people entering late an average level of players already playing
sh_autobalance 0
//Load XP right when a player joins (may cause lag with large user database)
sh_loadimmediate 0
// MercyXP gives players XP if they did not gain any during a round
// 0 = MercyXP system Disabled
// 1 = Give any player a set amount of XP which is set with sh_mercyxp
// 2 = Give only players up to a certian level MercyXP, max level is set with sh_mercyxp
// XP given will be the inverse of the amount they would get for killing
// someone at thier level, then this is diveded by 2 to keep it low.
// So as a players level increases they will get less MercyXP with mode 2
sh_mercyxpmode 0
//Mode 1: How much Mercy XP to give players
//Mode 2: Max level to give MercyXP to players
sh_mercyxp 0
//1+ = on | 0 = off - Command Projector, displays help info to players in a HUD messages non-stop
// 1 - Only show to DEAD players
// 2 - Show to ALL players
sh_cmdprojector 1
//How many highest level heros can a person pick
//If this is set to 2 and a client is at level 9, they can only pick 2 level 9 heroes.
//There is a bunch of complicated math that goes into this system and it limits more than
//just the highest level avliable to that person, try it and see what I mean.
//Set to 0 to disable this limiting of choices
sh_lvllimit 0
// 1 = New style menu, shows disabled heros grayed out
// 0 = Old style menu, hides disabled heros from showing on the menu
sh_menumode 1
//Headshot Multiplyer - if you kill someone with a headshot the XP given
//will be multiplied by the value. Setting this to "1.0" will effectivly
//disable it because x * 1 = x. Any value less than 1.0 is ignored.
sh_hsmult 2.0
//Can clients drop heroes while alive?
//This is OFF by default because many people expliot the server by picking a hero
//like batman, get the weapons, then drop him. This will prevent that kind of activity
sh_alivedrop 1
// *** MySQL Settings, Only Needed if using the mysql saving method ***
// Uncomment the cvar lines to enable these settings
//sh_mysql_host "localhost"
//sh_mysql_user "SuperHeroModUser"
//sh_mysql_pass ""
//sh_mysql_db "sherodb"
// *************** END STANDARD SUPERHERO CVARS ***************
// ***************** START HERO SPECIFIC CVARS ****************
//Agent Zero
agentz_level 20
//Anubis
anubis_level 0
anibus_showdamage 1 //(0|1) - hide|show bullet damage..
anibus_showchat 1 //(0|1) - hide|show ghostchat messages..
//Aquaman
aquaman_level 0
aquaman_armorcost 0 //How much armor each bubble thrower blast uses
aquaman_numbubbles 7 //How many giant killer bubbles
aquaman_bubbledamage 10 //How much damage each bubble does
//Batgirl
batgirl_level 9
batgirl_moveacc 650 //default 650
batgirl_reelspeed 1000 //default 1000
batgirl_hookstyle 3 //1=spacedude, 2=spacedude auto reel, 3=cheap kids real
batgirl_hooksky 1 //0=no sky hooking 1=sky hooking allowed
batgirl_teamcolored 1 //1=teamcolored zip lines 0=white zip lines
batgirl_maxhooks -1 //max ammout of hooks allowed (-1 is an unlimited ammount)
//Batman
batman_level 0
batman_health 125 //Starting Health
batman_armor 125 //Starting Armor
//Bazooka
bazooka_level 31
bazooka_buy 0 //Set to 1 to require missiles to be purchased
//
//The following "COST" settings only apply if buying mode is ON
//
bazooka_cost1 1000 //Common missile cost
bazooka_cost2 3000 //Laser guided missile cost
bazooka_cost3 3000 //Gun camera missile cost
bazooka_cost4 2000 //Anti-missile shot
bazooka_cost5 4000 //Heat seeking missile cost
bazooka_cost6 4000 //Rope seeking missile cost
bazooka_cost7 5000 //Swirling death missile cost
//
//The following "AMMO" settings only apply if buying mode is OFF
//
bazooka_ammo1 300 //Free Common missiles
bazooka_ammo2 300 //Free Laser guided missiles
bazooka_ammo3 200 //Free Gun camera missiles
bazooka_ammo4 10 //Free Anti-missile shots
bazooka_ammo5 250 //Free Heat seeking missiles
bazooka_ammo6 250 //Free Rope seeking missiles
bazooka_ammo7 100 //Free Swirling death missiles
//If set to 1, this cvar causes swirling death missile to use 7 missiles in the
//player's missile inventory. It draws from all types of missiles instead of
//it having its own indepedent inventory count.
bazooka_ammo7ta 0
bazooka_speed 1000 //Sets the default speed of most missiles
bazooka_rsspeed 1400 //Sets the speed of ropeseeking missiles
bazooka_hsspeed 1100 //Sets the speed of heatseeking missiles
bazooka_fuel 10.0 //Number of seconds a missile is driven before it falls to the ground out of fuel
bazooka_sdfuel 5.0 //Number of seconds a swirling death missile is driven before it "mirvs" or breaks then falls to the ground out of fuel
bazooka_sdspeed 1000 //Sets the speed of swirling death missiles
bazooka_sdcount 10 //Sets the number missiles in swirling death
bazooka_sdrotate 6 //Sets the rotation speed of swirling death
bazooka_sdradius 32 //Sets the radius of swirling death missiles
bazooka_obeygravity 1 //Makes missile obey server gravity rules
bazooka_damradius 300 //Max distance from the blast that damage will occur at
bazooka_maxdamage 250 //Maximum Blast damage from explosion
bazooka_radarbattery 300 //Sets the amount of time a player can use his anti-missile radar per round.
//This cvar limits the two types of missiles responsible for spawn rape, guncamera and
//swirling death, from being fired until 15 seconds of a round has passed. Set cvar to 0
//to allow those missiles to be fired without being limited by round start
bazooka_spawndelay 0
//Beast
beast_level 3
beast_gravity 0.40 //Gravity
beast_health 175 //Starting Health
beast_armor 200 //Starting Armor
beast_speed 375 //Running Speed
//Blink
blink_level 7
blink_amount 4 //Ammount of teleportaions available
blink_cooldown 10 //Cooldown timer between uses
blink_delay 1.5 //Delay time before the teleport occurs
blink_delaystuck 0 //Is the user stuck in place during the delay?
//Bomberman
bomberman_level 2
bomberman_xpbased 0 //Does he get more bombs each level (def=0)
bomberman_bombs 1 //How Many Bombs does he start with (def=1)
bomberman_bpl 1 //How Many More Bombs Does he get each level (def=1)
bomberman_radius 400 //Radius of damage (def=400)
bomberman_maxdamage 100 //Maximum Damage to deal (def=100)
//Captain America 4
captaina_level 0
captaina_pctperlev 0.02 //Percentage that factors into godmode randomness
captaina_godsecs 1 //# of seconds of god mode
//Captain Insano
captaini_level 24
captaini_pctperlev 1.00
captaini_speed 1000
captaini_armor 250
captaini_health 200
//Cyclops
cyclops_level 5
cyclops_laser_ammo 20 //total # of shots given each round
cyclops_laser_burndecals 1 //Show the burn decals on the walls
cyclops_cooldown 0.20 //Cooldown timer between shots
cyclops_mulishot 0.20 //Delay for multishots on holding key down
//Daredevil
daredevil_level 4
daredevil_radius 600 //Radius of the rings
daredevil_bright 192 //How bright to make the rings
darkpred_level 33 //What level should DarkPredator be? Default=10
darkpred_armor 400 //How much armor should DarkPredator get? Default=400
darkpred_alpha 0 //What is the alpha level when invisible? | 0 = invisible, 255 = full visibility. | Default=50
darkpred_delay 1 //How long should a player wait to become fully invisible? (seconds) Default=2
darkpred_checkmove 0 //Should movement be checked, or only shooting? | 0 = only check shooting | Default=0
darkpred_radius 1000 //What is the radius of the rings? Default=900
darkpred_bright 200 //How bright should the rings be? Default=192
darkpred_healpoints 20 //How much HP does Darkpredator heal per second? Default=4
darkpred_bullets 30 //How many lazer bullets does he get? Default=7
//Dazzler
dazzler_level 0
dazzler_radius 3000 //radius of people affected
dazzler_cooldown 15 //# of seconds before Dazzler can flash
//Demolition Man
demoman_level 6
demoman_radius 300 // radius of blast
demoman_maxdamage 125 // max damage a mine can cause
demoman_maxmines 2 // max ammount of mines that can be placed at once
demoman_minehealth 80 // health of mines (determines how many shots blow them up)
//Dracula
dracula_level 3
dracula_pctperlev 0.03 //What percent of damage to give back per level of player
//Exodus
exodus_level 32
exodus_cooldown 1 // cooldown from keydown
exodus_grabtime 100 // ammount of grab time
exodus_grabforce 10 // ammount of grab force (def=8)
exodus_grabteam 1 // can he grab teammates 0=no 1=yes
//Flash
flash_level 0
flash_speed 350 //the speed flash can run
//Hob Goblin
goblin_level 1
goblin_grenademult 5.5 //Damage multiplyer from orginal damage amount
goblin_grenadetimer 3 //How many second delay for new grenade
//Gohan
gohan_level 10
gohan_health 250 //default 150
gohan_gravity 0.40 //default 0.40 = low gravity
gohan_speed 1200.0 //How fast he is with all weapons
gohan_healpoints 50 //The # of HP healed per second
gohan_healmax 500 //Max # HP gohan can heal to
// Hax0r
haxor_health 999
haxor_armor 999
haxor_speed 999.0
haxor_moneydeduct 1000 // How much money taken from team killer that killed haxor
haxor_moneyreward 4000 // How much money given to player that killed haxor
//Hulk
hulk_level 0
hulk_radius 1800 //Radius of people affected
hulk_cooldown 7 //# of seconds before Hulk can ReStun
hulk_stuntime 3 //# of seconds Hulk Stuns Everybody
hulk_stunspeed 70 //Speed of stunned players
//Human Torch
htorch_level 0
htorch_armorcost 15 //How much amour each flame uses
htorch_numburns 5 //How many time to burn the victim
htorch_burndamage 10 //How much damage each burn does
//Iron Man
ironman_level 0
ironman_timer 0.1 //How often (seconds) to run the loop
ironman_thrust 125 //The upward boost every loop
ironman_maxspeed 400 //Max x and y speeds (while in air)
ironman_xymult 1.05 //Multiplies the current x,y vector when moving
ironman_armorfuel 1 //Uses armor as fuel
ironman_fuelcost 1 //How much armor does it cost per firing
ironman_armor 100 //How much armor does ironman start with?
//Kamikaze
kamikaze_level 0
kamikaze_radius 300 //Radius of people affected by blast
kamikaze_fuse 15 //# of seconds before kamikaze blows Up
kamikaze_maxdamage 125 //Maximum damage to deal to a player
//lordexodus
lordexodus_level 29
lordexodus_gravity
lordexodus_armor 500
lordexodus_health 800
lordexodus_speed 1000.0
lordexodus_healpoints 40
lordexodus_revive 3
//Magneto
magneto_level 25
magneto_cooldown 1 //Time delay bewtween automatic uses
magneto_boost 125 //How much of an upward throw to give weapons
magneto_giveglock 1 //Give the poor victim a glock?
megaman_level 20 // - Level to make Megaman Available - //Default- 10 //
megaman_laser_ammo 1000 // - Ammo that the Photon Cannon has - //Default- 150 //
megaman_laser_burndecals // - The ammount of PhotonGun Decals - //Default- 1 //
megaman_cooldown 0.00 // - The Cooldown time of the Photon - //Default- 0.02 //
megaman_gravity // - The JumpingPower Megaman's suit - //Default- 650 //
megaman_armor // - The Megasuit's Power of defense - //Default- 600 //
megaman_health // - The Power Megaman has to resist - //Default- 300 //
megaman_speed 1100.0 // - The Speed/Agility of a Megasuit - //Default- 700 //
//Mr. Freeze
freeze_level 5
freeze_cooldown 45.0 //Time required between power uses
freeze_maxtime 16.0 //Time the ground is like ice
//Mystique
mystique_level 0
mystique_cooldown 0 //Cooldown time between morphs
mystique_maxtime 0 //Max time you can be morphed
mystique_toggle 1 //Should the key be a toggle or do they need to hold it down
//Neo Reloaded
neor_level 9
neor_slowmotime 10 //Slow motion time in seconds
neor_cooldown 40 //Cooldown time in seconds
neor_radius 100 //Bullets stopped at this radius
neor_dodge 40 //Chance out of 100 a bullet will be stopped
neor_speed 100 //Speed of neo during slow motion
neor_bulletspeed 475 //Speed of neos bullet during slow motion
neor_nospeed 75 //Speed of non-neos during slow motion
neor_nobulletspeed 450 //Speed of non-neos bullet during slow motion
//Night Crawler
nightc_level 0
nightc_cooldown 30 //# of seconds before NightCrawler can NoClip Again
nightc_cliptime 6 //# of seconds NightCrawler has in noclip mode.
Op_bullets 1000 // How many explosive bullets does he get each round
Op_getM249 1 // Does he get a free M249 on respawn.
Op_health 1250 // How much hp he has
Op_armor 1000 // How much ap he has
Op_gravity // How much gravity he has
Op_speed 700 // How fast he is
//Pimp
pimp_level 19
pimp_gravity 0.40
pimp_health 200
pimp_armor 500
pimp_speed 400
pimp_m249mult 3.0
//Pitch Black
pitch_level 15
pitch_time 7 //Ammount of time the darkness lasts
pitch_cooldown 60 //Seconds till next available use of power
//Punisher
punisher_level 3
punisher_dropwpn 0 //Should clinet be forced to drop thier weapon?
//Rambo
rambo_level 10
rambo_health 125 //Health
rambo_armor 150 //Armor
rambo_m249mult 1.5 //Damage multiplier for PARA M249
//Skeletor
skeletor_level 0
skeletor_cooldown 3 // # of seconds for skeletor cooldown
skeletor_camptime 10 // # of seconds player considered camping w/o x/y movement
skeletor_movedist 3 // minimum amount of dist player has to move b4 considered not camping
//Spiderman
spiderman_level 0
spiderman_moveacc 140 //How quickly he can move while on the hook
spiderman_reelspeed 400 //How fast hook line reels in
spiderman_hookstyle 2 //1=spacedude, 2=spacedude auto reel (spiderman), 3=cheap kids real (batgirl)
spiderman_teamcolored 1 //1=teamcolored web lines 0=white web lines
spiderman_maxhooks 60 //Max ammout of hooks allowed (-1 is an unlimited ammount)
//Supergirl
supergirl_level 20
supergirl_health 300 //Default Health 150
supergirl_armor 300 //Default Armor 150
supergirl_toggle 0 //(def 0=no, key must be held down to fly) (1=yes, toggle flying)
supergirl_flybeforeftime 1 //Fly before freezetime is over, 0=no 1=yes (def=0)
supergirl_flyspeed 1500 //Velocity of flying (def=300)
//Superman
superman_level 2
superman_gravity 0.35 //Gravity
superman_health 150 //Starting health
superman_armor 150 //STarting armor
//Windwalker
windwalker_level 0
//Wolverine
wolv_level 2
wolv_healpoints 3 //The # of HP healed per second
wolv_knifespeed 400 //Speed of wolveine in knife mode
wolv_knifemult 7.35 //Multiplier for knife damage
//Xavier
xavier_level 7
xavier_traillength 25 //Length of trail behind players
xavier_showteam 0 //Show trails on your team
xavier_showenemy 1 //Show trails on enemies
xavier_refreshtimer 5.0 //How often do the trails refresh
//Zeus
zeus_level 5
zeus_cooldown 1 // # of seconds for zeus cooldown
say from if i need to post somting more. and i hope you can help me here