Hello, Coders..
I have a problem with my Plugin, after i move my crosshair on a player, i have his name and health. The Hud Message (Remove after 3secondes)
I want only, if i move my crosshair from the player, then remove the Hud Message (Not after 3 secondes)
PHP Code:
public player_status(id)
{
static type, player, CsTeams:team, name[32], health
type = read_data(1)
player = read_data(2)
switch(type)
{
case(1):
{
ClearSyncHud(id, g_HudSync[1][_hudsync])
}
case(2):
{
team = cs_get_user_team(player)
if(team != CS_TEAM_T)
return PLUGIN_HANDLED
health = get_user_health(player)
get_user_name(player, name, charsmax(name))
set_hudmessage(255, 0, 0, -1.0, -1.0, 2, 1.0, 3, 0.1, 0.1, 4)
show_hudmessage(id, "%L", LANG_SERVER, "JBE_PRISONER_STATUS", name, health)
if(team != CS_TEAM_CT)
return PLUGIN_HANDLED
health = get_user_health(player)
get_user_name(player, name, charsmax(name))
set_hudmessage(0, 191, 255, -1.0, -1.0, 2, 1.0, 3, 0.1, 0.1, 4)
show_hudmessage(id, "%L", LANG_SERVER, "JBE_GUARD_STATUS", name, health)
}
}
return PLUGIN_HANDLED
}