I can Get Mine To Compile It Says That It Has An "Undifined Symbol gHasMichaelPower"
Heres My Code
//Hero Michael
//shconfig.cfg
/*
Michael_level 10
Michael_health 1000 //Health (Default 1000)
Michael_armor 1000 //Armor (Default 1000)
Michael_adminflag a //Checks For Admin Letter a (default a)
*/
//-----------------------------------------------------------------------
//requirements
#include <amxmodx>
#include <superheromod>
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
new gHeroName[]="Michael"
new bool:gHasMichael[SH_MAXSLOTS+1]
public plugin_init()
//-----------------------------------------------------------------------
{
//Plugin
register_plugin("SUPERHERO Michael", "1.2", "MTD")
//Register Cvarr
register_cvar("Michael_level", "10")
register_cvar("Michael_Health", "1000")//Health
register_cvar("Michael_armor", "1000")//Armor
register_cvar("Michael_adminflag", "a")
//Events
shCreateHero(gHeroName, "Tons Of Admin Health!", "Kill With All Your Health", true, "Michael_level")
//Setting The Hero
shSetMaxHealth(gHeroName, "Michael_Health")//Set Health
shSetMaxArmor(gHeroName, "Michael_Armor")//Set Armour
}
//-----------------------------------------------------------------------
public Michael_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 the hero
read_argv(2,temp,5)
new hasPowers = str_to_num(temp)
if (!hasPowers && gHasMichael[id] && is_user_alive(id)) //Have The Powers?
shRemHealthPower(id)//Remove Hp
if (!hasPowers && gHasMichael[id] && is_user_alive(id)) //Have The Powers?
shRemArmorPower(id)//Remove Armor
gHasMichaelPower[id] = (hasPowers != 0)
gMichaelSelected[id] = gMichaelSamPower[id]
if ( gHasMichaelPower[id] && is_user_connected(id) ) {
Michael_admincheck(id)
}
}
//-----------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
public Michael_admincheck(id)
{
new accessLevel[10]
get_cvar_string("Michael_adminflag", accessLevel, 9)
if ( gMichaelSelected[id] && !(get_user_flags(id)&read_flags(accessLevel)) ) {
client_print(id, print_chat, "[SH](%s) **Admin Only** You are not
authorized to use this hero", gHeroName)
gHasMichaelPower[id] = false
client_cmd(id, "say drop %s", gHeroName)
}
}
Heres The Sma For Michael if u cant get it from here.......sh_Michael.sma