#1

How do I make a text appear on the screen after my player spawns? Example - 'Welcome to Los Santos'
Reply
#2

GameTextForPlayer
Reply
#3

I am new to scripting, I need some help actually coding it.
Any examples please?
Reply
#4

https://sampwiki.blast.hk/wiki/GameTextForPlayer
Reply
#5

pawn Код:
public OnPlayerSpawn(playerid)
{
    GameTextForPlayer(playerid, "~n~~w~Welcome To Los Santos", 6000, 3);
    return 1;
}
Reply
#6

Okay, I done it and it worked.
Thank you.
Reply
#7

How do I change the text position on the screen?
Reply
#8

Using
pawn Код:
~n~
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
Reply
#9

There are limited positions. They are called "Styles" in game texts. For positions, you use Textdraws.

https://sampwiki.blast.hk/wiki/GameTextStyle
Reply
#10

Thank you for all the help. I've done it and works well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)