hi there i have this function. what i want to make is if i died is all cool it shows me the dmg. but i want that it show me too when im alive only for some secs.
i mean if the rounds ends the player spawn again and like for 10 or 15 segs that player is availible to see the dmg of the last round latter of that time u can't.
if any 1 could help me with this
PHP Code:
public cmd_dmg(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, "ch")
new tmp_hits, tmp_dmg, check
for (i=0; i<playerCount; i++)
{
player = Players[i]
tmp_hits = pug_hits[id][player]
if( tmp_hits )
{
check = 1
tmp_dmg = pug_dmg[id][player]
if(player == id) client_print(id,print_chat,"%s %L",pug_header,id,"PUG_AUX_DMG_SELF",tmp_hits,tmp_dmg)
else
{
get_user_name(player,name, 31)
client_print(id,print_chat,"%s %L","-->",id,"PUG_AUX_DMG",tmp_hits,tmp_dmg,name)
}
}
}
tmp_hits = pug_hits[id][0]
if(tmp_hits)
{
tmp_dmg = pug_dmg[id][0]
client_print(id,print_chat,"%s %L",pug_header,id,"PUG_AUX_DMG","WorldSpawn",tmp_hits,tmp_dmg)
}
else if(!check) client_print(id,print_chat,"%s %L",pug_header,id,"PUG_AUX_NODMG")
}
return PLUGIN_HANDLED
}