|
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
} 虽然可以编译过去但没有作用,请问是什么原因?谢谢 |
|