im getting a bad load on my plugin and i dont know whats wrong
Code:
//Vampire Mod
//By Zidd
//A Version Half-life engine version of an unreal tournament mutator
#include <amxmodx>
#include <amxmisc>
#include <fun>
public plugin_init () {
register_plugin("Vampire Mode","0.01","Zidd")
register_clcmd("amx_vampire", "vampire", ADMIN_LEVEL_A, " : Sets Vampire Mode")
register_event("deathmsg","deathmsge","a")
}
public vampire (id) {
new health=get_user_health( id )
// What Should Happen When You Reach 1 HP
if ( health == 1 ) {
client_print (1,print_center,"You Thirst For Blood Go Get Some Kills For More HP!")
return PLUGIN_HANDLED
}
//What Should Happen When You Have More Than 1 HP
if (health < 1) {
set_user_health (id,(health -=1))
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public deathmsge () {
new id = read_data( 1 ) ;
new health = get_user_health ( id ) ;
set_user_health ( id,(health += 10))
client_print(1,print_center,"Your Victims Blood Gets You 10 HP")
return PLUGIN_HANDLED
}