PHP Code:
public showStatus(id)
{
if(get_pcvar_num(cvar_playerinfo)) {
if(is_user_alive(id)) {
static name[33], pid
pid = read_data(2)
if( !is_user_alive( pid ) )
return PLUGIN_HANDLED;
get_user_name(pid, name, 32)
switch(cs_get_user_team(pid)) {
case CS_TEAM_T: {
set_hudmessage(100, 255, 0, -1.0, 0.80, 0, 0.01, 3.0, 0.01, 0.01, -1)
ShowSyncHudMsg(id, hudmessage4, "Kaliniai: %s [%d HP]", name, get_user_health(pid))
}
case CS_TEAM_CT: {
set_hudmessage(0, 255, 100, -1.0, 0.80, 0, 0.01, 3.0, 0.01, 0.01, -1)
ShowSyncHudMsg(id, hudmessage4, "Priziuretojai: %s [%d HP]", name, get_user_health(pid))
}
}
}
}
return PLUGIN_HANDLED;
}
Edit: I didn't read hornet's post :/
__________________