18.05.2014, 07:53
In you GameModeInit you dont need foreach because it textdraw already showed for everyone.
pawn Код:
new PlayerText:Stats[10][MAX_PLAYERS]; //On to top under includes
public OnGameModeInit()
{
Stats[0] = (playerid,118.000000, 122.000000, "~l~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~N~~N~~N~~N~~N~~N~");
PlayerTextDrawAlignment(playerid,Stats[0], 2);
PlayerTextDrawBackgroundColor(playerid,Stats[0], 255);
PlayerTextDrawFont(playerid,Stats[0], 1);
PlayerTextDrawLetterSize(playerid,Stats[0], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Stats[0], -1);
PlayerTextDrawSetOutline(playerid,Stats[0], 0);
PlayerTextDrawSetProportional(playerid,Stats[0], 1);
PlayerTextDrawSetShadow(playerid,Stats[0], 1);
PlayerTextDrawUseBox(playerid,Stats[0], 1);
PlayerTextDrawBoxColor(playerid,Stats[0], 110);
PlayerTextDrawTextSize(playerid,Stats[0], -1.000000, 212.000000);
PlayerTextDrawSetSelectable(playerid,Stats[0], 0);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Stats[0]);
return 1;
}