Help. - 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)
+--- Thread: Help. (
/showthread.php?tid=311087)
Help. - Nicholas. - 15.01.2012
How do I make a text appear on the screen after my player spawns? Example - 'Welcome to Los Santos'
Re: Help. -
Scenario - 15.01.2012
GameTextForPlayer
Re: Help. - Nicholas. - 15.01.2012
I am new to scripting, I need some help actually coding it.
Any examples please?
Re: Help. -
Scenario - 15.01.2012
https://sampwiki.blast.hk/wiki/GameTextForPlayer
Re: Help. -
Kar - 15.01.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
GameTextForPlayer(playerid, "~n~~w~Welcome To Los Santos", 6000, 3);
return 1;
}
Re: Help. - Nicholas. - 15.01.2012
Okay, I done it and it worked.
Thank you.
Re: Help. - Nicholas. - 15.01.2012
How do I change the text position on the screen?
Re: Help. -
Scarred - 15.01.2012
Using
which creates a new line (which, depending on where you use it (before/after the text) will move it up or down.
If you want a different style, change GameTextForPlayer(playerid, "~n~~w~Welcome To Los Santos", 6000,
3); the 3 in that to whatever style you would like.
In order to check the available styles, go to this page;
https://sampwiki.blast.hk/wiki/GameTextStyle
Re: Help. -
coole210 - 15.01.2012
There are limited positions. They are called "Styles" in game texts. For positions, you use Textdraws.
https://sampwiki.blast.hk/wiki/GameTextStyle
Re: Help. - Nicholas. - 15.01.2012
Thank you for all the help. I've done it and works well.