foreach(Player, i)
{
if(PVar[i][InRound] && PVar[i][Team] != T_BUM && PVar[i][Team] != T_AWAY && PVar[i][Team] != SUB_ATT && PVar[i][Team] != SUB_DEF)
{
if(PVar[i][Team] == T_ATT)
{
Line[i] = TextDrawCreate(566.00, AttStartY, "_");
Name[i] = TextDrawCreate(561.00, AttNameStartY, "_");
format(AttNameStr, sizeof(AttNameStr), "~r~%s", pName(i));
TextDrawSetString(Name[i], AttNameStr);
AttStartY += 6.40;
AttNameStartY += 6.40;
//TextDrawShowForPlayer(i, Name[i]);
}
else if(PVar[i][Team] == T_DEF)
{
Line[i] = TextDrawCreate(5.00, DefStartY, "_");
Name[i] = TextDrawCreate(74.00, DefNameStartY, "_");
format(DefNameStr, sizeof(DefNameStr), "~r~%s", pName(i));
TextDrawSetString(Name[i], DefNameStr);
DefStartY += 6.40;
DefNameStartY += 6.40;
//TextDrawShowForPlayer(i, Name[i]);
}
TextDrawShowForPlayer(i, Name[i]);
}
}
if(PVar[i][InRound] && PVar[i][Team] != T_BUM && PVar[i][Team] != T_AWAY && PVar[i][Team] != SUB_ATT && PVar[i][Team] != SUB_DEF)
if(PVar[i][Team] == T_ATT)
else if(PVar[i][Team] == T_DEF)
I don't think so at TheKiller and John Cooper's post, because
pawn Код:
|
foreach(Player, i) //This loops through all players
{
if(PVar[i][InRound] && PVar[i][Team] != T_BUM && PVar[i][Team] != T_AWAY && PVar[i][Team] != SUB_ATT && PVar[i][Team] != SUB_DEF) //This part doesn't really matter, just checks if the player is in teams
{
if(PVar[i][Team] == T_ATT)
{
Line[i] = TextDrawCreate(566.00, AttStartY, "_"); //This creates the players textdraw
Name[i] = TextDrawCreate(561.00, AttNameStartY, "_"); //This creates the players second td
format(AttNameStr, sizeof(AttNameStr), "~r~%s", pName(i));
TextDrawSetString(Name[i], AttNameStr);
AttStartY += 6.40;
AttNameStartY += 6.40;
//TextDrawShowForPlayer(i, Name[i]);
}
else if(PVar[i][Team] == T_DEF)
{
Line[i] = TextDrawCreate(5.00, DefStartY, "_");
Name[i] = TextDrawCreate(74.00, DefNameStartY, "_");
format(DefNameStr, sizeof(DefNameStr), "~r~%s", pName(i));
TextDrawSetString(Name[i], DefNameStr);
DefStartY += 6.40;
DefNameStartY += 6.40;
//TextDrawShowForPlayer(i, Name[i]);
}
TextDrawShowForPlayer(i, Name[i]); //Here it only shows the textdraw for the player that we are currently on.
}
}