03.11.2016, 15:07
Quote:
After creating them, you gotta show them by using PlayerTextDrawShow, and no, they are just created under OnPlayerConnect, doesn't mean they will show up.
|
Код:
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); PlayerTextDrawShow(playerid, TDEditor_PTD);
Код:
PlayerTextDrawShow(playerid, TDEditor_PTD);