How to create a background from custom textures?
#4

You can use Magic. TXD then import a background picture that you can edit with photoshop as well. Anything from logos to background pictures can be imported.

Opening the Magic. TXD you have to create a new txd with a name and import your image. Once you done that the loading part should be easy.

Note: To create the textdraw you'd have to use the name of the image that was imported inside the txd file and not the txd's name.

An example of my textdraw

pawn Код:
player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ] = CreatePlayerTextDraw( playerid, 200.587890, 200.333343, "mdl-2001:logo" );
    PlayerTextDrawFont( playerid, player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ], 4 );
    PlayerTextDrawColor( playerid, player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ], 0xFFFFFFFF );
    PlayerTextDrawTextSize( playerid, player_data[ playerid ][ e_PLAYER_TEXTDRAW ][ 16 ], 300, 200 );
Also in one txd file you can have multiple backgrounds or textures. I'm not a pro nor know the limit but that's how I got it to work. There might be a "better way", that I don't know of.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)