17.12.2011, 18:06
Where is the ID's of the 0.3d stuff that allows you to use cards, map icons ect on the Textdraw.
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. |