Raised This Month: $ Target: $400
 0% 

HE Bonus Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 11-08-2011 , 21:09   Re: HE Bonus Plugin
Reply With Quote #4

thanks for all answer

@ConnorMcLeod

compile is success
However, the message is displayed to all players.
And health is not added

What should I do?

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

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

	register_event("DeathMsg", "EventDeathMsgHeGrenade", "a", "1>0", "4=grenade")
}

public EventDeathMsgHeGrenade(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
 



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