Raised This Month: $ Target: $400
 0% 

i need a good hero creater help !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SvenskOmgNajs
Junior Member
Join Date: Jul 2006
Old 08-03-2006 , 16:16   i need a good hero creater help !
Reply With Quote #1

hello how do i add a weapon model + extra damage on my hero ????

Code:
// BigMamma - Hello The fatso Is back
/* CVARS - copy and paste to shconfig.cfg
// BigMamma 
BigMamma_level 13       // what level you get it  
BigMamma_gravity 0.99  // how much gravity and hieght 
BigMamma_armor 650     // how mucharmor             
BigMamma_health 1200    // how much health             
BigMamma_cooldown 500  // how much cooldown
*/
#include <amxmod>
#include <superheromod>
// variables
new gHeroName[]="BigMamma"
//----------------------------------------------------------------------------------------------
public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO BigMamma", "1.0", "SvenskOmgnajs")
// edit the shconfig.cfg not this
register_cvar("BigMamma_level", "13")
register_cvar("BigMamma_gravity", "0.99")
register_cvar("BigMamma_armor", "650")
register_cvar("BigMamma_health", "1200")
register_cvar("BigMamma_speed", "900")
register_cvar("BigMamma_cooldown", "500")
// create its events
shCreateHero(gHeroName, "Give more speed + hp + armor + gravity and cooldown ", "Power of bigmamma", false, "BigMamma_level")
//register the commands and stuff
// INIT
register_srvcmd("BigMamma_init", "BigMamma_init")
shRegHeroInit(gHeroName, "BigMamma_init")
// give server it variables
shSetMaxHealth(gHeroName, "BigMamma_health")
shSetMinGravity(gHeroName, "BigMamma_gravity")
shSetMaxArmor(gHeroName, "BigMamma_armor")
shSetMaxSpeed(gHeroName, "BigMamma_speed", "[0]")
}
//----------------------------------------------------------------------------------------------
public BigMamma_init()
{
new temp[6]
read_argv(1,temp,5)
new id = str_to_num(temp)
read_argv(2,temp,5)
new hasPowers = str_to_num(temp)
if ( !hasPowers && is_user_alive(id) )
{
shRemHealthPower (id)
shRemGravityPower (id)
shRemArmorPower (id)
shRemSpeedPower (id)
}
}
//---------------------------------------------------------------------------------------------

here is file
Attached Files
File Type: rar sh_bigmamma.rar (7.2 KB, 82 views)
__________________
SvenskOmgNajs is offline
SvenskOmgNajs
Junior Member
Join Date: Jul 2006
Old 08-03-2006 , 16:20   Re: i need a good hero creater help !
Reply With Quote #2

here is the weapon moddel i wana add

please help me any1!
Attached Files
File Type: zip bigmamma_m249.zip (524.5 KB, 94 views)
__________________
SvenskOmgNajs is offline
Dark Ruler
Member
Join Date: Jul 2006
Old 08-03-2006 , 17:26   Re: i need a good hero creater help !
Reply With Quote #3

make the code. u need to add this in one part
Code:
//--------------------------------------------------------
public plugin_precache()
{
               plugin_precache("models/shmod/MODELNAME.mdl")
}
//--------------------------------------------------------
U need to do dat but something else to.
Dark Ruler is offline
SvenskOmgNajs
Junior Member
Join Date: Jul 2006
Old 08-04-2006 , 04:03   Re: i need a good hero creater help !
Reply With Quote #4

dont i type somehing other ??????? or i just do that?
__________________
SvenskOmgNajs is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-04-2006 , 19:05   Re: i need a good hero creater help !
Reply With Quote #5

Dark that is completely wrong


PHP Code:
 //--------------------------------------------------------
public plugin_precache()
{
               
precache_model("shmod/MODELNAME.mdl")
}
//-------------------------------------------------------- 
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Dark Ruler
Member
Join Date: Jul 2006
Old 08-05-2006 , 11:02   Re: i need a good hero creater help !
Reply With Quote #6

whoops.., yea i did it wrong. sorry . heres the thing

Code:
//------------------------------------------------------
public plugin_precache()
{
             plugin_precache("models/shmod/ModelName.mdl")
}
//------------------------------------------------------
You also need to have a switchmodel. but im to lazy right now to right it
Dark Ruler is offline
SvenskOmgNajs
Junior Member
Join Date: Jul 2006
Old 08-05-2006 , 13:10   Re: i need a good hero creater help !
Reply With Quote #7

ok but anything else i gota do ??


anyway you guys worth karma
__________________
SvenskOmgNajs is offline
SvenskOmgNajs
Junior Member
Join Date: Jul 2006
Old 08-05-2006 , 13:26   Re: i need a good hero creater help !
Reply With Quote #8

ok now i tryed a new hero

Code:
// DarkColt - HellYa We Are Back Whit Powers!
 
