跳到主要内容

PlayerTextDrawSetOutline

描述

设置玩家文本绘图的轮廓。轮廓颜色需通过PlayerTextDrawBackgroundColor进行修改

参数名说明
playerid要设置轮廓的玩家 ID
PlayerText:textid要设置轮廓的玩家文本绘图的 ID
outlineSize轮廓的厚度(0 表示无轮廓,数值越大轮廓越粗)

返回值

该函数不返回特定值。

示例

new PlayerText:welcomeText[MAX_PLAYERS];

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

PlayerTextDrawShow(playerid, welcomeText[playerid]);
return 1;
}

相关函数