求个小插件:中文彩色对讲机
找了两个,是英文的,又没有源码。哪位能发个中文的吗?英文源码也行啊,谢谢了 #include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "color radio"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "UnKnow"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_message(get_user_msgid("TextMsg"),"color_radio")
}
public color_radio(msgid, msgDest, msgEnt){
new argNum = get_msg_args()
if (argNum!=5) return PLUGIN_CONTINUE
if (get_msg_argtype(1)!=ARG_BYTE) return PLUGIN_CONTINUE
new arg1=get_msg_arg_int(1)
if (arg1!=5) return PLUGIN_CONTINUE
new arg3
get_msg_arg_string(3,arg3,255)
if(equal(arg3,"#Game_radio")){
new arg4,arg5
get_msg_arg_string(4,arg4,32)
get_msg_arg_string(5,arg5,128)
new saymsg
if(equal(arg5,"#Go_go_go")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队开始行动!",arg4)
}
else if(equal(arg5,"#Stick_together_team")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队靠拢,准备行动!",arg4)
}
else if(equal(arg5,"#Team_fall_back")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队撤退!",arg4)
}
else if(equal(arg5,"#Cover_me")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 掩护我!",arg4)
}
else if(equal(arg5,"#You_take_the_point")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 你去控制该地区!",arg4)
}
else if(equal(arg5,"#Hold_this_position")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 各小组保持现在阵型!",arg4)
}
else if(equal(arg5,"#Regroup_team")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 重新组队!",arg4)
}
else if(equal(arg5,"#Follow_me")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 跟着我!",arg4)
}
else if(equal(arg5,"#Taking_fire")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 敌方火力凶猛,需要支援!",arg4)
}
else if(equal(arg5,"#Get_in_position_and_wait")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队就位,等我冲出去时掩护我!",arg4)
}
else if(equal(arg5,"#Storm_the_front")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队正面快速突击!",arg4)
}
else if(equal(arg5,"#Report_in_team")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队报告目前状况!",arg4)
}
else if(equal(arg5,"#Affirmative")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 收到!",arg4)
}
else if(equal(arg5,"#Roger_that")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 明白!",arg4)
}
else if(equal(arg5,"#Enemy_spotted")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 发现敌人!",arg4)
}
else if(equal(arg5,"#Need_backup")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 需要支援!",arg4)
}
else if(equal(arg5,"#Sector_clear")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 该地区安全!",arg4)
}
else if(equal(arg5,"#In_position")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 我已经就位!",arg4)
}
else if(equal(arg5,"#Reporting_in")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 报告!",arg4)
}
else if(equal(arg5,"#Get_out_of_there")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 马上离开此区域,炸弹马上爆炸!",arg4)
}
else if(equal(arg5,"#Negative")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 无法做到!",arg4)
}
else if(equal(arg5,"#Enemy_down")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 已经消灭敌人!",arg4)
}
else if(equal(arg5,"#Hostage_down")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 人质死亡!",arg4)
}
else if(equal(arg5,"#Fire_in_the_hole")){
format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 小心手雷!",arg4)
}
else {
return PLUGIN_CONTINUE
}
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, msgEnt)
write_byte(msgEnt)
write_string(saymsg)
message_end()
client_print(msgEnt, print_console,saymsg);
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
} 谢谢sakulekingz
可以用的 感谢 乌龟!!!!!!! 额。CS不是都有自带的么。。
页:
[1]