跳到主要内容

TextDrawShowForAll

描述

为所有玩家显示指定的文本绘图。

名称描述
Text:textid需要显示的文本绘图 ID
TextDrawCreate函数创建时返回。

返回值

true - 函数执行成功

false - 函数执行失败(指定的文本绘图不存在)

示例

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(240.0, 580.0, "示例文本");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/showtd", true))
{
TextDrawShowForAll(gMyTextdraw);
return 1;
}
return 0;
}

相关函数