PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_event("DeathMsg", "DeathMsg", "a");
}
public DeathMsg()
{
new attacker = read_data(1);
new bool:headshot = read_data( 3 )
if(headshot)
{
if(is_user_alive(attacker))
{
new old_hp = get_user_health(attacker)
set_user_health(attacker, old_hp + 50)
give_item( attacker, "weapon_hegrenade" );
}
}
else
{
if(is_user_alive(attacker))
{
new old_hp = get_user_health(attacker)
set_user_health(attacker, old_hp + 10)
}
}
}
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Warning: Tag mismatch on line 21
Header size: 272 bytes
Code size: 604 bytes
Data size: 152 bytes
Stack/heap size: 16384 bytes; estimated max. usage=778 cells (3112 bytes)
Total requirements: 17412 bytes
1 Warning.
Done.
WTF?
__________________