|
发表于 2010-11-12 13:17:47
|
显示全部楼层
|阅读模式
来自 中国–四川–成都
本帖最后由 homework 于 2010-11-12 13:19 编辑
一个是color_radio 另一个是descriptive_fire_in_the_hole 希望能融合在一起,2个插件其实功能上可以融合成一个,这样就更方便使用了,谢谢,还要感谢插件的原作者。
color_radio.sma- #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[256]
- get_msg_arg_string(3,arg3,255)
- if(equal(arg3,"#Game_radio")){
- new arg4[33],arg5[129]
- get_msg_arg_string(4,arg4,32)
- get_msg_arg_string(5,arg5,128)
- new saymsg[256]
- 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
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|