LittleKu
发表于 2009-6-6 15:47:07
都别说那么多了,我真的想试试,看我用多久时间 写出月光疾疯那个东东!!
因为他曾经说过我一句话,这个应该他自己清楚!!而且还把我从那个QQ群里T出来,这个事我一辈子都记得!
你们要这个插件的源码是吗!
我会努力写的,而且只发源码!!
我在点通所发的插件永远只有源码!!
记住这句话!!
Soledad
发表于 2009-6-6 16:16:32
本帖最后由 Soledad 于 2009-6-6 16:44 编辑
非常支持KK阿朗
这种插件的源码很简单 难者不会 会者不难
cslover
发表于 2009-6-6 16:19:44
楼主那个是官网上找的你直接把链接发出来 OK 还卖钱 靠
#4楼的那个插件 十分钟就能写出来 可以弄成豆客那个风格的绝对比你这个好看 (这样的插件还写上 月光疾风制作 。。。。。。。真不知那个月光疾风是个什么 ...
Soledad 发表于 2009-6-6 08:51 http://forum.dt-club.net/images/common/back.gif
你和谁有仇啊?说话可以不sb吗?
Soledad
发表于 2009-6-6 16:21:21
这些插件都使用了网页转向(百度上有代码)可以显示所有人不用担心motd字节限制
Soledad
发表于 2009-6-6 16:25:54
这是官方的两个显示在线OPVIP的
#include <amxmodx>
#include <amxmisc>
//To retrieve maxplayers
new g_maxplayers
//enum
enum
{
TASK_INFO = 100
}
//Version information
new const VERSION[] = "1.0"
public plugin_init()
{
register_plugin("Active admins MOTD", VERSION, "FakeNick")
//Dictionary
register_dictionary("adminsm.txt")
//logevent
register_logevent("logevent_round_start",2,"1=Round_Start")
//Only to recognize, which sever is using this plugin
register_cvar("admins_motd_version",VERSION,FCVAR_SERVER | FCVAR_SPONLY)
//Say commands
register_clcmd("say !admins","func_admins")
register_clcmd("say_team !admins","func_admins")
//Maxplayers information
g_maxplayers = get_maxplayers()
}
public logevent_round_start()
{
//Show info
client_print(0,print_chat,"%L",LANG_PLAYER,"INFO_COMMAND")
//Rmeove old task and make a new one
remove_task(TASK_INFO)
set_task(60.0,"logevent_round_start",TASK_INFO)
}
public func_admins(id)
{
//Some common variables
static motd,header,name,len,i,counter
len = 0
counter = 0
//Format bg and font colors
len += formatex(motd,sizeof motd - 1 - len,"%L",id,"MOTD_1")
//Format MOTD header
formatex(header,sizeof header - 1,"%L",id,"MOTD_HEADER")
//Check for admins
for(i = 1; i <= g_maxplayers;i++)
{
//If player is admin...
if(is_user_admin(i))
{
//...increase counter...
counter++
//...retrieve admin name...
get_user_name(i,name,sizeof name - 1)
//...add admin to MOTD
len += formatex(motd,sizeof motd - 1 - len,"%d. <b>%s</b><br>",counter,name)
}
}
//Finally, show MOTD
show_motd(id,motd,header)
}
Soledad
发表于 2009-6-6 16:26:12
#include <amxmodx>
/*---------------EDIT ME------------------*/
#define ADMIN_CHECK ADMIN_KICK
static const COLOR[] = "^x04" //yellow
static const CONTACT[] = ""
/*----------------------------------------*/
new maxplayers
new gmsgSayText
public plugin_init() {
register_plugin("Admin Check", "1.51", "OneEyed")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
}
public handle_say(id) {
new said
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames
new message
new contactinfo, contact
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_CHECK)
get_user_name(id, adminnames, 31)
len = format(message, 255, "%s 本伺服線上管理員列表 : ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message, 255-len, "%s%s ", adminnames, x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message, 255-len, " 沒有管理員在線 .")
print_message(user, message)
}
get_cvar_string("amx_contactinfo", contact, 63)
if(contact){
format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
Soledad
发表于 2009-6-6 16:32:24
23# cslover
没有仇啊 是因为从一个同学那里知道某人的人品觉得简单的东西不要弄得太复杂
LittleKu
发表于 2009-6-6 16:42:16
22# Soledad
http://www.dt-club.net/forum/thread-44434-1-1.html
刚才写的!请指教!!!
258200198
发表于 2009-6-6 18:47:31
用不上吧??没意思哦
2033421
发表于 2009-6-6 19:24:02
顶过!!!!!!!!!!!!!!!!!!!!!!!!!!!11