跳到主要内容

IsPlayerTextDrawVisible

注意

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

描述

检测指定玩家的专属文本绘图是否处于显示状态。

参数名说明
playerid要检测的玩家 ID
PlayerText:textid玩家文本绘图的 ID

返回值

true - 文本绘图当前可见

false - 文本绘图当前不可见

示例代码

new PlayerText:welcomeText[MAX_PLAYERS]; // 创建玩家文本绘图存储数组

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "欢迎来到我的OPEN.MP服务器");
PlayerTextDrawShow(playerid, welcomeText[playerid]);

if (IsPlayerTextDrawVisible(playerid, welcomeText[playerid]))
{
// 玩家文本绘图已显示
}
else
{
// 玩家文本绘图未显示
}
}

相关函数