|
发表于 2008-5-4 06:04:22
|
显示全部楼层
来自 中国–香港
回复: 请问下谁有3分钟后天黑插件,。带语音和自动发夜视镜的
Post by wangyang5008
多谢楼上的兄弟的帮助,能不能带个信息提示的。 幫你找到了信息 要別的就自己看看改吧
[php]#include <amxmodx>
#include <cstrike>
public plugin_init()
{
register_plugin("Give_CT_Defuse_All_Nvg","0.0.01","kevin14144")
register_event("ResetHUD", "player_spawn", "be")
register_event("ResetHUD", "player_spawn2", "be")
register_event("ResetHUD", "Announcement", "be")
}
public player_spawn(id)
set_task(1.0,"Give_CT_Nvg",id)
public player_spawn2(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
public Give_CT_Nvg(id)
if (is_user_alive(id) && get_user_team(id))
cs_set_user_nvg(id) //給所有人
public Announcement(id){
if (is_user_alive(id))
switch(get_user_team(id))
{
case CS_TEAM_CT:
{
//set_hudmessage(0, 0, 255, 0.42, 0.53, 2, 6.0, 4.0, 0.1, 0.2, -1)
//show_hudmessage(id, "CT每個人都有拆包;警察--歹徒 皆有 *夜視鏡*")
client_print(id,print_chat, "CT每個人都有拆包;警察--歹徒 皆有 *夜視鏡*")
}
case CS_TEAM_T:
{
//set_hudmessage(255, 0, 0, 0.42, 0.53, 2, 6.0, 4.0, 0.1, 0.2, -1)
//show_hudmessage(id, "警察--歹徒 皆有 *夜視鏡*")
client_print(id,print_chat, "警察--歹徒 皆有 *夜視鏡*")
}
case CS_TEAM_SPECTATOR:
return PLUGIN_CONTINUE;
}
return PLUGIN_CONTINUE
}[/php] |
|