|
发表于 2007-3-28 04:05:25
|
显示全部楼层
来自 中国–香港
回复: 僵尸插件
希望樓主會留意一下...此插件如果用於娛果服...應該連同每局金錢和每局夜視一起才對....
以下是每局夜視的原碼
#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
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset136 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2052\\ f0\\ fs16 \n\\ par }
*/ |
|