CUSTOM Texture as Textdraw
#2

i dont think that this can be done.

as i know:

it only can read textures from models folder (in SA main directory) and samaps.txd from SAMP folder.

i dont think your idea will work..

EDIT:

a quote from kalcor in a topic:

Quote:

Optional client update SA-MP 0.3d RC5-3

- You can now use SA-MP's TextDraw system with a special font ID to draw on-screen sprites from the single-player missions.

pawn Код:
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.

original topic: https://sampforum.blast.hk/showthread.php?tid=282775
Reply


Messages In This Thread
CUSTOM Texture as Textdraw - by SEnergy - 13.08.2012, 19:45
Re: CUSTOM Texture as Textdraw - by Kirollos - 13.08.2012, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)