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

sum1 help plz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
notorious-sk8er
Senior Member
Join Date: Jun 2005
Old 08-17-2005 , 19:14   sum1 help plz
Reply With Quote #1

i dont get it y it isnt working
Code:
//Untitled 	by	 -(A99)- | sk8er

/*copy and paste to shconfig.cfg

//untitled
untitled_level 10
untitled_health 175					//health
untitled_armor 250					 //armor
untitled_m4multi 2.0				  //M4A1 Damage Multiplier
untitled_mp5multi 2.1				 //MP5 Damage Multiplier
untitled_deaglemulti 2.0			 //Deagle (Desert Eagle) Damage Multiplier


#include <amxmod>
#include <Vexd_Utilities>
#include <superheromod>

//Global Variables
new gHeroName[]="Untitled"
new gHasUntitledPower[SH_MAXSLOTS+1]
//------------------------------------------------------------------------------------------------------------------------
public plugin_init()
{
	//Plugin Info
	register_plugin ("SUPERHERO Untitled", "1.0", "-(A99)- | sk8er")
	
	//DO NOT EDIT BELOW THIS LINE, USE shconfig.cfg
	register_cvar("untitled_level", "10")
	register_cvar("untitled_health", "175")
	register_cvar("untitled_armor", "250")
	register_cvar("untitled_m4a1multi", "2.0")
	register_cvar("untitled_mp5multi", "2.1")
	register_cvar("untitled_deaglemulti", "2.0")
	
	//FIRE THIS EVENT TO CREATE THIS HERO
	shCreateHero(gHeroName, "Colt, MP5, Deagle Damage Multiplied", "Damage Multiplied for Colt, MP5, Deagle.Unlimited Ammo.Xtra HP and AP.
	
	//REGISTER EVENTS THAT THIS HERO WILL RESPNDE TO(AND SERVER COMMANDS)
	//INIT
	register_svrcmd("untitledI_init", "untitled_init")
	shRegHeroInit(gHeroName, "untitled_init")
	
	register_event("ResetHUD", "newSpawn", "b")
	register_event("CurWeapon", "weaponChange", "be", "1=1")
	register_event("Damage", "untitled_damage", "b", "2!0")
	
	//Let Server know about Untitled's Variable
	shSetMaxHealth(gHeroName, "untitled_health")
	shSetMaxArmor(gHeroName, "untitled_armor")
	shSetShieldRestrict(gHeroName)
	
}
//---------------------------------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------------------------------
public untitled_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 Untitled
	read_argv(2,temp,5)
	new hasPowers=str_to_num(temp)
	
	gHasUntitledPower[id] = (hasPowers != 0)
	
	//Reset thier shield restrict status
	//Shield restrict MUST be before weapons are given out
	shResetShield(id)
	
	if ( !is_user_alive(id) ) return

	if ( gHasUntitledPower[id] ) {
		madness_weapons(id)
		switchmodel(id)
	}
	else {
		engclient_cmd(id, "drop", "weapon_m4a1")
		engclient_cmd(id, "drop", "weapon_mp5")
		engclient_cmd(id, "drop", "weapon_deagle")
		shRemHealthPower(id)
		shRemArmorPower(id)
	}
}
//---------------------------------------------------------------------------------------------------------------------------------------
public untitled_giveweapons(id)
{
	give_item(id,"weapon_deagle") 
	give_item(id,"weapon_m4a1")
	give_item(id,"wepaon_mp5")
	
	  if ( get_user_team(id) == 2 ) 
	    give_item(id,"item_thighpack")

return PLUGIN_CONTINUE 
}
y isnt it working????
notorious-sk8er 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 23:24.


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