Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <amxmisc>
- #define PLUGIN "Simple Aim Blocker"
- #define VERSION "1.0"
- #define AUTHOR "GaMeR FoReVeR"
- new pOKills[33], pHeads[33], pSteamID[33][33];
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- register_event("DeathMsg", "DeathMsg", "a");
- }
- public client_putinserver(id)
- {
- get_user_authid(id, pSteamID[id], 31);
- }
- public DeathMsg()
- {
- new Attacker = read_data(1);
- new Victim = read_data(2);
- new Hs = read_data(3);
- if(!is_user_connected(Attacker) || !is_user_connected(Victim) || Attacker == Victim)
- return PLUGIN_HANDLED;
- if(Hs)
- pHeads[Attacker]++;
- else
- pOKills[Attacker]++;
- AimCheck(Attacker);
- return PLUGIN_CONTINUE;
- }
- public AimCheck(id)
- {
- if(!is_user_connected(id))
- return PLUGIN_HANDLED;
- if(pHeads[id] > pOKills[id])
- {
- new Percent = pHeads[id]-pOKills[id];
- new Ammount = Percent/pOKills[id];
- if(Ammount > 9)
- server_cmd("amx_ban %s 0 aimbot", pSteamID[id]);
- }
- return PLUGIN_CONTINUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement