---
title: "HideGameTextForPlayer | open.mp"
description: "停止向玩家显示游戏文本样式。"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/HideGameTextForPlayer
language: zh-CN
---

# HideGameTextForPlayer

注意

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

## 描述

停止向指定玩家显示特定样式的游戏文本。

| 参数 | 说明 |
| --- | --- |
| playerid | 需要隐藏游戏文本的玩家 ID |
| style | 要隐藏的文本[样式](https://omp.itsneufox.com/zh-CN/docs/scripting/resources/gametextstyles) |

## 返回值

此函数不返回特定值。

## 示例

```c
public OnPlayerDeath(playerid, killerid, WEAPON:reason)
{
    HideGameTextForPlayer(playerid, 3);
    return 1;
}
```

## 相关函数

-   [HideGameTextForAll](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/HideGameTextForAll): 停止为所有玩家显示游戏文本样式
-   [GameTextForPlayer](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GameTextForPlayer): 向玩家显示游戏文本
-   [GameTextForAll](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GameTextForAll): 向所有玩家显示游戏文本
-   [GetGameText](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GetGameText): 获取指定游戏文本样式的所有信息
-   [HasGameText](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/HasGameText): 玩家当前是否显示着指定样式的游戏文本？
-   [TextDrawHideForAll](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/TextDrawHideForAll): 为所有玩家隐藏文本绘图
