搜索
查看: 1252|回复: 2

saylogo 惩罚 (我E文不好,不知道是不是干这个用的)

[复制链接]
发表于 2005-10-20 09:14:42 | 显示全部楼层 |阅读模式 来自 中国–北京–北京–朝阳区

  1. #include <amxmod>
  2. #define MAX_DISTANCE 100    // detect distance...
  3. #define MAX_PLAYERS 32      // server maximum players
  4.                                                                               
  5. new sprayidorigins[3]
  6. new vorigin[MAX_PLAYERS][3]
  7. new d_index
  8.                                                                               
  9.                              
  10. public plugin_init() {
  11.        register_plugin("Auto-logo punisher","0.01","[PAPA]PERt+")
  12.        register_event( "RoundTime", "reset_table", "bc" );
  13.        register_event("23", "checkspray", "a", "1=112")        
  14.        register_event( "DeathMsg", "store_table", "a" );
  15. }
  16.                                                                               
  17. public store_table() {
  18.                                                                               
  19.        new victim = read_data( 2 );
  20.        new name[32]
  21.        get_user_name(victim, name , 31);
  22.        get_user_origin( victim, vorigin[d_index], 0 );
  23.        d_index++
  24.        return PLUGIN_CONTINUE;
  25.                                                                               
  26. }
  27.                                                                               
  28. public reset_table() {
  29.                                                                               
  30.        d_index = 0
  31.        new i;
  32.        for (i=0; i < MAX_PLAYERS; i++) {
  33.        vorigin[i][0] =  0;
  34.        vorigin[i][1] =  0;
  35.        vorigin[i][2] =  0;
  36.        }
  37.                                                                               
  38.        return PLUGIN_CONTINUE;
  39. }
  40.                                                                               
  41.                                                                               
  42. public checkspray() {

  43.        new sprayid = read_data(2)    ;
  44.        sprayidorigins[0] = read_data(3);      
  45.        sprayidorigins[1] = read_data(4);      
  46.        sprayidorigins[2] = read_data(5);      
  47.                                                                               
  48.        new j;
  49.        for ( j=0; j < MAX_PLAYERS; j++) {
  50.        new distance = get_distance(vorigin[j], sprayidorigins);
  51.                                                                               
  52.        if ( distance < MAX_DISTANCE ) {
  53.                new name[32]
  54.                get_user_name(sprayid,name,31)
  55.                client_cmd(sprayid,"kill")
  56.                                                                               
  57.                client_print(0,print_chat, "%s is killed due to logo on dead body...",name)
  58.                user_kill(sprayid,1)
  59.                client_cmd(sprayid,"kill")
  60.                break
  61.                }
  62.        }
  63.                                                 
  64.        return PLUGIN_CONTINUE
  65. }
复制代码

#define MAX_DISTANCE 100 // detect distance...
这个是不是距离100内 使用喷图  SLAY啊

   请大侠看下。谢谢
发表于 2005-10-20 09:43:26 | 显示全部楼层 来自 中国–河南–三门峡

回复: saylogo 惩罚 (我E文不好,不知道是不是干这个用的)

对着死亡玩家身体喷图处死 ~ 距离100M内
回复

使用道具 举报

发表于 2005-10-20 11:44:13 | 显示全部楼层 来自 中国–河北–秦皇岛

回复: saylogo 惩罚 (我E文不好,不知道是不是干这个用的)

Post by wzf828
对着死亡玩家身体喷图处死 ~ 距离100M内

100M  ?  那不是和禁止一样吗?   应该是游戏中的单位吧   :sweat:
回复

使用道具 举报

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

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