hawk he can get the subtraction of hp to work the whole problem was it didnt slap the person so what you posted only fixs a typo i wrote and does nothing to help his problem
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
public plugin_init()
{
register_plugin("Say Lol And Get Slapped", "1.0", "eXec")
register_concmd("say lol", "lol")
register_cvar("slaplol_on", "1")
}
public lol(id)
if(get_cvar_num("slaplol_on"))
user_slap(id,1)
will work
__________________