ArePlayerWeaponsAllowed
注意
这个函数是在omp v1.1.0.2612中添加的,在以前的版本中不起作用!
描述
检测指定玩家是否被允许使用武器。
参数名 | 说明 |
---|---|
playerid | 需要检测的玩家 ID |
返回值
true - 允许使用武器
false - 禁止使用武器
示例
public OnPlayerSpawn(playerid)
{
if (ArePlayerWeaponsAllowed(playerid))
{
// 执行武器相关操作
}
return 1;
}
相关函数
- AllowPlayerWeapons: 控制玩家武器权限开关