Raised This Month: $ Target: $400
 0% 

SH hero level help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IcaCat
Junior Member
Join Date: Nov 2009
Old 11-10-2009 , 10:12   SH hero level help!
Reply With Quote #1

I need help about own made hero. Im making the level to be 55 and when i try test it after its name says (0) still.
Here is the plugin
PHP Code:
#include <amxmodx>
#include <superheromod>
 
new gHeroName[]="Garfield"
new bool:gHasSuperPower[SH_MAXSLOTS+1]
public 
plugin_init() {
 
register_plugin("sh_garfield""2.3""0k?");
 
 
register_cvar("garfield_level""55");
 
register_cvar("garfield_health""450");
 
register_cvar("garfield_armor""250");
 
register_cvar("garfield_speed""550.0");
 
        
shCreateHero(gHeroName"Health, Speed and Armor""Health, Speed and Armor increased"false"55");
 
 
register_srvcmd("garfield_init""garfield_init");
 
 
shRegHeroInit(gHeroName"garfield_init");
        
shSetMaxHealth(gHeroName"garfield_health");
        
shSetMaxArmor(gHeroName"garfield_armor");  
        
shSetMaxSpeed(gHeroName"garfield_speed""[0]");
}
 
 public 
garfield_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);
 
 
gHasSuperPower[id] = (hasPowers != 0);
 
           if (!
hasPowers && gHasSuperPower[id] && is_user_alive(id)) {
   
shRemHealthPower(id);
   
shRemArmorPower(id);
   
shRemSpeedPower(id);
 
        }

Im writing all the cvars in shero.cfg and its still not working.
Thanks in advance
IcaCat is offline
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 17:32.


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