下面是引用 derek199 于 2013-06-11 17:09 发表的: 回合开始时用strip_user_weapons(id) //武器清空give_item(id, "weapon_knife") //给小刀give_item(id, "weapon_usp") //给USP???是想这样吧
#include <amxmodx> #include <fun> #include <fakemeta> #include <hamsandwich> const m_fHasSurvivedLastRound = 113 public plugin_init() { RegisterHam( Ham_Spawn, "player", "CBasePlayer__Spawn" ) // Don't hook 'Post' forward } // Pre hook public CBasePlayer__Spawn( id ) { // Has survived last round if( is_user_alive( id ) ) { strip_user_weapons( id ) set_pdata_int( id, m_fHasSurvivedLastRound, false ) // Make map give default items } }