跳到主要内容

GetPlayerGhostMode

注意

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

描述

获取玩家当前幽灵模式的激活状态

参数名说明
playerid需要检测的玩家 ID

返回值

true - 幽灵模式已激活

false - 幽灵模式未激活

示例代码

new string[64];
format(string, sizeof(string), "你的幽灵模式已%s", GetPlayerGhostMode(playerid) ? "启用" : "禁用");
SendClientMessage(playerid, -1, string);

相关函数