AreInteriorWeaponsAllowed
注意
这个函数是在omp v1.1.0.2612中添加的,在以前的版本中不起作用!
描述
检测当前服务器是否允许在室内场景使用武器。
返回值
true:允许使用武器
false:禁止使用武器
示例
if (AreInteriorWeaponsAllowed())
{
// 执行与室内武器相关的操作
}
相关函数
- AllowInteriorWeapons: 控制室内武器使用权限开关
这个函数是在omp v1.1.0.2612中添加的,在以前的版本中不起作用!
检测当前服务器是否允许在室内场景使用武器。
true:允许使用武器
false:禁止使用武器
if (AreInteriorWeaponsAllowed())
{
// 执行与室内武器相关的操作
}