help please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help please (
/showthread.php?tid=157545)
help please -
bartje01 - 07.07.2010
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?
Re: help please -
(.Aztec); - 07.07.2010
In order to place a text somewhere specifically you need to use TextDraws.
See the following wiki subjects:
TextDrawCreate,
TextDrawShowForPlayer, and
TextDrawHideForPlayer.
Re: help please -
TheKingOfSamp - 07.07.2010
Код 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);
}
Re: help please -
bartje01 - 07.07.2010
Then how to make someyhing with textdraws that goes away after 3 seconds?
Re: help please -
(.Aztec); - 07.07.2010
Use a timer.
SetTimerEx.
Re: help please -
bartje01 - 07.07.2010
I have already Tried that, But it doesn't work
Can you give me a example please.