Вопросы

Andy
Постоянный

Здравствуйте, заменил TextDraw капта на сервере, все отлично но проблема в том что полоски должны быть по цвету банды, и сделать это у меня не получается

 

Спойлер

Capture[playerid][9] = CreatePlayerTextDraw(playerid, 123.500000, 271.433349, "usebox");
PlayerTextDrawLetterSize(playerid, Capture[playerid][9], 0.000000, 0.892591);
PlayerTextDrawTextSize(playerid, Capture[playerid][9], 117.500000, 0.000000);
PlayerTextDrawAlignment(playerid, Capture[playerid][9], 1);
PlayerTextDrawColor(playerid, Capture[playerid][9], 0);
PlayerTextDrawUseBox(playerid, Capture[playerid][9], true);
PlayerTextDrawBoxColor(playerid, Capture[playerid][9], 16777215);
PlayerTextDrawSetShadow(playerid, Capture[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, Capture[playerid][9], 0);
PlayerTextDrawFont(playerid, Capture[playerid][9], 0);

 

Спойлер

format(GZInfo[i][strcpt],3,"%s", GetGangColor(napad));
PlayerTextDrawSetString(m,Capture[m][9],GZInfo[i][strcpt]);
PlayerTextDrawShow(m, Capture[m][9]);

 

Спойлер

GetGangColor(g)
{
	new zx;
	switch(g)
	{
		case 5: zx = 0xDAA520AA;
		case 6: zx = 0xCD0000AA;
		case 14: zx = 0x1874CDAA;
		case 15: zx = 0x009900AA;
		case 17: zx = 0x00b4e1AA;
		case 12: zx = 0xCC00FFAA;
		case 18: zx = 0x6666ffAA;
		case 13: zx = 0xffcd00AA;
		default: zx = 0xEEE8CD65;
	}
	return zx;
}

 

 

x8LybdraaC8.jpg.a71be48cc46ed86cb0b910b7354649bc.jpg

Поделиться сообщением


Ссылка на сообщение

3 ответа на этот вопрос

  • 0
Andy
Постоянный
14 минут назад, SCRIPTMAN сказал:

Используй PlayerTextDrawColor

Спойлер

PlayerTextDrawShow(m, Capture[m][9]);
PlayerTextDrawShow(m, Capture[m][10]);
PlayerTextDrawShow(m, Capture[m][11]);
PlayerTextDrawShow(m, Capture[m][12]);

PlayerTextDrawColor(m, Capture[m][9], GetGangColor(napad));
PlayerTextDrawColor(m, Capture[m][10], GetGangColor(napad));
PlayerTextDrawColor(m, Capture[m][11], GetGangColor(vlad));
PlayerTextDrawColor(m, Capture[m][12], GetGangColor(vlad));

 

Предполагаю что так, не работает.

Закрыто.

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации ответов.
  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • Daf
      От Daf
      Здравствуйте, сливаю вам cef спидометр! 
      Автор: я
       
      pawn код
      CEF. Создайте текстовый файл с любым названием, но добавьте расширение .html. Затем вставьте в него код, который приведен ниже.
      отдельно индикаторы
      cef_execute_js(playerid, browser, "samp.updateIndicators({left: 0, right: 1, highbeam: 0})"); cef_execute_js(playerid, browser, "samp.updateIndicators({left: 0, right: 1, highbeam: 0})");  
    • Arutr
      От Arutr
      Не могу найти объект который на фото, если кто знает на пишите ID этого объекта