搜索
查看: 1498|回复: 8

一很好的amx原始a~~但我不把它成插件

[复制链接]
发表于 2005-4-13 10:54:44 | 显示全部楼层 |阅读模式 来自 中国–香港
#include <amxmod>
#define MAX_DISTANCE 200    // detect distance...
#define MAX_PLAYERS 32      // server maximum players
                                                                                
new sprayidorigins[3]
new vorigin[MAX_PLAYERS][3]
new d_index
                                                                                
                              
public plugin_init() {
        register_plugin("Auto-logo punisher","0.01","[PAPA]PERt+")
        register_event( "RoundTime", "reset_table", "bc" );
        register_event("23", "checkspray", "a", "1=112")        
        register_event( "DeathMsg", "store_table", "a" );
}
                                                                                
public store_table() {
                                                                                
        new victim = read_data( 2 );
        new name[32]
        get_user_name(victim, name , 31);
        get_user_origin( victim, vorigin[d_index], 0 );
        d_index++
        return PLUGIN_CONTINUE;
                                                                                
}
                                                                                
public reset_table() {
                                                                                
        d_index = 0
        new i ;
        for (i=0; i < MAX_PLAYERS; i++) {
        vorigin[0] =  0;
        vorigin[1] =  0;
        vorigin[2] =  0;
        }
                                                                                
        return PLUGIN_CONTINUE;
}
                                                                                
                                                                                
public checkspray() {

        new sprayid = read_data(2)      ;
        sprayidorigins[0] = read_data(3);      
        sprayidorigins[1] = read_data(4);      
        sprayidorigins[2] = read_data(5);      
                                                                                
        new j;
        for ( j=0; j < MAX_PLAYERS ; j++) {
        new distance = get_distance(vorigin[j], sprayidorigins);
                                                                                
        if ( distance < MAX_DISTANCE ) {
                new name[32]
                get_user_name(sprayid,name,31)
                client_cmd(sprayid,"kill")
                                                                                
                client_print(0,print_chat, "%s is killed due to logo on dead body...",name)
                user_kill(sprayid,1)
                client_cmd(sprayid,"kill")
                break
                }
        }
                                                  
        return PLUGIN_CONTINUE
}
 楼主| 发表于 2005-4-13 10:58:03 | 显示全部楼层 来自 中国–香港
@是一不允S玩家在企w上漆的代a~
如果玩家在企w上漆~他就死掉
但是我不把它成插件~
有高手可以兔???
回复

使用道具 举报

发表于 2005-4-13 11:33:23 | 显示全部楼层 来自 中国–陕西–西安
不错的东西,嘿嘿,替你编译了
amx和amxx的都有,看清楚后缀名了使用

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

 楼主| 发表于 2005-4-13 12:06:30 | 显示全部楼层 来自 中国–香港
感x你了~~~^^
回复

使用道具 举报

 楼主| 发表于 2005-4-13 12:07:40 | 显示全部楼层 来自 中国–香港
上面的amxx不能下d~~~~
回复

使用道具 举报

发表于 2005-4-13 13:41:16 | 显示全部楼层 来自 中国–陕西–西安
论坛附件的问题,重新下吧
回复

使用道具 举报

发表于 2005-4-13 13:52:50 | 显示全部楼层 来自 中国–湖北–天门
怎么不能下载呀???这个插件很好  我想按在我的服务器上。盼望下载……
回复

使用道具 举报

发表于 2005-4-13 17:48:31 | 显示全部楼层 来自 中国–福建–福州
:super: 这个好用感谢NWB13,感谢楼主!!
回复

使用道具 举报

发表于 2005-4-14 01:39:26 | 显示全部楼层 来自 中国–广西–玉林
这插件有意思`支持` :D
回复

使用道具 举报

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

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