07.10.2014, 03:44
OnGameModeInit that goes, see if it works for you
EDIT: OnPlayerConnect this goes for the player to connect textdraw see below and in OnPlayerSpawn so that you are clear the TextDraw to reappear
in OnPlayerSpawn
pawn Код:
new Text:Textdraw1[MAX_PLAYERS];
new Text:LoginDraw1[MAX_PLAYERS];
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
TextDrawShowForPlayer(i, LoginDraw1); // that can not be this O.o
LoginDraw1[i] = TextDrawCreate(660.125000, 459.416717, "usebox");
TextDrawLetterSize(LoginDraw1[i], 0.000000, -13.643054);
TextDrawTextSize(LoginDraw1[i], -3.875000, 0.000000);
TextDrawAlignment(LoginDraw1[i], 1);
TextDrawColor(LoginDraw1[i], 0);
TextDrawUseBox(LoginDraw1[i], true);
TextDrawBoxColor(LoginDraw1[i], 180);
TextDrawSetShadow(LoginDraw1[i], 0);
TextDrawSetOutline(LoginDraw1[i], 0);
TextDrawBackgroundColor(LoginDraw1[i], -2139062017);
TextDrawFont(LoginDraw1[i], 0);
TextDrawShowForPlayer(i, Textdraw1); // that can not be this O.o
Textdraw1[i] = TextDrawCreate(86.875000, 347.666503, "Exclusive Gaming v3.0");
TextDrawLetterSize(Textdraw1[i], 0.926875, 3.513334);
TextDrawAlignment(Textdraw1[i], 1);
TextDrawColor(Textdraw1[i], 16777215);
TextDrawSetShadow(Textdraw1[i], 0);
TextDrawSetOutline(Textdraw1[i], 1);
TextDrawBackgroundColor(Textdraw1[i], 51);
TextDrawFont(Textdraw1[i], 2);
TextDrawSetProportional(Textdraw1[i], 1);
}
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw1[i]);
TextDrawShowForPlayer(playerid, LoginDraw1[i]);
pawn Код:
TextDrawHideForPlayer(playerid, Textdraw1[i]);
TextDrawHideForPlayer(playerid, LoginDraw1[i]);