PHP код:
new PlayerText:dlscore[MAX_PLAYERS][6];
disconnect:
for(new l = 0; l < 6; l++)
PlayerTextDrawHide(playerid,dlscore[playerid][l]);
spawn:
for(new l = 0; l < 6; l++)
PlayerTextDrawShow(playerid,dlscore[playerid][l]);
connect:
dlscore[playerid][0] = CreatePlayerTextDraw(playerid,487.101013, 102.000022, "=");//5
PlayerTextDrawLetterSize(playerid,dlscore[playerid][0], 4.863469, 0.608331);
PlayerTextDrawAlignment(playerid,dlscore[playerid][0], 1);
PlayerTextDrawColor(playerid,dlscore[playerid][0], 16711935);
PlayerTextDrawSetShadow(playerid,dlscore[playerid][0], 0);
PlayerTextDrawSetOutline(playerid,dlscore[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid,dlscore[playerid][0], 51);
PlayerTextDrawFont(playerid,dlscore[playerid][0], 2);
PlayerTextDrawSetProportional(playerid,dlscore[playerid][0], 1);
dlscore[playerid][1] = CreatePlayerTextDraw(playerid,487.101013, 120.749992, "=");//5
PlayerTextDrawLetterSize(playerid,dlscore[playerid][1], 4.863469, 0.608331);
PlayerTextDrawAlignment(playerid,dlscore[playerid][1], 1);
PlayerTextDrawColor(playerid,dlscore[playerid][1], 16711935);
PlayerTextDrawSetShadow(playerid,dlscore[playerid][1], 0);
PlayerTextDrawSetOutline(playerid,dlscore[playerid][1], 1);
PlayerTextDrawBackgroundColor(playerid,dlscore[playerid][1], 51);
PlayerTextDrawFont(playerid,dlscore[playerid][1], 2);
PlayerTextDrawSetProportional(playerid,dlscore[playerid][1], 1);
dlscore[playerid][2] = CreatePlayerTextDraw(playerid,497.101013, 106.166671, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid,dlscore[playerid][2], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid,dlscore[playerid][2], 111.508056, 16.333328);
PlayerTextDrawAlignment(playerid,dlscore[playerid][2], 1);
PlayerTextDrawColor(playerid,dlscore[playerid][2], -2147483393);
PlayerTextDrawSetShadow(playerid,dlscore[playerid][2], 0);
PlayerTextDrawSetOutline(playerid,dlscore[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid,dlscore[playerid][2], -1378294017);
PlayerTextDrawFont(playerid,dlscore[playerid][2], 4);
//этот текстдрав который не обновляется
dlscore[playerid][3] = CreatePlayerTextDraw(playerid,499.443725, 106.750007, "");//этот текстдрав который не обновляется
PlayerTextDrawLetterSize(playerid,dlscore[playerid][3], 0.207304, 1.471662);
PlayerTextDrawAlignment(playerid,dlscore[playerid][3], 1);
PlayerTextDrawColor(playerid,dlscore[playerid][3], -1);
PlayerTextDrawSetShadow(playerid,dlscore[playerid][3], 0);
PlayerTextDrawSetOutline(playerid,dlscore[playerid][3], 1);
PlayerTextDrawBackgroundColor(playerid,dlscore[playerid][3], 255);
PlayerTextDrawFont(playerid,dlscore[playerid][3], 2);
PlayerTextDrawSetProportional(playerid,dlscore[playerid][3], 1);
dlscore[playerid][4] = CreatePlayerTextDraw(playerid,497.622272, 278.250030, "");
PlayerTextDrawLetterSize(playerid,dlscore[playerid][4], 0.270556, 1.564999);
PlayerTextDrawAlignment(playerid,dlscore[playerid][4], 1);
PlayerTextDrawColor(playerid,dlscore[playerid][4], -1);
PlayerTextDrawSetShadow(playerid,dlscore[playerid][4], 0);
PlayerTextDrawSetOutline(playerid,dlscore[playerid][4], 1);
PlayerTextDrawBackgroundColor(playerid,dlscore[playerid][4], 51);
PlayerTextDrawFont(playerid,dlscore[playerid][4], 2);
PlayerTextDrawSetProportional(playerid,dlscore[playerid][4], 1);
dlscore[playerid][5] = CreatePlayerTextDraw(playerid,497.811131, 296.916656, "");
PlayerTextDrawLetterSize(playerid,dlscore[playerid][5], 0.263059, 1.529999);
PlayerTextDrawAlignment(playerid,dlscore[playerid][5], 1);
PlayerTextDrawColor(playerid,dlscore[playerid][5], -1);
PlayerTextDrawSetShadow(playerid,dlscore[playerid][5], 0);
PlayerTextDrawSetOutline(playerid,dlscore[playerid][5], 1);
PlayerTextDrawBackgroundColor(playerid,dlscore[playerid][5], 51);
PlayerTextDrawFont(playerid,dlscore[playerid][5], 2);
PlayerTextDrawSetProportional(playerid,dlscore[playerid][5], 1);
В Таймер:
new hex[36];
format(hex,sizeof(hex),".:SCR: %d / LVL: %d:.",GetPlayerScore(playerid),GetPVarInt(playerid,"Kills_Lvl"));
PlayerTextDrawSetString(playerid,dlscore[playerid][3], hex);