Перейти к основному содержимому

PlayerTextDrawSetPos

Предупреждение

В версии omp v1.1.0.2612 добавлено следующее: функция. В более ранних версиях это не работает!

Description​

Sets the position (in-screen x & y) of a player-textdraw.

NameDescription
playeridThe ID of the player.
Playertext:textidThe ID of the player-textdraw to set the position of.
Float:xThe X coordinate.
Float:yThe Y coordinate.

Examples​

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
PlayerTextDrawShow(playerid, welcomeText[playerid]);

PlayerTextDrawSetPos(playerid, welcomeText[playerid], 200.0, 250.0);
return 1;
}