Adding textdraw when player connects
#1

I add this per-player textdraw to OnPlayerConnect:

Код:
    new PlayerText:TDEditor_PTD[MAX_PLAYERS][4];

	TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 319.200073, 73.520034, "Loguetown");
	PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.697600, 3.237692);
	PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 2);
	PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1963817217);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);
	PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 1);
	PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
	PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 0);
	PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);

	TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 317.600097, 107.866683, "A_Fresh_Experience");
	PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.500000, 2.092803);
	PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 2);
	PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1973270273);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
	PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 1);
	PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
	PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 0);
	PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);

	TDEditor_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 375.999969, 45.488937, "");
	PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][2], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][2], 118.000000, 132.000000);
	PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][2], 1);
	PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][2], -1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 0);
	PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][2], 0);
	PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][2], 0);
	PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][2], 5);
	PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][2], 0);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 0);
	PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][2], 595);
	PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][2], -20.000000, 0.000000, -50.000000, 0.200000);
	PlayerTextDrawSetPreviewVehCol(playerid, TDEditor_PTD[playerid][2], 1, 1);

	TDEditor_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 158.999923, 62.413387, "");
	PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][3], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][3], 84.000000, 103.000000);
	PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][3], 1);
	PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][3], -1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 0);
	PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][3], 0);
	PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][3], 0);
	PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][3], 5);
	PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][3], 0);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 0);
	PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][3], 484);
	PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][3], -30.000000, 0.000000, 63.000000, 0.200000);
	PlayerTextDrawSetPreviewVehCol(playerid, TDEditor_PTD[playerid][3], 1, 1);
It doesn't really show the textdraw when I am connected and greeted with the login dialog. Am I doing something wrong or?
Reply


Messages In This Thread
Adding textdraw when player connects - by Sublime - 03.11.2016, 09:41
Re: Adding textdraw when player connects - by Jelly23 - 03.11.2016, 09:43
Re: Adding textdraw when player connects - by Sublime - 03.11.2016, 15:07
Re: Adding textdraw when player connects - by Jelly23 - 03.11.2016, 15:11
Re: Adding textdraw when player connects - by NeXoR - 03.11.2016, 15:24
Re: Adding textdraw when player connects - by Jelly23 - 03.11.2016, 15:39
Re: Adding textdraw when player connects - by Sublime - 03.11.2016, 16:16
Re: Adding textdraw when player connects - by Jelly23 - 03.11.2016, 16:22
Re: Adding textdraw when player connects - by Sublime - 03.11.2016, 16:30
Re: Adding textdraw when player connects - by Jelly23 - 03.11.2016, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)