Raised This Month: $ Target: $400
 0% 

Hero: VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 07-18-2004 , 08:44   Hero: VIP
Reply With Quote #1



Description:
Morph into the Vip Skin, Free Secondary Weapons and a Free Shield

Cvars:
vip_level # = What level is he avalible (def=0)
vip_cooldown = How long time untill it can be used again(def=0) 0=forever
vip_maxtime = How long can a person look like Vip (def=0) 0=forever
vip_toggle = Like Mystiqe... Toggle Yes/No (def=1)
vip_health = How much HP does he have (def=200)
vip_armor = How much AP does he have (def=200)
vip_pistolmult = How much more damage does a pistol do (def=1.5)
vip_summon = can he summon a Scientist to heal himself (def=0)
Attached Files
File Type: sma Get Plugin or Get Source (sh_vip.sma - 1030 views - 10.1 KB)
__________________
My Plugins

Got ??

Last edited by vittu; 02-09-2009 at 17:11.
AssKicR is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-27-2004 , 15:34  
Reply With Quote #2

I had compile errors with this, so here is a fixed non-compile error VIP for AMX. I only cleaned out the compile errors, nothing else.
Attached Files
File Type: sma Get Plugin or Get Source (sh_vip.sma - 1162 views - 10.1 KB)
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
werdpad
Senior Member
Join Date: Jun 2005
Old 07-16-2005 , 09:53  
Reply With Quote #3

dedicated cs1.6 server
AMXX 1.01
SH 1.18

i get a server console error from VIP ver 1.14.4 ...

Quote:
L 07/16/2005 - 09:487: [AMXX] Native error in "get_user_attacker" on line 229 (file "sh_vip.sma").
Code:
public vip_damage(id) {
    if (!shModActive()) return PLUGIN_CONTINUE

    new damage = read_data(2)
    new weapon, bodypart, attacker = get_user_attacker(id,weapon,bodypart)
    
    if ( attacker <=0 || attacker>SH_MAXSLOTS ) return PLUGIN_CONTINUE
    
    if ( gHasVipPower[attacker] && isSecondary(weapon) && is_user_alive(id) )
    {
       // do extra damage
       new extraDamage = floatround(damage * get_cvar_float("vip_pistolmult") - damage)
       if (extraDamage>0) shExtraDamage( id, attacker, extraDamage, "vip pistol!" )
    }
    return PLUGIN_CONTINUE
}
the entire function that the error takes place is pasted above
and the line number 229 is new weapon, bodypart, attacker = get_user_attacker(id,weapon,bodypart)

can this be fixed? will it cause crashes? other superheroes that give me similar errors are the thing and noob. any help is greatly appriciated
werdpad is offline
Send a message via AIM to werdpad
mage
Senior Member
Join Date: Sep 2005
Old 07-21-2005 , 11:31  
Reply With Quote #4

it is kinda funny to use. (i gonna post alot today becouse i have registeret first now and most say to all the heros i love)
mage is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 07-21-2005 , 13:47  
Reply With Quote #5

Why don't you stop spamming ?
All your 14 posts has been nothing else than spam...
And when an admin comes online, you are getting some warnings...
We do NOT care about what you think about the heroes, if the only thing you have to say is 'Oh. This hero is so funny' 'I use this one on my server' etc.
__________________
//ShadowLeader - 123
123 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 22:35.


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