Для полного доступа ко всем функциям форума, Вам необходимо зарегистрироваться и авторизоваться.
Картинки в iPleomax
Лучший Ответ JoKeR2020 , 15 Август 2015 - 23:47
Выставляешь шрифт "Image".
В Text пишешь что-то подобное: txd_name:texture_name
txd_name - имя TXD файла.
Поддерживаются:
%ПапкаИгры%/models/hud.txd
А так же все TXD файлы из папки %ПапкаИгры%/models/txd/
texture_name имя текстуры из TXD файла.
Можно узнать через TXD Workshop.
Пример по скрину:
hud:radar_burgerShot
Таким способом мы поставим на текстдрав иконку бургер шота.
- You can now use SA-MP's TextDraw system with a special font ID to draw on-screen sprites from the single-player missions.
if(strcmp(cmd, "/tdsprite",true) == 0) { new Text:txtSprite1; txtSprite1 = TextDrawCreate(200.0, 220.0, "samaps:map"); // Text is txdfile:texture TextDrawFont(txtSprite1, 4); // Font ID 4 is the sprite draw font TextDrawColor(txtSprite1,0xFFFFFFFF); TextDrawTextSize(txtSprite1,200.0,200.0); // Text size is the Width:Height TextDrawShowForPlayer(playerid,txtSprite1); return 1; }
By setting the font ID to 4 and the text to txdfile:texture you can draw a single on-screen sprite. Possible values for txdfile are:
- hud: Textures from the game's hud.txd
- samaps: San Andreas map textures included with SA-MP in the samaps.txd file in the SAMP folder.
- Any txd file and texture found in the models\txd folder in your GTA San Andreas directory.
#1
offline
Отправлено 15 Август 2015 - 20:26
offline
#2
offline
Отправлено 15 Август 2015 - 23:47
offline
Выставляешь шрифт "Image".
В Text пишешь что-то подобное: txd_name:texture_name
txd_name - имя TXD файла.
Поддерживаются:
%ПапкаИгры%/models/hud.txd
А так же все TXD файлы из папки %ПапкаИгры%/models/txd/
texture_name имя текстуры из TXD файла.
Можно узнать через TXD Workshop.
[attachment=1208:Безымянный.png]
Пример по скрину:
Таким способом мы поставим на текстдрав иконку бургер шота.
- You can now use SA-MP's TextDraw system with a special font ID to draw on-screen sprites from the single-player missions.
By setting the font ID to 4 and the text to txdfile:texture you can draw a single on-screen sprite. Possible values for txdfile are:
- hud: Textures from the game's hud.txd
- samaps: San Andreas map textures included with SA-MP in the samaps.txd file in the SAMP folder.
- Any txd file and texture found in the models\txd folder in your GTA San Andreas directory.
Сообщение отредактировал JoKeR2020: 15 Август 2015 - 23:49
Количество пользователей, читающих эту тему: 1
0 пользователей, 0 гостей, 0 анонимных
-
Alexa (1)


Тема закрыта
Сообщений: 30
Регистрация: