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

100 HP - Please read :]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dufuS
Junior Member
Join Date: Mar 2005
Old 10-15-2005 , 05:59   100 HP - Please read :]
Reply With Quote #1

I have this idea for a plugin:
every time somebody kills, he gets 100 hp
i mean if after he killed he had 35hp, then he gets 65 more
what do you think? could somebody make this plugin?

p.s. sorry 'bout lame english
dufuS is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 10-15-2005 , 06:49  
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("100 HP", "1.0", "XunTric")     register_event("DeathMsg", "DeathMsg", "a") } public DeathMsg() {     new attacker = read_data(1)     set_user_health(attacker, 100) }
XunTric is offline
dufuS
Junior Member
Join Date: Mar 2005
Old 10-15-2005 , 07:36  
Reply With Quote #3

Quote:
Originally Posted by XunTric
Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("100 HP", "1.0", "XunTric")     register_event("DeathMsg", "DeathMsg", "a") } public DeathMsg() {     new attacker = read_data(1)     set_user_health(attacker, 100) }
wow thanks!
can u do for me a command?: amx_100hp <1|0>
thanks
dufuS is offline
schreck
Junior Member
Join Date: Jul 2005
Location: TX
Old 10-15-2005 , 08:03  
Reply With Quote #4

Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fun> 

public plugin_init() 
{ 
	register_cvar("amx_100hp","1")
	register_clcmd("amx_100hp","change_state",ADMIN_RCON,"<1|0>")
	register_plugin("100 HP", "1.0", "XunTric & Schreck") 
	register_event("DeathMsg", "DeathMsg", "a") 
} 

public change_state(id,level,cid)
{
	if(!cmd_access(id,level,cid,2))
		return PLUGIN_HANDLED
	if(get_cvar_num("amx_100hp"))
	{
		set_cvar_num("amx_100hp",0)
	}
	else
	{
		set_cvar_num("amx_100hp",1)
	}
	return PLUGIN_HANDLED
}

public DeathMsg() 
{ 
	if(!get_cvar_num("amx_100hp"))
		return PLUGIN_HANDLED
	new attacker = read_data(1) 
	set_user_health(attacker, 100) 
	return PLUGIN_HANDLED
}
try that
__________________
The only reason im a newbie here is cause i hang out in #amxmodx instead
schreck is offline
Send a message via AIM to schreck Send a message via MSN to schreck Send a message via Yahoo to schreck
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 10-15-2005 , 09:20  
Reply With Quote #5

Quote:
Originally Posted by schreck
Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fun> 

public plugin_init() 
{ 
	register_cvar("amx_100hp","1")
	register_clcmd("amx_100hp","change_state",ADMIN_RCON,"<1|0>")
	register_plugin("100 HP", "1.0", "XunTric & Schreck") 
	register_event("DeathMsg", "DeathMsg", "a") 
} 

public change_state(id,level,cid)
{
	if(!cmd_access(id,level,cid,2))
		return PLUGIN_HANDLED
	if(get_cvar_num("amx_100hp"))
	{
		set_cvar_num("amx_100hp",0)
	}
	else
	{
		set_cvar_num("amx_100hp",1)
	}
	return PLUGIN_HANDLED
}

public DeathMsg() 
{ 
	if(!get_cvar_num("amx_100hp"))
		return PLUGIN_HANDLED
	new attacker = read_data(1) 
	set_user_health(attacker, 100) 
	return PLUGIN_HANDLED
}
try that
Why do it so complex?
Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("100 HP", "1.0", "XunTric")     register_event("DeathMsg", "DeathMsg", "a")     register_cvar("amx_100hp", "1") } public DeathMsg() {        if(!get_cvar_num("amx_100hp")         return PLUGIN_CONTINUE     new attacker = read_data(1)     set_user_health(attacker, 100)     return PLUGIN_CONTINUE }
XunTric is offline
schreck
Junior Member
Join Date: Jul 2005
Location: TX
Old 10-16-2005 , 03:06  
Reply With Quote #6

cuase ive been of in my own little world. I know more that half the ppl on this forum can do plugins better than i can, im just trying to help out. I will learn more as time goes by, but i am still a better programmer than Sputnic53 from what i heard
__________________
The only reason im a newbie here is cause i hang out in #amxmodx instead
schreck is offline
Send a message via AIM to schreck Send a message via MSN to schreck Send a message via Yahoo to schreck
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 02:54.


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