求上回合的所以武器在下回合消失的插件

Home Home
引用 | 編輯 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
引用 | 編輯 ak47klo
2013-06-12 19:57
2樓
  
下面是引用 derek199 於 2013-06-11 17:09 發表的: 到引言文
回合開始時用
strip_user_weapons(id) //武器清空
give_item(id, "weapon_knife") //給小刀
give_item(id, "weapon_usp") //給USP

???是想這樣吧

正確
但是你還是寫給他吧(本人懶~~~
他好像不太懂插件

獻花 x0
引用 | 編輯 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