help please
#1

Hey guys. I want this:

format(string, sizeof(string), "~r~ UD Statement");
GameTextForPlayer(i, string, 3000, 1);


Get on this position of my screen:
48,420

is this possible?
Reply
#2

In order to place a text somewhere specifically you need to use TextDraws.

See the following wiki subjects: TextDrawCreate, TextDrawShowForPlayer, and TextDrawHideForPlayer.
Reply
#3

Код HTML:
// This variable is used to store the id of the textdraw
// so that we can use it throught the script
new Text:welcomeText; 
 
public OnGameModeInit()
{
    // This line is used to create the textdraw. 
    // Note: This creates a textdraw without any formatting.
    welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");
    return 1;
}
 
public OnPlayerConnect(playerid)
{
    //This is used to show the player the textdraw when they connect.
    TextDrawShowForPlayer(playerid,welcomeText);
}
Reply
#4

Then how to make someyhing with textdraws that goes away after 3 seconds?
Reply
#5

Use a timer.

SetTimerEx.
Reply
#6

I have already Tried that, But it doesn't work

Can you give me a example please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)