搜索
查看: 1997|回复: 6

求禁止喷图插件

[复制链接]
发表于 2006-11-4 16:52:12 | 显示全部楼层 |阅读模式 来自 中国–广东–广州–黄埔区
:cold:      CS里被打死后,小菜鸟在身上喷图的滋味非常不好受,所以向各位高手们要这个插件。
发表于 2006-11-4 18:07:27 | 显示全部楼层 来自 中国–广东–深圳–罗湖区

回复: 求禁止喷图插件

[php]
/* 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, "[AMXX] You are not allowed to spray.");
        client_print(id, print_chat, "* 本服务器禁止喷图");
        return PLUGIN_HANDLED;
    }
    return PLUGIN_CONTINUE;
}
[/php]
回复

使用道具 举报

发表于 2006-11-4 18:21:48 | 显示全部楼层 来自 中国–广东–深圳–南山区

回复: 求禁止喷图插件

pop强:sweet_kis
回复

使用道具 举报

发表于 2006-11-4 19:41:46 | 显示全部楼层 来自 中国–北京–北京

回复: 求禁止喷图插件

hehe,pop不错,没有把别人的直接改成自己的,赞一个!
回复

使用道具 举报

发表于 2006-11-5 12:45:21 | 显示全部楼层 来自 中国–山西–忻州

回复: 求禁止喷图插件

pop真..........................强!!!!!!!!!!!
回复

使用道具 举报

 楼主| 发表于 2006-11-11 13:20:43 | 显示全部楼层 来自 中国–广东–广州–越秀区

回复: 求禁止喷图插件

POP781 我好羡慕你...
回复

使用道具 举报

 楼主| 发表于 2006-11-11 16:53:33 | 显示全部楼层 来自 中国–广东–广州–越秀区

回复: 求禁止喷图插件

呵。。。今天我编译了,效果非常好,现在打CS也不要为喷图的人烦了,谢谢POP781,谢谢各位大侠............
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表