xehpeR 发表于 2010-6-20 11:19:44

[OP][VIP]说话显示

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN_NAME "Chat"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "DD"

public plugin_init(){
register_plugin(PLUGIN_NAME,PLUGIN_VERSION,PLUGIN_AUTHOR)
register_clcmd("say","sign_say",ADMIN_ALL,"Chat")
}

public sign_say(id){

new text,name,message
read_args (text,63)
remove_quotes(text)
get_user_name(id,name,31)

if ((get_user_flags(id) & ADMIN_BAN)){
   if(is_user_alive(id))
   {
   format(message,127,"^x04【ADMIN】^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
   if(!is_user_alive(id) && cs_get_user_team(id) != CS_TEAM_SPECTATOR && cs_get_user_team(id) != CS_TEAM_UNASSIGNED)
   {
   format(message,127,"^x03*死亡*^x04【ADMIN】^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
    else if(cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED)
   {
   format(message,127,"^x03*观察者*^x04【ADMIN】^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
}

else if ((get_user_flags(id) & ADMIN_RESERVATION)){
   if(is_user_alive(id))
   {
   format(message,127,"^x04【VIP】^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
   if(!is_user_alive(id) && cs_get_user_team(id) != CS_TEAM_SPECTATOR && cs_get_user_team(id) != CS_TEAM_UNASSIGNED)
   {
   format(message,127,"^x03*死亡*^x04【VIP】^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
    else if(cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED)
   {
   format(message,127,"^x03*观察者*^x04【VIP】^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
}

else {
   if(is_user_alive(id))
   {
   format(message,127,"^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
   if(!is_user_alive(id) && cs_get_user_team(id) != CS_TEAM_SPECTATOR && cs_get_user_team(id) != CS_TEAM_UNASSIGNED)
   {
   format(message,127,"^x03*死亡* ^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
    else if(cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED)
   {
   format(message,127,"^x03*观察者* ^x03%s^x01: %s",name,text)
   client_color(0,id,message)
   }
}
return PLUGIN_HANDLED
}

public client_color(playerid, colorid, msg[]){
message_begin(playerid?MSG_ONE:MSG_ALL,get_user_msgid("SayText"),{0,0,0},playerid)
write_byte(colorid)
write_string(msg)
message_end()
}

wugui007chn 发表于 2010-6-21 17:28:03

貌似是那个Arvy制作的插件源码~

baiduqq1314 发表于 2010-6-21 23:43:46

这个怎么弄?

colaawp 发表于 2010-6-21 23:51:32

是啊 什么用啊```!!直接编辑好之后上去可以用了吗?

colaawp 发表于 2010-6-21 23:53:11

编辑不了 出现错误!!!!!!!!!

colaawp 发表于 2010-6-21 23:54:47

无法编辑!!!!!!!

236619009 发表于 2010-6-22 13:19:11

哎。累啊!!!!!!!!!!

xehpeR 发表于 2010-6-22 20:18:30

这个~
试试看~

xgl810705 发表于 2010-6-24 21:52:45

000000000000000000000000000

csqz 发表于 2010-6-25 12:52:27

支持一个,虽然没人告诉怎么用! 谢谢
页: [1] 2 3
查看完整版本: [OP][VIP]说话显示