CS1.6服务器维护提示插件 有你想不到得惊喜
什么介绍都没有就想赚我点通B 无语勒....神马插件啊 无语勒....神马插件啊w854625286 发表于 2011-9-1 14:50 http://www.dt-club.net/forum/images/common/back.gif
他发插件都是这样 从来不介绍 ...我了解他 如果没猜错应该是它/*服务器重起插件。由 by:yzmzx于08年08月28日修改*/
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Server restart", "1.1", "Remo Williams")
register_concmd("amx_restart","serverrestart",ADMIN_IMMUNITY," - Shuts down server in 10 seconds")
}
public plugin_precache(){
precache_sound( "misc/chongqi.wav")
return PLUGIN_CONTINUE
}
public serverrestart(id) {
if (!(get_user_flags(id)&ADMIN_LEVEL_A)) {
console_print(id,"你沒有权限使用这项指令.")
return PLUGIN_HANDLED
}
set_task(0.0,"alert")
set_task(14.0,"ten")
set_task(15.0,"nine")
set_task(16.0,"eight")
set_task(17.0,"seven")
set_task(18.0,"six")
set_task(19.0,"five")
set_task(20.0,"four")
set_task(21.0,"three")
set_task(22.0,"two")
set_task(23.0,"one")
set_task(24.0,"zero")
set_task(38.0,"restart_server")
return PLUGIN_HANDLED
}
public alert() {
client_print(0,print_chat,"***** 敬請注意!!!本服务器将于 39 秒后重起!!!*****")
client_cmd(0,"spk ^"misc/chongqi.wav^"")
}
public ten() {
client_print(0,print_chat,"..........本服务器重起倒数计时 10 秒..........")
client_cmd(0,"spk ^"fvox/ten.wav^"")
}
public nine() {
client_print(0,print_chat,"..........本服务器重起倒数计时 9 秒..........")
client_cmd(0,"spk ^"fvox/nine.wav^"")
}
public eight() {
client_print(0,print_chat,"..........本服务器重起倒数计时 8 秒..........")
client_cmd(0,"spk ^"fvox/eight.wav^"")
}
public seven() {
client_print(0,print_chat,"..........本服务器重起倒数计时 7 秒..........")
client_cmd(0,"spk ^"fvox/seven.wav^"")
}
public six() {
client_print(0,print_chat,"..........本服务器重起倒数计时 6 秒..........")
client_cmd(0,"spk ^"fvox/six.wav^"")
}
public five() {
client_print(0,print_chat,"..........本服务器重起倒数计时 5 秒..........")
client_cmd(0,"spk ^"fvox/five.wav^"")
}
public four() {
client_print(0,print_chat,"..........本服务器重起倒数计时 4 秒..........")
client_cmd(0,"spk ^"fvox/four.wav^"")
}
public three() {
client_print(0,print_chat,"..........本服务器重起倒数计时 3 秒..........")
client_cmd(0,"spk ^"fvox/three.wav^"")
}
public two() {
client_print(0,print_chat,"..........本服务器重起倒数计时 2 秒..........")
client_cmd(0,"spk ^"fvox/two.wav^"")
}
public one() {
client_print(0,print_chat,"..........本服务器重起倒数计时 1 秒..........")
client_cmd(0,"spk ^"fvox/one.wav^"")
}
public zero() {
client_print(0,print_chat,".......................请稍后,服务器重起中........................")
client_cmd(0,"spk ^"misc/chongqi.wav^"")
}
public restart_server() {
client_cmd(0,"retry",1.5) //服务器重起后,客户机自动连接服务器
server_cmd("restart") //服务器重起命令
//server_cmd("quit")//关闭服务器命令exit也可以。
} 如果没猜错应该是它/*服务器重起插件。由 by:yzmzx于08年08月28日修改*/
#include
#include
public plugin_init() {
register_plugin("Server restart", "1.1", "Remo Williams")
register_concmd("amx_re ...
homework 发表于 2011-9-1 20:50 http://www.dt-club.net/forum/images/common/back.gif
谢谢富翁问一下控制台输入什么命令执行这样 重起关闭的动作 权限是哪个 6# chwafz 谢谢你近来的支持 呵呵 以后发插件会发说明的 我正在弄我的插件论坛 弄好了就来告诉你地址谢谢了 6# chwafz 谢谢你近来的支持 呵呵 以后发插件会发说明的 我正在弄我的插件论坛 弄好了就来告诉你地址谢谢了
cjm520001 发表于 2011-9-2 21:32 http://www.dt-club.net/forum/images/common/back.gif
做论坛可不是容易的事情点通论坛名气这么大 你看 冻死人了,每天都是我在水个不停 - - 6# chwafz
amx_restart权限 A 5B啊,我的5DTB,疼死我了!:'(
页:
[1]
2