跳到主要内容

ResetPlayerWeapons

描述

移除指定玩家的所有武器。

参数名说明
playerid需要移除武器的玩家 ID

返回值

1 - 函数执行成功。

0 - 函数执行失败。通常表示指定玩家不存在。

示例

public OnPlayerDeath(playerid, killerid, WEAPON:reason)
{
// 移除击杀者的所有武器
ResetPlayerWeapons(killerid);
return 1;
}

注意要点

提示

如需移除单个武器,请使用SetPlayerAmmo将对应武器的弹药量设为 0

相关函数