求禁止喷图插件
:cold: CS里被打死后,小菜鸟在身上喷图的滋味非常不好受,所以向各位高手们要这个插件。回复: 求禁止喷图插件
/* USAGE: amx_blocksprays <1/0> -- Enables or Disables Plugin */
// http://forums.alliedmods.net/showthread.php?t=45567
#include <amxmodx>
#include <engine>
#include <amxmisc>
#define PLUGIN"Block Sprays"
#define VERSION "1.0"
#define AUTHOR"teame06"
#define SPRAY 201
new g_pCvarEnabled
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_pCvarEnabled = register_cvar("amx_blocksprays", "1")
}
// Fakemeta way would be Hooking the forward FM_CmdStart.
// An example of how to block certain command using FM_CmdStart
// <a href="http://forums.alliedmods.net/showthread.php?p=351823#post351823" target="_blank">http://forums.alliedmods.net/showthr...823#post351823</a>
public client_impulse(id, impulse)
{
if(get_pcvar_num(g_pCvarEnabled) && impulse == SPRAY)
{
//client_print(id, print_chat, " You are not allowed to spray.");
client_print(id, print_chat, "* 本服务器禁止喷图");
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
回复: 求禁止喷图插件
pop强:sweet_kis回复: 求禁止喷图插件
hehe,pop不错,没有把别人的直接改成自己的,赞一个!回复: 求禁止喷图插件
pop真..........................强!!!!!!!!!!!回复: 求禁止喷图插件
POP781 我好羡慕你...回复: 求禁止喷图插件
呵。。。今天我编译了,效果非常好,现在打CS也不要为喷图的人烦了,谢谢POP781,谢谢各位大侠............
页:
[1]