Hi! I think this post to help me able to remember the hp for the last round and enforcing when i'm alive and i am the hp for the last round! My code is this:
PHP Code:
public cmd_hpteam(id)
{
if(is_user_alive(id) && id != 0) { pug_msg_tmp_empty(id,"PUG_CMD_NOTALLOWED"); }
else
{
static Players[32], name[32]
new playerCount, i, player
get_players(Players, playerCount, "ah")
new teamid = pug_get_client_team(id)
for (i=0; i<playerCount; i++)
{
player = Players[i]
if(teamid == pug_get_client_team(player) ) continue;
get_user_name(player,name,31)
client_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_HP",is_user_alive( player ) ? get_user_health(player) : 0, get_user_armor(player), name)
}
}
return PLUGIN_HANDLED
}
It should create a variable? For that i remember the hp for the last round?
This is what records the hp player: get_user_health(player)
I can do to which i save the hp? And you can see in a new round?