Raised This Month: $ Target: $400
 0% 

HE Bonus Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 11-08-2011 , 11:14   HE Bonus Plugin
Reply With Quote #1

I wrote a plugin I give you only kill the enemy with hand grenades health.

Once I get compile errors.

What do I do?

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

public plugin_init()
{
	register_plugin("PLUGIN", "VERSION", "AUTHOR")

	register_event("DeathMsg", "EventDeathMsg", "a", "1>0")
}

public EventDeathMsg()
{
    	if(get_user_weapon() == CSW_HEGRENADE)
	{
		Bonus()
    	}
}

public Bonus(id)
{
	client_print(id, print_center, "Since You killed the enemy with the HE\nYou add 25 to health")
	set_user_health(id, (get_user_health(id) + 25))
}
RuRuRu612754 is offline
 


Thread Tools
Display Modes

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 14:16.


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