Check if the player still alive, if yes then hide the hud message and if dead, show the hud messgae.
I try to use is_user_alive, but I don`t know what I should put in {}.
Secondly, my intention is to show the player info who the dead player looking, but now this code is show the info about myself.
Can someone help me with this two question?
Code:
public DHM(id)
{
// if (is_user_alive(id))
// {
//
// }
for (new id = 1; id <= SzMaxPlayers; id++)
{
new SzHostname[64], SzTimer[32] // Get Hostname & Time
get_cvar_string("Hostname",SzHostname,63) // Get Hostname
get_time("%Y/%m/%d - %H:%M:%S", SzTimer,31) // Get Time
new SzNextMap[32]
get_cvar_string("amx_nextmap", SzNextMap, 31)
new SzTimeLeft = get_timeleft()
new SzName[128] // Get Player Name
get_user_name(id, SzName, 127) // Get Player Name
new SzAuthID[32] // Get STEAMID
get_user_authid(id, SzAuthID, 32) // Get STEAMID
new SzScores = (get_user_frags(id) - get_user_deaths(id)) // Get Player Scores
new SzIP[16] // Get Player IP
static SzCountry[32] // Get Player Country
get_user_ip(id, SzIP, 15, 1) // Get Player IP
geoip_country(SzIP, SzCountry, 45) // Get Player Country By Using The IP
new SzPing, SzLoss // Get Player Ping
get_user_ping(id, SzPing, SzLoss) // Get Player Ping
set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), 0.05, 0.60, 0, 1.0, 1.0, 0.1, 0.2, -1)
ShowSyncHudMsg(id, hudsync, "%s ^n Nextmap: %s ^n Timeleft: %d:%02d ^n Time: %s ^n Player Name: %s ^n SteamID: %s ^n Score: %d ^n Country: %s", SzHostname, SzNextMap, SzTimeLeft / 60, SzTimeLeft % 60, SzTimer, SzName, SzAuthID, SzScores, SzCountry)
}
}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others