|
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]
}
|
|