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

Hero: UberGunner


Post New Thread Reply   
 
Thread Tools Display Modes
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 07-21-2010 , 14:56   Re: Hero: UberGunner
Reply With Quote #41

I get this when I try to compile after removing that line:

Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/phpxPNYDP.sma(40) : fatal error 100: cannot read from file: "vexd_utilities"

Compilation aborted.
1 Error.

1003519 successful compiles to date.
734367 failed compiles to date.
Old compiler: 101980 compiles before decommission.
This tool by: David "BAILOPAN" Anderson.
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 07-21-2010 , 16:06   Re: Hero: UberGunner
Reply With Quote #42

/home/groups/amxmodx/tmp3/phpxPNYDP.sma(40) : fatal error 100: cannot read from file: "vexd_utilities"

ffs read the error!
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 07-21-2010 , 16:18   Re: Hero: UberGunner
Reply With Quote #43

Yes I read the error, what I asked is how I fix it, where do I get this ved_utilities file?
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 07-21-2010 , 16:22   Re: Hero: UberGunner
Reply With Quote #44

You cannot add includes to the web compiler, therefor you cannot use it, but need to do it locally. The vexd is included in the base package of amxx.
__________________
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 07-21-2010 , 16:31   Re: Hero: UberGunner
Reply With Quote #45

Gaah learn to script, here's a bloody instant weapon hero rip for Ubergunner with code for the v and player models. The file dirrs are the same

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <superheromod>

new gHeroID
new gHeroName[] = "Ubergunner"
new bool:gHasUbergunner[SH_MAXSLOTS+1]
new const 
gModelM4A1[] = "models/shmod/Ubergunner_m4a1.mdl"
new const gUberModel[] = "models/player/Ubergunner/Ubergunner.mdl"


public plugin_init()
{
    
//plugin info
    
register_plugin("SUPERHERO Ubergunner""1.0""The Art of War")
    
    
//cvars
    
new pCvarLevel register_cvar("ubergunner_level""14")
    new 
pCvarHealth register_cvar("ubergunner_health""180")
    new 
pCvarArmor register_cvar("ubergunner_armor""150")
    new 
pCvarGrav register_cvar("ubergunner_grav""0.80")
    new 
pCvarMult register_cvar("ubergunner_mult""3")
    
    
//create hero!
    
gHeroID sh_create_hero(gHeroNamepcvarLevel)
    
sh_set_hero_info(gHeroID"Ubergunner""Become Ubergunner and get his suit and M4!")
    
    
//set hero power
    
sh_set_hero_hpap(gHeroIDpCvarHealthpCvarArmor)
    
sh_set_hero_grav(gHeroIDpCvarGrav)
    
sh_set_hero_dmgmult(gHeroIDpCvarMultCSW_M4A1)
    
    
//events
    
register_event("CurWeapon""weapon_change""be""1=1")
}

public 
plugin_precache()
{
    
precache_model(gModelM4A1)
    
precache_model(gUberModel)
}

public 
sh_hero_init(idheroIDmode)
{
    
//if no power return
    
if (gHeroID != heroID) return
    
    
//check if they get or lose power
    
switch(mode)
    {
        
//if they get power
        
case SH_HERO_ADD:
        {
            
gHasUbergunner[id] = true
            ubergunner_weapon
(id)
            
switch_model(id)
            
ubergunner_morph(id)
        }
        
        
//if they lose power
        
case SH_HERO_DROP:
        {
            
gHasUbergunner[id] = false
            
//if user alive drop scout
            
if (is_user_alive(id))
            {
                
sh_drop_weapon(idCSW_M4A1true)
            }
            
ubergunner_unmorph(id)
        }
    }
}

public 
sh_client_spawn(id)
{
    
//if they have power give weapon and set playermodel
    
if (gHasUbergunner[id])
    {
        
ubergunner_weapon(id)
        
ubergunner_morph(id)
    }
}

ubergunner_weapon(id)
{
    
//if client is alive and have power give scout
    
if (sh_is_active() && is_user_alive(id) && gHasUbergunner[id])
    {
        
sh_give_weapon(idCSW_M4A1true)
    }
}

switch_model(id)
{
    
//if client does not have hero, is dead, or sh is off do nothing
    
if ( !sh_is_active() || !is_user_alive(id) || !gHasUbergunner[id] ) return
    
    
//if client has deagle set model
    
if ( get_user_weapon(id) == CSW_M4A1)
    {
        
set_pev(idpev_viewmodel2gModelM4A1)
    }
}

public 
weapon_change(id)
{
    
//do nothing if client does not have hero or sh is off
    
if ( !sh_is_active() || !gHasUbergunner[id] ) return
    
    new 
weaponID read_data(2)
    if ( 
weaponID != CSW_M4A1 ) return
    
    
    
//switch model
    
switch_model(id)
}

ubergunner_morph(id)
{
    
cs_set_user_model(id"ubergunner")
}

ubergunner_unmorph(id)
{
    
cs_reset_user_model(id)

Attached Files
File Type: sma Get Plugin or Get Source (sh_ubergunner.sma - 192 views - 2.7 KB)
__________________
The Art of War is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 07-21-2010 , 17:06   Re: Hero: UberGunner
Reply With Quote #46

@ Art of War, thanks, but pressing "Download Plugin" there doesn't work, comes up an error and when I try to compile the SMA the same thing happens as before.
Exploited is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 07-22-2010 , 11:03   Re: Hero: UberGunner
Reply With Quote #47

O M F G

YES, because we said numerous times, DONT USE THE FUCKING WEBCOMPILER

Just click Get Source and compile it locally,....
__________________
The Art of War is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 07-22-2010 , 11:53   Re: Hero: UberGunner
Reply With Quote #48

Compiling locally does for some reason not work for me either (Read: https://forums.alliedmods.net/showth...65#post1247065)
Exploited is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 07-31-2010 , 16:43   Re: Hero: UberGunner
Reply With Quote #49

Cant really say I get it. Theres no error at all. Im not at home so I cant check for any errors myself.
__________________
The Art of War 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 10:38.


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