跳到主要内容

PlayerTextDrawSetPos

注意

这个函数是在omp v1.1.0.2612中添加的,在以前的版本中不起作用!

描述

设置玩家文本绘图的屏幕坐标位置(X 轴和 Y 轴)

参数名说明
playerid玩家的 ID
PlayerText:textid要设置位置的玩家文本绘图的 ID
Float:xX 轴坐标(浮点型)
Float:yY 轴坐标(浮点型)

示例

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;
}

相关函数