12.12.2018, 00:24
Hello there, I have a problem, because I did a TextDraw in ITD, which was perfect, but when I enable it in the game, it gets all buggy, I do not know why (I'm not missing anything, I myself checked part by part)
It should be like this (Image of ITD)
https://i.imgur.com/HRVESpS.jpg
but is like that
https://i.imgur.com/i8zvwUs.png
These are the functions I use to enable TXDs
and here is the command I use to call TXDs
Does anyone know the reason for the strange deformation that happened?
It should be like this (Image of ITD)
https://i.imgur.com/HRVESpS.jpg
but is like that
https://i.imgur.com/i8zvwUs.png
These are the functions I use to enable TXDs
PHP код:
new PlayerText:ClassChanger[MAX_PLAYERS][30];
LoadClassChange(playerid)
{
ClassChanger[playerid][1] = CreatePlayerTextDraw(playerid, 405.500000, 111.633316, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][1], 0.000000, 22.356815);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][1], 232.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][1], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][1], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][1], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][1], 102);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][1], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][1], 0);
ClassChanger[playerid][2] = CreatePlayerTextDraw(playerid, 314.000000, 145.855560, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][2], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][2], 238.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][2], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][2], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][2], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][2], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][2], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][2], 0);
ClassChanger[playerid][3] = CreatePlayerTextDraw(playerid, 397.000000, 146.233337, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][3], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][3], 320.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][3], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][3], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][3], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][3], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][3], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][3], 0);
ClassChanger[playerid][4] = CreatePlayerTextDraw(playerid, 315.000000, 180.455596, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][4], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][4], 238.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][4], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][4], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][4], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][4], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][4], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][4], 0);
ClassChanger[playerid][5] = CreatePlayerTextDraw(playerid, 397.000000, 179.833343, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][5], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][5], 320.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][5], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][5], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][5], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][5], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][5], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][5], 0);
ClassChanger[playerid][6] = CreatePlayerTextDraw(playerid, 315.000000, 214.055572, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][6], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][6], 238.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][6], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][6], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][6], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][6], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][6], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][6], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][6], 0);
ClassChanger[playerid][7] = CreatePlayerTextDraw(playerid, 397.000000, 214.055572, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][7], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][7], 320.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][7], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][7], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][7], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][7], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][7], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][7], 0);
ClassChanger[playerid][8] = CreatePlayerTextDraw(playerid, 315.000000, 248.900070, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][8], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][8], 238.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][8], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][8], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][8], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][8], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][8], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][8], 0);
ClassChanger[playerid][9] = CreatePlayerTextDraw(playerid, 397.000000, 248.277770, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][9], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][9], 320.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][9], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][9], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][9], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][9], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][9], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][9], 0);
ClassChanger[playerid][10] = CreatePlayerTextDraw(playerid, 315.000000, 283.744445, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][10], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][10], 238.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][10], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][10], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][10], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][10], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][10], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][10], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][10], 0);
ClassChanger[playerid][11] = CreatePlayerTextDraw(playerid, 397.000000, 283.744476, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][11], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][11], 320.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][11], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][11], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][11], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][11], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][11], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][11], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][11], 0);
ClassChanger[playerid][12] = CreatePlayerTextDraw(playerid, 273.000000, 118.222213, "CLASSES");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][12], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][12], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][12], -1);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][12], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][12], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][12], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][12], 2);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][12], 1);
ClassChanger[playerid][13] = CreatePlayerTextDraw(playerid, 242.500000, 148.088882, "Sobrevivente");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][13], 0.293499, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][13], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][13], -1);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][13], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][13], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][13], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][13], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][13], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][13], true);
ClassChanger[playerid][14] = CreatePlayerTextDraw(playerid, 257.500000, 182.688919, "Mћdico");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][14], 0.293499, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][14], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][14], -16711681);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][14], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][14], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][14], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][14], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][14], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][14], true);
ClassChanger[playerid][15] = CreatePlayerTextDraw(playerid, 248.500000, 216.044479, "Engenheiro");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][15], 0.293499, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][15], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][15], 1724658175);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][15], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][15], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][15], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][15], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][15], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][15], true);
ClassChanger[playerid][16] = CreatePlayerTextDraw(playerid, 257.500000, 250.644500, "Ladrљo");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][16], 0.293499, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][16], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][16], 13421823);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][16], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][16], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][16], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][16], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][16], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][16], true);
ClassChanger[playerid][17] = CreatePlayerTextDraw(playerid, 249.500000, 285.866760, "Terrorista");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][17], 0.293499, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][17], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][17], -16776961);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][17], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][17], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][17], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][17], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][17], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][17], true);
ClassChanger[playerid][18] = CreatePlayerTextDraw(playerid, 330.500000, 148.733398, "Mercenrio");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][18], 0.293499, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][18], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][18], -65281);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][18], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][18], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][18], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][18], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][18], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][18], true);
ClassChanger[playerid][19] = CreatePlayerTextDraw(playerid, 335.000000, 181.466735, "Mec™nico");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][19], 0.293498, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][19], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][19], 1605042175);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][19], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][19], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][19], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][19], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][19], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][19], true);
ClassChanger[playerid][20] = CreatePlayerTextDraw(playerid, 334.500000, 216.688964, "Assassino");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][20], 0.293498, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][20], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][20], -5963521);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][20], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][20], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][20], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][20], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][20], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][20], true);
ClassChanger[playerid][21] = CreatePlayerTextDraw(playerid, 341.000000, 250.666778, "Militar");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][21], 0.293498, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][21], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][21], 8388863);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][21], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][21], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][21], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][21], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][21], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][21], true);
ClassChanger[playerid][22] = CreatePlayerTextDraw(playerid, 337.500000, 285.889038, "Caњador");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][22], 0.293498, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][22], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][22], 6737151);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][22], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][22], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][22], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][22], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][22], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][22], true);
ClassChanger[playerid][23] = CreatePlayerTextDraw(playerid, 405.500000, 317.588897, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][23], 0.000000, 2.693210);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][23], 232.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][23], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][23], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][23], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][23], 102);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][23], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][23], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][23], 0);
ClassChanger[playerid][24] = CreatePlayerTextDraw(playerid, 397.000000, 316.100036, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][24], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][24], 320.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][24], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][24], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][24], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][24], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][24], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][24], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][24], 0);
ClassChanger[playerid][25] = CreatePlayerTextDraw(playerid, 337.000000, 318.244598, "Lendrio");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][25], 0.293498, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][25], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][25], -1576992769);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][25], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][25], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][25], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][25], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][25], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][25], true);
ClassChanger[playerid][26] = CreatePlayerTextDraw(playerid, 389.500000, 92.711112, "X");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][26], 0.449999, 1.600000);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][26], 390.000000, 15.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][26], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][26], -1);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][26], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][26], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][26], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][26], 2);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][26], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][26], true);
ClassChanger[playerid][27] = CreatePlayerTextDraw(playerid, 315.000000, 316.100036, "usebox");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][27], 0.000000, 2.083949);
PlayerTextDrawTextSize(playerid, ClassChanger[playerid][27], 238.000000, 0.000000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][27], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][27], 0);
PlayerTextDrawUseBox(playerid, ClassChanger[playerid][27], true);
PlayerTextDrawBoxColor(playerid, ClassChanger[playerid][27], -215);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][27], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][27], 0);
PlayerTextDrawFont(playerid, ClassChanger[playerid][27], 0);
ClassChanger[playerid][28] = CreatePlayerTextDraw(playerid, 251.500000, 318.600128, "Pistoleiro");
PlayerTextDrawLetterSize(playerid, ClassChanger[playerid][28], 0.293499, 1.432000);
PlayerTextDrawAlignment(playerid, ClassChanger[playerid][28], 1);
PlayerTextDrawColor(playerid, ClassChanger[playerid][28], -1717960705);
PlayerTextDrawSetShadow(playerid, ClassChanger[playerid][28], 0);
PlayerTextDrawSetOutline(playerid, ClassChanger[playerid][28], 1);
PlayerTextDrawBackgroundColor(playerid, ClassChanger[playerid][28], 51);
PlayerTextDrawFont(playerid, ClassChanger[playerid][28], 1);
PlayerTextDrawSetProportional(playerid, ClassChanger[playerid][28], 1);
PlayerTextDrawSetSelectable(playerid, ClassChanger[playerid][28], true);
for(new i = 1; i < 29; i++)
{
PlayerTextDrawHide(playerid, ClassChanger[playerid][i]);
}
}
SupaloaddClassChange(playerid)
{
for(new i = 0; i < 29; i++)
{
PlayerTextDrawShow(playerid, ClassChanger[playerid][i]);
}
}
UnloadClassChange(playerid)
{
for(new i = 0; i < 29; i++)
{
PlayerTextDrawHide(playerid, ClassChanger[playerid][i]);
}
}
PHP код:
CMD:trocar(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 1.0, 212.69, 1822.85, 6.41))
return SendClientMessage(playerid, RED, "[ > ] Vocк nгo estб na бrea correta para realizar esta aзгo.");
LoadClassChange(playerid);
SupaloaddClassChange(playerid);
SelectTextDraw(playerid, 0xa6a8a6FF);
return 1;
}