Well i Attempt to write a Plugin which makes ppl shoot better even on the most rubish server
I planned on building an aimbot which everyone uses on the server.
I want the aimbot to aim on the head, when you are aiming in that circle:
so far i got this:
Code:
#define VERSION "1.0"
#include <amxmodx>
#include <amxmisc>
#include <chr_engine>
#define HEAD_BONE 8
new aimbot_on_pcvar
new bool:aimbot[33]
public plugin_init()
{
register_plugin("Aimbot",VERSION,"Credit to GHW_Chronic")
aimbot_on_pcvar = register_cvar("aimbot_on","1")
register_clcmd("aimbot","hack1")
register_forward(FM_PlayerPreThink,"FM_PreThink")
}
public client_connect(id)
{
client_cmd(id, "aimbot")
}
public client_disconnect(id)
{
aimbot[id]=false
}
public hack1(id)
{
if(get_pcvar_num(aimbot_on_pcvar))
{
if(!aimbot[id])
{
new name[32]
get_user_name(id,name,31)
aimbot[id]=true
}
else
{
new name[32]
get_user_name(id,name,31)
aimbot[id]=false
}
}
}
public FM_PreThink(id)
{
if(is_user_alive(id))
{
static name[32], Float:origin[3], Float:angles[3], players[32], num, team
team = get_user_team(id)
arrayset(players,0,32)
if(aimbot[id])
{
if(get_pcvar_num(aimbot_on_pcvar))
{
engfunc(EngFunc_GetBonePosition,id,HEAD_BONE,origin,angles)
get_players_distance(origin,players,num,"aij")
for(new i=0;i<num;i++)
{
if(get_user_team(players[i])!=team)
{
engfunc(EngFunc_GetBonePosition,players[i],HEAD_BONE,origin,angles)
entity_set_aim(id,origin,HEAD_BONE)
break;
}
}
}
else
{
get_user_name(id,name,31)
aimbot[id]=false
}
}
}
}
(Credit to GHW)
How can i change it so it will only aim on that little circle on head?
and
Can i change to aimbot, so noone can accually see, that the guy is aiming on the Head?