跳到主要内容

PlayerTextDrawGetOutline

注意

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

描述

获取玩家文本绘图的轮廓大小

参数名说明
playerid玩家的 ID
PlayerText:textid要获取轮廓大小的玩家文本绘图的 ID

返回值

返回玩家文本绘图的轮廓大小。

示例

new PlayerText:welcomeText[MAX_PLAYERS];

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

new outline = PlayerTextDrawGetOutline(playerid, welcomeText[playerid]);
// outline = 1
return 1;
}

相关函数