|
發表於 21-10-2009 17:32:30
|
顯示全部樓層
no 广告 version
- #include <amxmodx>
- #include <amxmisc>
- public plugin_init()
- {
- register_plugin("[TheDeath] Admin Say", "V1.0", "ds811888")
-
- register_clcmd("say", "hook_say")
- register_clcmd("say_team", "hook_say")
- }
- public hook_say(id)
- {
- static text2[200];
- read_args(text2, 199);
- remove_quotes(text2);
- trim(text2);
-
- new name[32]
- get_user_name(id, name, 31);
-
- if(equal(text2, ""))
- return PLUGIN_HANDLED;
- if (get_user_flags(id) & ADMIN_IMMUNITY)
- {
- client_print(0, print_chat, " [伺服器OP] %s : %s",name,text2)
- server_print(" [伺服器OP] %s : %s",name,text2)
- }
- else if (get_user_flags(id) & ADMIN_RESERVATION)
- {
- client_print(0, print_chat, " [管理員] %s : %s",name,text2)
- server_print(" [管理員] %s : %s",name,text2)
- }
- else if (get_user_flags(id) & ADMIN_KICK)
- {
- client_print(0, print_chat, " [貴賓VIP] %s : %s",name,text2)
- server_print(" [貴賓VIP] %s : %s",name,text2)
- }
- else
- {
- client_print(0, print_chat, " [玩家] %s : %s",name,text2)
- server_print(" [玩家] %s : %s",name,text2)
- }
-
- return PLUGIN_HANDLED;
- }
複製代碼 |
|