-- 作者:z62151818
-- 发布时间:2009-12-01 18:11:00
-- [推荐]无线电语音***版Se_radio.sma(源码)
- #include <amxmodx>
- #include <engine>
- public client_color(playerid,colorid,msg[]){
- new playerslist[32],playerscount//,i
- get_players(playerslist,playerscount,"c")
- new userid
- if(playerid==0){
- userid=playerid
- message_begin(MSG_ALL, get_user_msgid("SayText"), {0,0,0}, userid)
- write_byte(colorid)
- write_string(msg)
- message_end()
-
- }
- else{
- userid=playerid
- message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, userid)
- write_byte(colorid)
- write_string(msg)
- message_end()
- }
- }
- 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[255]
- if(equal(arg5,"#Go_go_go")){//Msg GoGoGo
- format(saymsg,192,"^x03%s :^x04 GoGoGo..! 去泡妞!",arg4)
- }
- else if(equal(arg5,"#Stick_together_team")){
- format(saymsg,255,"^x03%s :^x04 一起打泡吧! 各位..",arg4)
- }
- else if(equal(arg5,"#Team_fall_back")){
- format(saymsg,255,"^x03%s :^x04 快撤退,嫖娼会被抓!",arg4)
- }
- else if(equal(arg5,"#Cover_me")){
- format(saymsg,255,"^x03%s :^x04 掩护我,我要自慰一下!",arg4)
- }
- else if(equal(arg5,"#You_take_the_point")){
- format(saymsg,255,"^x03%s :^x04 你插这个部位,包你爽!",arg4)
- }
- else if(equal(arg5,"#Hold_this_position")){
- format(saymsg,255,"^x03%s :^x04 各就各位,开搞!",arg4)
- }
- else if(equal(arg5,"#Regroup_team")){
- format(saymsg,255,"^x03%s :^x04 重新带上小雨伞!",arg4)
- }
- else if(equal(arg5,"#Follow_me")){
- format(saymsg,255,"^x03%s :^x04 老弟跟我来,我带你去找个小姐,放松一下!",arg4)
- }
- else if(equal(arg5,"#Taking_fire")){
- format(saymsg,255,"^x03%s :^x04 不行了..这女人功夫太好,需要支援!",arg4)
- }
- else if(equal(arg5,"#Get_in_position_and_wait")){
- format(saymsg,255,"^x03%s :^x04 这里是繁华地段,嫖资300¥不算贵。",arg4)
- }
- else if(equal(arg5,"#Storm_the_front")){
- format(saymsg,255,"^x03%s :^x04 全体男人正面打泡!",arg4)
- }
- else if(equal(arg5,"#Report_in_team")){
- format(saymsg,255,"^x03%s :^x04 开搞了,准备好了没啊?",arg4)
- }
- else if(equal(arg5,"#Affirmative")){
- format(saymsg,255,"^x03%s :^x04 准备好套套了!",arg4)
- }
- else if(equal(arg5,"#Roger_that")){
- format(saymsg,255,"^x03%s :^x04 知道了,开搞吧!",arg4)
- }
- else if(equal(arg5,"#Enemy_spotted")){
- format(saymsg,255,"^x03%s :^x04 发现裸体女人!",arg4)
- }
- else if(equal(arg5,"#Need_backup")){
- format(saymsg,255,"^x03%s :^x04 小穴怎么进?我需要帮助!",arg4)
- }
- else if(equal(arg5,"#Sector_clear")){
- format(saymsg,255,"^x03%s :^x04 此穴穴已被我捅破",arg4)
- }
- else if(equal(arg5,"#In_position")){
- format(saymsg,255,"^x03%s :^x04 我已经找到洞口!",arg4)
- }
- else if(equal(arg5,"#Reporting_in")){
- format(saymsg,255,"^x03%s :^x04 打泡行动准备好了没啊?",arg4)
- }
- else if(equal(arg5,"#Get_out_of_there")){
- format(saymsg,255,"^x03%s :^x04 她快不行了.闪人闪人闪人!",arg4)
- }
- else if(equal(arg5,"#Negative")){
- format(saymsg,255,"^x03%s :^x04 我想找个女人搞搞!",arg4)
- }
- else if(equal(arg5,"#Enemy_down")){
- format(saymsg,255,"^x03%s :^x04 她快被我折磨死了!",arg4)
- }
- else if(equal(arg5,"#Hostage_down")){
- format(saymsg,255,"^x03%s :^x04 女人死了= =..",arg4)
- }
-
- else {
- return PLUGIN_CONTINUE
- //format(saymsg,random_num(0,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
- }
- public plugin_init(){
- register_plugin("TC radio","0.1","132")
- register_message(get_user_msgid("TextMsg"),"color_radio")
- }
|