26.12.2011, 14:37
For example;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][pTeam] == T_ATT)
{
format(iStr, sizeof(iStr), "%s{D3D3D3}[%d]{8B1A1A}%s{D3D3D3}-{8B1A1A}DMG{D3D3D3}:%d{D3D3D3}-{8B1A1A}Kills{D3D3D3}:%d\n",iStr,i,PNames[i],gRoundDamage[i],Player[i][prScore]);
}
if(Player[i][pTeam] == T_DEF)
{
format(iStr, sizeof(iStr), "%s{D3D3D3}[%d]{104E8B}%s{D3D3D3}-{104E8B}DMG{D3D3D3}:%d{D3D3D3}-{104E8B}Kills{D3D3D3}:%d\n",iStr,i,PNames[i],gRoundDamage[i],Player[i][prScore]);
}
}
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][pTeam] == T_ATT)
{
format(iStr, sizeof(iStr), "%s{D3D3D3}[%d]{8B1A1A}%s{D3D3D3}-{8B1A1A}DMG{D3D3D3}:%d{D3D3D3}-{8B1A1A}Kills{D3D3D3}:%d\n",iStr,i,PNames[i],gRoundDamage[i],Player[i][prScore]);
}
if(Player[i][pTeam] == T_DEF)
{
format(iStr, sizeof(iStr), "%s{D3D3D3}[%d]{104E8B}%s{D3D3D3}-{104E8B}DMG{D3D3D3}:%d{D3D3D3}-{104E8B}Kills{D3D3D3}:%d\n",iStr,i,PNames[i],gRoundDamage[i],Player[i][prScore]);
}
}
}