07.10.2014, 04:06
pawn Код:
new Text:LoginTextDraw[MAX_PLAYERS];
new Text:LoginTextDraw2[MAX_PLAYERS];
for(new i = 0; i < MAX_PLAYERS; i++)
{
// TextDrawShowForPlayer(i, LoginTextDraw); // this goes under onplayerconnect
LoginTextDraw[i] = TextDrawCreate(660.125000, 459.416717, "usebox");
TextDrawLetterSize(LoginTextDraw[i], 0.000000, -13.643054);
TextDrawTextSize(LoginTextDraw[i], -3.875000, 0.000000);
TextDrawAlignment(LoginTextDraw[i], 1);
TextDrawColor(LoginTextDraw[i], 0);
TextDrawUseBox(LoginTextDraw[i], true);
TextDrawBoxColor(LoginTextDraw[i], 180);
TextDrawSetShadow(LoginTextDraw[i], 0);
TextDrawSetOutline(LoginTextDraw[i], 0);
TextDrawBackgroundColor(LoginTextDraw[i], -2139062017);
TextDrawFont(LoginTextDraw[i], 0);
// TextDrawShowForPlayer(i, LoginTextDraw2); // this goes under onplayerconnect
LoginTextDraw2[i] = TextDrawCreate(86.875000, 347.666503, "Exclusive Gaming v3.0");
TextDrawLetterSize(LoginTextDraw2[i], 0.926875, 3.513334);
TextDrawAlignment(LoginTextDraw2[i], 1);
TextDrawColor(LoginTextDraw2[i], 16777215);
TextDrawSetShadow(LoginTextDraw2[i], 0);
TextDrawSetOutline(LoginTextDraw2[i], 1);
TextDrawBackgroundColor(LoginTextDraw2[i], 51);
TextDrawFont(LoginTextDraw2[i], 2);
TextDrawSetProportional(LoginTextDraw2[i], 1);
}
pawn Код:
TextDrawShowForPlayer(playerid, LoginTextDraw[i]);
TextDrawShowForPlayer(playerid, LoginTextDraw2[i]);
EDIT: Sorry, I decided to change the variable names