Hello im making my first plugin and i need some advice on it
main idea is that admin write in chat hp <name> <hpamount> and it gives
how to make it what am doing wrong? i know that i can make it with set_task but then i cant enter specified amount
please as much simplest solution
Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("hp", "hppakvietimas", ADMIN_BAN, "hp amount")
register_event("Health", "gyv", "be", "1>0");
public hpkvietimas(client, gyv)
{
if(get_user_flags(id) & ADMIN_BAN)
{
set_user_health(id , gyv)
}