Стать модератором портала: (КЛИК)

[TD] Текстдрав онлайна банд/кол-во территорий банды

Softik

Новичок
Пользователь
Регистрация
03.12.2019
Сообщения
5
Репутация
1
ID ВКонтакте
#1
От плюсика не откажусь :)

Ко всем new:

Код:
new Text:Inf_TD[1]; // Глобальный текстдрав
new PlayerText:Inf_PTD[MAX_PLAYERS][22]; // Текстдравы для игрока

В OnGameModeInit:

PHP:
Inf_TD[0] = TextDrawCreate(566.4276, 250.6666, "Gang_Informer"); // пусто
TextDrawLetterSize(Inf_TD[0], 0.1886, 0.8008);
TextDrawAlignment(Inf_TD[0], 1);
TextDrawColor(Inf_TD[0], -1);
TextDrawBackgroundColor(Inf_TD[0], 255);
TextDrawFont(Inf_TD[0], 1);
TextDrawSetProportional(Inf_TD[0], 1);
TextDrawSetShadow(Inf_TD[0], 0);[/CODE]


В OnPlayerConnect:

[CODE]Inf_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 558.2946, 255.9165, "LD_SPAC:white"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][0], 58.0000, 61.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][0], 454761471);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][0], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][0], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][0], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][0], 0);

Inf_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 562.9797, 249.4999, "LD_SPAC:white"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][1], 48.0000, 74.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][1], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][1], 454761471);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][1], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][1], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][1], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][1], 0);

Inf_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 555.9520, 246.5832, "LD_BEAT:chit"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][2], 14.0000, 18.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][2], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][2], 454761471);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][2], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][2], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][2], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][2], 0);

Inf_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 604.6779, 246.5832, "LD_BEAT:chit"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][3], 14.0000, 18.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][3], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][3], 454761471);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][3], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][3], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][3], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][3], 0);

Inf_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 555.9520, 308.4168, "LD_BEAT:chit"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][4], 14.0000, 18.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][4], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][4], 454761471);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][4], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][4], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][4], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][4], 0);

Inf_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 604.6779, 308.4168, "LD_BEAT:chit"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][5], 14.0000, 18.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][5], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][5], 454761471);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][5], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][5], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][5], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][5], 0);

Inf_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 559.7001, 259.9998, "LD_SPAC:white"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][6], 27.0000, 29.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][6], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][6], 7668906);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][6], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][6], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][6], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][6], 0);

Inf_PTD[playerid][7] = CreatePlayerTextDraw(playerid, 587.8115, 259.9998, "LD_SPAC:white"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][7], 27.0000, 29.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][7], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][7], -1474734678);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][7], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][7], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][7], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][7], 0);

Inf_PTD[playerid][8] = CreatePlayerTextDraw(playerid, 559.7001, 290.3332, "LD_SPAC:white"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][8], 27.0000, 29.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][8], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][8], 58457258);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][8], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][8], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][8], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][8], 0);

Inf_PTD[playerid][9] = CreatePlayerTextDraw(playerid, 587.8115, 290.3332, "LD_SPAC:white"); // пусто
PlayerTextDrawTextSize(playerid, Inf_PTD[playerid][9], 27.0000, 29.0000);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][9], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][9], -58719318);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][9], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][9], 4);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][9], 0);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][9], 0);

Inf_PTD[playerid][10] = CreatePlayerTextDraw(playerid, 572.9873, 262.3332, "Grove"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][10], 0.1718, 0.8883);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][10], 2);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][10], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][10], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][10], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][10], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][10], 0);

Inf_PTD[playerid][11] = CreatePlayerTextDraw(playerid, 601.5668, 262.3332, "Ballas"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][11], 0.1718, 0.8883);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][11], 2);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][11], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][11], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][11], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][11], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][11], 0);

Inf_PTD[playerid][12] = CreatePlayerTextDraw(playerid, 573.4558, 292.0833, "Aztec"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][12], 0.1718, 0.8883);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][12], 2);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][12], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][12], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][12], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][12], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][12], 0);

Inf_PTD[playerid][13] = CreatePlayerTextDraw(playerid, 601.5668, 292.0833, "Vagos"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][13], 0.1718, 0.8883);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][13], 2);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][13], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][13], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][13], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][13], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][13], 0);

Inf_PTD[playerid][14] = CreatePlayerTextDraw(playerid, 561.7427, 302.5834, "zones:_~n~online:"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][14], 0.1057, 0.7425);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][14], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][14], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][14], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][14], 2);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][14], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][14], 0);

Inf_PTD[playerid][15] = CreatePlayerTextDraw(playerid, 589.3853, 303.1667, "zones:_~n~online:"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][15], 0.1057, 0.7425);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][15], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][15], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][15], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][15], 2);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][15], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][15], 0);

Inf_PTD[playerid][16] = CreatePlayerTextDraw(playerid, 561.7427, 272.2500, "zones:_~n~online:"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][16], 0.1057, 0.7425);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][16], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][16], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][16], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][16], 2);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][16], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][16], 0);

Inf_PTD[playerid][17] = CreatePlayerTextDraw(playerid, 589.3853, 272.8334, "zones:_~n~online:"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][17], 0.1057, 0.7425);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][17], 1);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][17], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][17], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][17], 2);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][17], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][17], 0);

Inf_PTD[playerid][18] = CreatePlayerTextDraw(playerid, 585.1688, 272.2500, "0_~N~0"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][18], 0.1990, 0.7424);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][18], 3);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][18], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][18], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][18], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][18], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][18], 0);

Inf_PTD[playerid][19] = CreatePlayerTextDraw(playerid, 613.7484, 272.8334, "0_~N~0"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][19], 0.1990, 0.7424);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][19], 3);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][19], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][19], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][19], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][19], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][19], 0);

Inf_PTD[playerid][20] = CreatePlayerTextDraw(playerid, 584.7003, 302.5833, "0_~N~0"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][20], 0.1990, 0.7424);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][20], 3);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][20], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][20], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][20], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][20], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][20], 0);

Inf_PTD[playerid][21] = CreatePlayerTextDraw(playerid, 613.2799, 303.1667, "0_~N~0"); // пусто
PlayerTextDrawLetterSize(playerid, Inf_PTD[playerid][21], 0.1990, 0.7424);
PlayerTextDrawAlignment(playerid, Inf_PTD[playerid][21], 3);
PlayerTextDrawColor(playerid, Inf_PTD[playerid][21], -1);
PlayerTextDrawBackgroundColor(playerid, Inf_PTD[playerid][21], 255);
PlayerTextDrawFont(playerid, Inf_PTD[playerid][21], 1);
PlayerTextDrawSetProportional(playerid, Inf_PTD[playerid][21], 1);
PlayerTextDrawSetShadow(playerid, Inf_PTD[playerid][21], 0);

Скриншот: *клик*
Автор TextDraw`a: Future Studio (Define)
Автор темы: Softik
 
Последнее редактирование модератором:

Administrator

Президент
Регистрация
01.01.2015
Сообщения
1,429
Репутация
14
ID ВКонтакте
#2
@Softik, Используйте ббкод [ PHP ] для вставки pawn кода чтобы была синтаксическая подсветка.