Cześć
Chodzi dokładnie o to, że kiedy żyjemy lub nie żyjemy to wszystko jest ok i pokazuje prawidłowo kto ma Vipa a kto nie.
Problem pojawia się jak kogoś oglądamy to nawet osoba, która nie posiada Vipa pokazuje, że jednak go ma

Kod sma:
public taskDisplayRank(id){
id-=TASK_SHOWCLASS;
if(!is_user_alive(id))
{
new target = entity_get_int(id, EV_INT_iuser2)
new name[32];
get_user_name(target, name, 31)
if(target == 0)
return PLUGIN_CONTINUE;
static stats[8], body[8];
get_user_stats(target, stats, body);
set_hudmessage(255, 255, 255, 0.6, -1.0);
show_hudmessage(id, "Nick: %s^nRanga: %s^nZabojstw: %d^nVIP: %s",name, get_rankname(stats[STATS_KILLS ]), stats[STATS_KILLS ], get_user_flags(id) & ADMIN_FLAG ? "Tak" : "Nie");
return PLUGIN_CONTINUE;
}
new name[32];
get_user_name(id, name, 31)
static stats[8], body[8];
get_user_stats(id, stats, body);
set_hudmessage(0, 255, 0, 0.02, 0.28);
show_hudmessage(id, "Nick: %s^nRanga: %s^nZabojstw: %d^nVIP: %s",name,get_rankname(stats[STATS_KILLS ]), stats[STATS_KILLS ], get_user_flags(id) & ADMIN_FLAG ? "Tak" : "Nie");
return PLUGIN_CONTINUE;
}
Prosiłbym o podpowiedź czy dobrze jest to zrobione ![]()
Dzięki


Dodatki SourceMod