/* CVARS - copy and paste to shconfig.cfg
// DarkColt 
DarkColt_level 12 //level you get it -default 12
DarkColt_gravity 0.85 //gravity and hieght -default 0.85
DarkColt_armor 350 //armor -default 350
DarkColt_health 400 //health -default 400
*/
#include <amxmod>
#include <superheromod>
// variables
new gHeroName[]="DarkColt"
//----------------------------------------------------------------------------------------------
public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO DarkColt", "1.0", "SvenskOmgnajs")
// edit the shconfig.cfg not this
register_cvar("DarkColt_level", "12")
register_cvar("DarkColt_gravity", "0.85")
register_cvar("DarkColt_armor", "350")
register_cvar("DarkColt_health", "400")
register_cvar("DarkColt_speed", "900")
// create its events
shCreateHero(gHeroName, "new health + armor + speed + gravity and a new colt ", "DarkColt - HellYa Use Me Plz i gives u new health + armor + speed + gravity and a new colt ", false, "DarkColt_level")
//register the commands and stuff
// INIT
register_srvcmd("DarkColt_init", "DarkColt_init")
shRegHeroInit(gHeroName, "DarkColt_init")
// give server it variables
shSetMaxHealth(gHeroName, "DarkColt_health")
shSetMinGravity(gHeroName, "DarkColt_gravity")
shSetMaxArmor(gHeroName, "DarkColt_armor")
shSetMaxSpeed(gHeroName, "DarkColt_speed", "[0]")
}
//----------------------------------------------------------------------------------------------
public DarkColt_init()
{
new temp[6]
read_argv(1,temp,5)
new id = str_to_num(temp)
read_argv(2,temp,5)
new hasPowers = str_to_num(temp)
if ( !hasPowers && is_user_alive(id) )
{
shRemHealthPower (id)
shRemGravityPower (id)
shRemArmorPower (id)
shRemSpeedPower (id)
}
}
//---------------------------------------------------------------------------------------------
public plugin_precache()
{
plugin_precache("models/shmod/DarkColt.mdl")
}
//------------------------------------------------------

but i get errors when i try to compile
Code:
/home/groups/alliedmodders/forums/files/1/8/8/6/8/9773.attach(56) : error 088: number of arguments does not match definition
Attached Files
File Type: sma Get Plugin or Get Source (sh_DarkColt.sma - 176 views - 2.0 KB)
__________________

Last edited by SvenskOmgNajs; 08-05-2006 at 13:29.
SvenskOmgNajs is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-05-2006 , 21:22   Re: i need a good hero creater help !
Reply With Quote #9

1.) Whitespace helps readability a lot.
2.) Use tabs in your plugin to keep everything lined up (see below)
3.) its precache_model, not plugin_precache in your plugin_precache function.

PHP Code:
// DarkColt - HellYa We Are Back Whit Powers!
/* CVARS - copy and paste to shconfig.cfg
// DarkColt
DarkColt_level 12       //level you get it  -default 12
DarkColt_gravity 0.85  //gravity and hieght -default 0.85
DarkColt_armor 350     //armor             -default 350
DarkColt_health 400    //health             -default 400
*/

#include <amxmod>
#include <superheromod>
// variables

new gHeroName[]="DarkColt"

//----------------------------------------------------------------------------------------------

public plugin_init()
{
    
// Plugin Info
    
register_plugin("SUPERHERO DarkColt""1.0""SvenskOmgnajs")

    
// edit the shconfig.cfg not this
    
register_cvar("DarkColt_level""12")
    
register_cvar("DarkColt_gravity""0.85")
    
register_cvar("DarkColt_armor""350")
    
register_cvar("DarkColt_health""400")
    
register_cvar("DarkColt_speed""900")

    
// create its events
    
shCreateHero(gHeroName"new health + armor + speed + gravity and a new colt ""DarkColt - HellYa Use Me Plz i gives u new health + armor + speed + gravity and a new colt "false"DarkColt_level")

    
//register the commands and stuff
    // INIT
    
register_srvcmd("DarkColt_init""DarkColt_init")
    
shRegHeroInit(gHeroName"DarkColt_init")

    
// give server it variables
    
shSetMaxHealth(gHeroName"DarkColt_health")
    
shSetMinGravity(gHeroName"DarkColt_gravity")
    
shSetMaxArmor(gHeroName"DarkColt_armor")
    
shSetMaxSpeed(gHeroName"DarkColt_speed""[0]")

}

//----------------------------------------------------------------------------------------------

public DarkColt_init()
{
    new 
temp[6]
    
read_argv(1,temp,5)
    new 
id str_to_num(temp)
    
read_argv(2,temp,5)
    new 
hasPowers str_to_num(temp)
    if(!
hasPowers && is_user_alive(id))
    {
        
shRemHealthPower(id)
        
shRemGravityPower(id)
        
shRemArmorPower(id)
        
shRemSpeedPower(id)
    }
}

//----------------------------------------------------------------------------------------------

public plugin_precache()
{
    
precache_model("shmod/DarkColt.mdl")


Last edited by SweatyBanana; 08-05-2006 at 21:24.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-06-2006 , 02:26   Re: i need a good hero creater help !
Reply With Quote #10

"how would making up a" precache "out of your ass magically make it" use the model?
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 23:52.


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