搜索
查看: 2017|回复: 4

[AMXX 带源码] 求个小插件:中文彩色对讲机

[复制链接]
发表于 2009-7-13 16:10:59 | 显示全部楼层 |阅读模式 来自 江西南昌
找了两个,是英文的,又没有源码。
哪位能发个中文的吗?英文源码也行啊,谢谢了
发表于 2009-7-13 18:39:18 | 显示全部楼层 来自 四川遂宁
  1. #include <amxmodx>
  2. #include <amxmisc>

  3. #define PLUGIN_NAME        "color radio"
  4. #define PLUGIN_VERSION        "1.0"
  5. #define PLUGIN_AUTHOR        "UnKnow"


  6. public plugin_init()
  7. {
  8.         register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
  9.         register_message(get_user_msgid("TextMsg"),"color_radio")
  10. }

  11. public color_radio(msgid, msgDest, msgEnt){
  12.         new argNum = get_msg_args()
  13.         if (argNum!=5) return PLUGIN_CONTINUE
  14.         if (get_msg_argtype(1)!=ARG_BYTE) return PLUGIN_CONTINUE
  15.         new arg1=get_msg_arg_int(1)
  16.         if (arg1!=5) return PLUGIN_CONTINUE
  17.         new arg3[256]
  18.         get_msg_arg_string(3,arg3,255)
  19.         if(equal(arg3,"#Game_radio")){
  20.                 new arg4[33],arg5[129]
  21.                 get_msg_arg_string(4,arg4,32)
  22.                 get_msg_arg_string(5,arg5,128)
  23.                 new saymsg[256]
  24.                 if(equal(arg5,"#Go_go_go")){
  25.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队开始行动!",arg4)
  26.                 }
  27.                 else if(equal(arg5,"#Stick_together_team")){
  28.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队靠拢,准备行动!",arg4)
  29.                 }
  30.                 else if(equal(arg5,"#Team_fall_back")){
  31.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队撤退!",arg4)
  32.                 }
  33.                 else if(equal(arg5,"#Cover_me")){
  34.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 掩护我!",arg4)
  35.                 }
  36.                 else if(equal(arg5,"#You_take_the_point")){
  37.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 你去控制该地区!",arg4)
  38.                 }
  39.                 else if(equal(arg5,"#Hold_this_position")){
  40.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 各小组保持现在阵型!",arg4)
  41.                 }
  42.                 else if(equal(arg5,"#Regroup_team")){
  43.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 重新组队!",arg4)
  44.                 }
  45.                 else if(equal(arg5,"#Follow_me")){
  46.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 跟着我!",arg4)
  47.                 }
  48.                 else if(equal(arg5,"#Taking_fire")){
  49.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 敌方火力凶猛,需要支援!",arg4)
  50.                 }
  51.                 else if(equal(arg5,"#Get_in_position_and_wait")){
  52.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队就位,等我冲出去时掩护我!",arg4)
  53.                 }
  54.                 else if(equal(arg5,"#Storm_the_front")){
  55.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队正面快速突击!",arg4)
  56.                 }
  57.                 else if(equal(arg5,"#Report_in_team")){
  58.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 全队报告目前状况!",arg4)
  59.                 }
  60.                 else if(equal(arg5,"#Affirmative")){
  61.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 收到!",arg4)
  62.                 }
  63.                 else if(equal(arg5,"#Roger_that")){
  64.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 明白!",arg4)
  65.                 }
  66.                 else if(equal(arg5,"#Enemy_spotted")){
  67.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 发现敌人!",arg4)
  68.                 }
  69.                 else if(equal(arg5,"#Need_backup")){
  70.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 需要支援!",arg4)
  71.                 }
  72.                 else if(equal(arg5,"#Sector_clear")){
  73.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 该地区安全!",arg4)
  74.                 }
  75.                 else if(equal(arg5,"#In_position")){
  76.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 我已经就位!",arg4)
  77.                 }
  78.                 else if(equal(arg5,"#Reporting_in")){
  79.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 报告!",arg4)
  80.                 }
  81.                 else if(equal(arg5,"#Get_out_of_there")){
  82.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 马上离开此区域,炸弹马上爆炸!",arg4)
  83.                 }
  84.                 else if(equal(arg5,"#Negative")){
  85.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 无法做到!",arg4)
  86.                 }
  87.                 else if(equal(arg5,"#Enemy_down")){
  88.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 已经消灭敌人!",arg4)
  89.                 }
  90.                 else if(equal(arg5,"#Hostage_down")){
  91.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 人质死亡!",arg4)
  92.                 }
  93.                 else if(equal(arg5,"#Fire_in_the_hole")){
  94.                         format(saymsg,255,"^x03%s ^x01@ ^x04(无线电)^x01 小心手雷!",arg4)
  95.                 }
  96.                 else {
  97.                         return PLUGIN_CONTINUE
  98.                 }
  99.                 message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, msgEnt)
  100.                 write_byte(msgEnt)
  101.                 write_string(saymsg)
  102.                 message_end()
  103.                 client_print(msgEnt, print_console,saymsg);
  104.                 return PLUGIN_HANDLED
  105.         }
  106.         return PLUGIN_CONTINUE
  107. }
复制代码
回复

使用道具 举报

 楼主| 发表于 2009-7-14 02:35:35 | 显示全部楼层 来自 江西南昌
谢谢sakulekingz
可以用的
回复

使用道具 举报

发表于 2010-11-12 12:41:23 | 显示全部楼层 来自 四川成都
感谢 乌龟!!!!!!!
回复

使用道具 举报

发表于 2010-11-27 15:49:46 | 显示全部楼层 来自 广东揭阳
额。CS不是都有自带的么。。
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表