下面是引用 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 } }