hello
As the title says I would like coloring players in
[L4D & L4D2] Custom Player Stats v1.4B121
like [L4D2] tystats (Co-op)
if I know that it would be easiest to use the latter, but I've been using custom stats players a long time and would be a shame to start again. I have little idea of programming, but I can not or even can be done ... this snippet adapt to custom player stats.
PHP Code:
public bool TyColorC(int client)
{
if (GetClientTeam(client) == 2)
{
if (IsPlayerAlive(client))
{
ig_autoBalance += 2;
if (ig_pointsC[client] > 230000)
{
ig_autoBalance += 4;
SetEntityRenderColor(client, 0, 0, 0, 252);
return true;
}
if (ig_pointsC[client] > 180000)
{
ig_autoBalance += 3;
SetEntityRenderColor(client, 255, 51, 204, 255);
return true;
}
if (ig_pointsC[client] > 120000)
{
ig_autoBalance += 3;
SetEntityRenderColor(client, 164, 79, 25, 255);
return true;
}
if (ig_pointsC[client] > 70000)
{
ig_autoBalance += 2;
SetEntityRenderColor(client, 0, 153, 51, 255);
return true;
}
if (ig_pointsC[client] > 30000)
{
ig_autoBalance += 2;
SetEntityRenderColor(client, 0, 51, 255, 255);
return true;
}
if (ig_pointsC[client] > 10000)
{
ig_autoBalance += 2;
SetEntityRenderColor(client, 0, 204, 255, 255);
return true;
}
if (ig_pointsC[client] > 0)
{
ig_autoBalance += 1;
return true;
}
}
}
return false;
}
Part obviously need only color not ig_autoBalance
Someone would be so kind as to tell me if possible and get help?
Thanks