can someone help me with this plugin its my first attempt at a plugin im getting compile errors when i try to compile it
Code:
//Vampire Mod
//By Zidd
//A Version Half-life engine version of an unreal tournament mutator
#include <amxmodx>
#include <amxmisc>
#include <fun>
public vampire (id) {
new makekill (get_user_frags)
new health (get_user_health)
if (health=1) {
client_print (1,print_center,"You Thirst For Blood Go Get Some Kills For More HP!")
set_task (0.5,"vampire",id)
return PLUGIN_HANDLED
}
if (health<=2) {
set_user_health (health -1)
set_task (0.5,"vampire",id)
return PLUGIN_HANDLED
}
if (makekill +1) {
set_user_health (health +10)
client_print (1,print_center,"You Get 10HP For The Kill You Just Made")
set_task (0.5,"vampire",id)
return PLUGIN_HANDLED
}
}
public plugin_init {
register_plugin("Vampire Mode", "0.01", "Zidd")
register_clcmd("amx_vampire", "vampire", " : toggles Vampire mode"
}