Witam, próbuję zrobić osobny plugin przez który mógłbym cvarem ustawić HP na daną flagę np. mam VIP'a na flagę T, i chciałbym mu przez cvar dodać hp, dałoby się tak?
Mam taki kod, dałoby się tak że po 5 sekundach ustawia tylko wybranej fladze?
#include <amxmodx> #include <amxmisc> #include <hamsandwich> #include <fun> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Administrator" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Spawn, "player", "respawn", 1); } public respawn(id) { if(is_user_connected(id)) { if(is_user_alive(id)) { set_task(5.0,"hp", id) } } } public hp(id) { set_user_health(id , 100) }