uuuuuh, thank you! works fine! Havenīt been here for some days. I like the smooth switching after opening the player panel
Due to my starsign I am a greedy human being
, so I have 2 more "requests"
:
1. highlight dead survivors(prefix "-" and Name in other color): "- Skorpion1976"
2. highlight TANKS (postfix "(TANK)" after the infected name.
Both for bots and real players.
I already tried to code but jesus, I have no clue what to do
.
This is how far Iīve come, for survivors:
PHP Code:
for (new j = 1; j <= MaxClients; j++)
{
if (PlayerTeam[j] == TEAM_SURVIVOR)
{
count++;
if ((PlayerBot[j]) && IsPlayerAlive(PlayerBot[j]))
{
Format(text, sizeof(text), "%d. %s", count, PlayerName[j]);
DrawPanelText(playerpanel, text);
}
else if ((PlayerBot[j]) && !IsPlayerAlive(PlayerBot[j]))
{
Format(text, sizeof(text), "%d. - %s", count, PlayerName[j]);
DrawPanelText(playerpanel, text);
}
/*else
{
Format(text, sizeof(text), "%d. %s (%d)", count, PlayerName[j], j);
DrawPanelText(playerpanel, text);
} */
}
}
This for TANK:
PHP Code:
for (new j = 1; j <= MaxClients; j++)
{
if (PlayerTeam[j] == TEAM_INFECTED)
{
count++;
if (PlayerBot[j])
{
if(GetEntProp(PlayerBot[j], Prop_Send, "m_zombieClass") == 8) //If Player = tank
{
Format(text, sizeof(text), "%d. %s (TANK)", count, PlayerName[j]);
DrawPanelText(playerpanel, text);
}
else if (GetEntProp(PlayerBot[j], Prop_Send, "m_zombieClass") != 8) //everyone else
{
Format(text, sizeof(text), "%d. %s", count, PlayerName[j]);
DrawPanelText(playerpanel, text);
}
}
else
{
Format(text, sizeof(text), "%d. %s (%d)", count, PlayerName[j], j);
DrawPanelText(playerpanel, text);
}
}
}
The engine shows nothing at all in the game, when I open the player panel. I never see "player name (TANK)" in the infected menu. The "-" dead prefix either gets shown when the players are incap or it gets shown all the time I open the panel. I think itīs not a big deal to get these informations into the panel. Any chance you can do that? Want donation?