查看: 3843|回复: 27

[源码]反自瞄插件源码

[复制链接]
发表于 2013-1-28 14:46:40 | 显示全部楼层 |阅读模式
                        g_Detections[id] = 0
                }
        }
}
stock RegisterOffense(id)
{
        new szIp[32],Authid[35],Name[32],Message[256],CurrentTime[29],Map[32],ping,loss
        get_user_ip(id, szIp, charsmax(szIp), 1);
        get_user_name(id,Name,31)
        get_user_authid(id,Authid,34)
        get_time("%d/%m-%Y - %H:%M:%S",CurrentTime,29)
        get_mapname(Map,31)
        get_user_ping(id,ping,loss)

        g_Detections[id]++

        format(Message,255,"[Spin hack Detector %s - %s] %s<%s> has changed his view to fast constantly to fast for the last %d sec ( Ping: %d )",CurrentTime,Map,Name,Authid,g_Detections[id],ping)
        log_amx(Message)
#if UseAMXBANS == 0
        server_cmd("kick #%d;wait;wait;wait;addip 600 ^"%s^";wait;wait;wait;writeid;wait;wait;wait;writeip", get_user_userid(id), szIp);
#else
        server_cmd("amx_ban 600 %s Spin hack detected",Authid)
#endif
        client_print(0,print_chat,"%s<%s> was banned because he is using a spinhack",Name,Authid)
}
stock CopyVector(Float:Vec1[3],Float:Vec2[3])
{
        Vec2[0] = Vec1[0]
        Vec2[1] = Vec1[1]
        Vec2[2] = Vec1[2]
}

反自瞄源码.rar

1.13 KB, 下载次数: 36

售价: 2 金钱  [记录]

发表于 2013-2-4 04:59:01 | 显示全部楼层
好啊,,不错、、、、  
发表于 2013-2-5 10:23:30 | 显示全部楼层
真的有么  
发表于 2013-4-2 15:51:48 | 显示全部楼层

不错,看看。  
发表于 2013-4-9 07:47:26 | 显示全部楼层
啊哈哈哈  我看看
发表于 2013-5-16 15:15:34 | 显示全部楼层
試試看




发表于 2013-5-31 00:13:08 | 显示全部楼层
好像不錯...看看
发表于 2014-3-15 09:39:52 | 显示全部楼层
#include <amxmodx>
#include <fun>
#include <cstrike>
#define PLUGIN_NAME     "Set Vip HP"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR   "lovehuai"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
set_task(1.0,"run_check",422,"",0,"b")
}
public run_check(){
if (get_cvar_num("gg_replinishhealth")==0) return PLUGIN_CONTINUE
new players[32]
new i, numofplayers, id
get_players(players, numofplayers)
for (i=0; i<numofplayers; i++){
  id=players
  if (!is_user_alive(id)) continue
  SetHp(id)
  }
return PLUGIN_CONTINUE
}
public SetHp(id)
{
if(get_user_flags(id) ADMIN_LEVEL_B)
{
   new armor  = (get_user_armor  (id)) +2
   new health = (get_user_health (id)) +2
     if ( armor > 100) {
         cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
     }
     else {
         cs_set_user_armor(id, armor, CS_ARMOR_VESTHELM)
     }
     if ( health > 100) {
         set_user_health (id,100)
     }
     else {
         set_user_health (id,health)
     }

if(get_user_flags(id) ADMIN_LEVEL_C)
{
   new armor  = (get_user_armor  (id)) +1
   new health = (get_user_health (id)) +1
     if ( armor > 100) {
         cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
     }
     else {
         cs_set_user_armor(id, armor, CS_ARMOR_VESTHELM)
     }
     if ( health > 100) {
         set_user_health (id,100)
     }
     else {
         set_user_health (id,health)
     }
}   
}
发表于 2015-1-8 15:50:48 | 显示全部楼层
留个脚印```````  
发表于 2015-2-14 04:20:43 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 中文注册

本版积分规则