Здравствуйте, подскажите пожалуйста как правильно сделать чтобы свечение могли видить только инфецированые
C++:
public task_spawned(taskid)
{
static id
id = taskid - TASKID_SPAWNDELAY
if(is_user_alive(id))
{
if(g_welcomemsg[id])
{
g_welcomemsg[id] = false
static message[192]
formatex(message, 191, "%L", id, "WELCOME_TXT")
replace(message, 191, "#Version#", VERSION)
client_print(id, print_chat, message)
}
if(g_suicide[id])
{
g_suicide[id] = false
user_silentkill(id)
remove_task(TASKID_CHECKSPAWN + id)
client_print(id, print_chat, "%L", id, "SUICIDEPUNISH_TXT")
return
}
if(get_pcvar_num(cvar_weaponsmenu) && g_roundstarted && g_showmenu[id])
is_user_bot(id) ? bot_weapons(id) : display_equipmenu(id)
if(!g_gamestarted)
client_print(id, print_chat, "%L %L", id, "SCAN_RESULTS", id, g_preinfect[id] ? "SCAN_INFECTED" : "SCAN_CLEAN")
else
{
if(fm_get_user_team(id) == TEAM_T)
cs_set_player_team(id, CS_TEAM_CT)
}
if(g_preinfect[id])
{
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
}
}
Последнее редактирование: