引用 | 編輯
ruby2009g
2013-06-11 17:03 |
樓主
▼ |
||
x0
求上回合的所以武器在下回合消失的插件例如 : ======================================= 當上回合有一把m4a1,usp,小刀,1x手榴彈,2x閃光彈 我想所有玩家都在下回合全部消失(當然小刀不算啦) 下回合有usp(玩一般正常都會送),小刀 ======================================= 希望有人能夠幫幫我吧! 如果你覺得我有什麼不禮貌的地方請指出,我會作出修改 x0
|
引用 | 編輯
點解會咁既
2013-06-11 17:09 |
1樓
▲ ▼ |
回合開始時用
strip_user_weapons(id) //武器清空 give_item(id, "weapon_knife") //給小刀 give_item(id, "weapon_usp") //給USP ???是想這樣吧 x1 |
引用 | 編輯
11922911
2013-06-18 20:18 |
3樓
▲ |
試試看這個
複製程式 #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 } } x0 |