复制程式
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <cstrike>
#include <fakemeta_util>
#include <hamsandwich>
#define PLUGIN "Set Ts Use Knife"
#define VERSION "1.0"
#define AUTHOR "FalseSpy"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "HamPlayerSpawn", 1)
}
public HamPlayerSpawn(id)
{
if (!is_user_alive(id)) return;
fm_strip_user_weapons(id)
if (cs_get_user_team(id) == CS_TEAM_T)
fm_give_item(id, "weapon_knife")
}
这算是其中一种方法吧
无法避免可以再次购买武器