搜索
查看: 1841|回复: 4

死后去掉团队消息和扔雷消息问题

[复制链接]
发表于 2008-9-20 21:39:32 | 显示全部楼层 |阅读模式 来自 广西柳州
public color_radio(msgid, msgDest, msgEnt){
for (new i=1;i<=max_players;i++){
if (!is_user_alive(i))  return PLUGIN_HANDLED
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")){//Msg GoGoGo
   format(saymsg,255,"^x03%s(对讲机): ^x04Go go go!",arg4)
  }
  else if(equal(arg5,"#Stick_together_team")){
   format(saymsg,255,"^x03%s(对讲机): ^x04Stick together, team.",arg4)
  }
  else if(equal(arg5,"#Team_fall_back")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Team, fall back!",arg4)
  }
  else if(equal(arg5,"#Cover_me")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Cover Me!",arg4)
  }
  else if(equal(arg5,"#You_take_the_point")){
   format(saymsg,255,"^x03%s(对讲机):^x04 You Take the Point.",arg4)
  }
  else if(equal(arg5,"#Hold_this_position")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Hold This Position.",arg4)
  }
  else if(equal(arg5,"#Regroup_team")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Regroup Team.",arg4)
  }
  else if(equal(arg5,"#Follow_me")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Follow Me.",arg4)
  }
  else if(equal(arg5,"#Taking_fire")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Taking Fire...Need Assistance!",arg4)
  }
  else if(equal(arg5,"#Get_in_position_and_wait")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Get in position and wait for my go.",arg4)
  }
  else if(equal(arg5,"#Storm_the_front")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Storm the Front!",arg4)
  }
  else if(equal(arg5,"#Report_in_team")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Report in, team.",arg4)
  }
  else if(equal(arg5,"#Affirmative")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Affirmative.",arg4)
  }
  else if(equal(arg5,"#Roger_that")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Roger that.",arg4)
  }
  else if(equal(arg5,"#Enemy_spotted")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Enemy spotted.",arg4)
  }
  else if(equal(arg5,"#Need_backup")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Need backup.",arg4)
  }
  else if(equal(arg5,"#Sector_clear")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Sector clear.",arg4)
  }
  else if(equal(arg5,"#In_position")){
   format(saymsg,255,"^x03%s(对讲机):^x04 I'm in position.",arg4)
  }
  else if(equal(arg5,"#Reporting_in")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Reporting in.",arg4)
  }
  else if(equal(arg5,"#Get_out_of_there")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Get out of there, it's gonna blow!",arg4)
  }
  else if(equal(arg5,"#Negative")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Negative.",arg4)
  }
  else if(equal(arg5,"#Enemy_down")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Enemy down.",arg4)
  }
  else if(equal(arg5,"#Hostage_down")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Hostage down.",arg4)
  }
  else if(equal(arg5,"#Fire_in_the_hole")){
   format(saymsg,255,"^x03%s(对讲机):^x04 Fire in the hole!",arg4)
  }
  else {
   return PLUGIN_CONTINUE
   //format(saymsg,255,"^x03%s(对讲机): ^x04What are you saying!",arg4)
  }
  message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, msgEnt)
  write_byte(msgEnt)
  write_string(saymsg)
  message_end()
  //client_color(0,msgEnt,saymsg)
  return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
虽然可以编译过去但没有作用,请问是什么原因?谢谢
 楼主| 发表于 2008-9-21 20:31:02 | 显示全部楼层 来自 广西柳州

回复: 死后去掉团队消息和扔雷消息问题

老大们哪去了?帮帮忙,谢谢。:burn:
回复

使用道具 举报

发表于 2008-9-21 23:24:30 | 显示全部楼层 来自 广东深圳

回复: 死后去掉团队消息和扔雷消息问题

Post by wwww23
虽然可以编译过去但没有作用,请问是什么原因?谢谢
你这个只是关掉替换系统的语音文字(彩色对讲机插件),但是系统本身的没去。
要去掉很麻烦,会把所有的去掉,以前zhangsheng问过,有人回答过。:dribble: :dribble:
回复

使用道具 举报

 楼主| 发表于 2008-9-22 00:08:14 | 显示全部楼层 来自 广西柳州

回复: 死后去掉团队消息和扔雷消息问题

谢谢,那个我看过,ZHANGSHENG老大的是要把那土匪胜利,警察胜利那些字去掉,好像和我的不同。
回复

使用道具 举报

发表于 2008-9-22 10:11:23 | 显示全部楼层 来自 广东深圳

回复: 死后去掉团队消息和扔雷消息问题

把下面改成这样试下
[php]
new plist[32],pnum,uid;
get_players(plist,pnum,"a")
for(new i=0;i<pnum;i++)
{
uid=plist
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, uid)
write_byte(uid)
write_string(saymsg)
message_end()
} [/php]
回复

使用道具 举报

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

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