|
发表于 2006-10-29 19:52:20
|
显示全部楼层
来自 中国–广东–深圳–罗湖区
回复: 尋求自動發放警察拆彈刀
[php]
#include <amxmodx>
#include <cstrike>
public plugin_init()
{
register_plugin("Give_CT_Defuse","0.0.01","AMXX")
register_event("ResetHUD", "player_spawn", "be")
}
public player_spawn(id)
set_task(1.0,"Give_CT_Defuse",id)
public Give_CT_Defuse(id)
if (is_user_alive(id) && get_user_team(id)==2)
cs_set_user_defuse(id) // 给CT拆弹器
[/php]
测试一下。。 |
|