Displaying logo
#1

Hey so I have entered few servers in the new SAMP version, and I have seen they used their own logos when entering, how do I import an image from outside to the game?
Reply
#2

This topic might help you also try to use a g-o-o-g-l-e you will find alot of topics related to textdraw.

https://sampforum.blast.hk/showthread.php?tid=647499
Reply
#3

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
This topic might help you also try to use a g-o-o-g-l-e you will find alot of topics related to textdraw.

https://sampforum.blast.hk/showthread.php?tid=647499


So to insert a model into the game, you use AddSimpleModel. For textdraws, you use the same thing.

First create your model with your custom texdraw

AddSimpleModel(-1,19379,-2018,"crane.dff","freightcrane1.txd");


Second, create your textdraw in the script.

new Text:customtextdraw;
customtextdraw = TextDrawCreate(200.0, 220.0, "mdl-2018:mylogo_256");
TextDrawFont(customtextdraw, 4);
TextDrawColor(customtextdraw,0xFFFFFFFF);
TextDrawTextSize(customtextdraw,200.0,200.0);
TextDrawSetSelectable(customtextdraw, 1);
TextDrawShowForPlayer(playerid,customtextdraw);

Definitions:


"-2018" - The ID of your custom model/texture
"mylogo_256" - The name of your image in the .txd
"4" - The font of your sprite/txddraw
"200.0,200.0" - Width and Height
Reply
#4

Actually I had the same question when I started with .DL, then I saw this tutorial:

I hope you'll get it.
https://sampforum.blast.hk/showthread.php?tid=651543
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)