10.05.2015, 04:56
You cannot compile an include.Includes are meant to be used along with our gamemode/filterscript.
Create a new file called BustAim.inc in your pawno/includes folder.Copy the code (http://pastebin.com/THN9Eu6u) to the file.
Now open your gamemode/filterscript and type
Copy the code given below and paste it in your script and compile.
Create a new file called BustAim.inc in your pawno/includes folder.Copy the code (http://pastebin.com/THN9Eu6u) to the file.
Now open your gamemode/filterscript and type
Code:
#include <BustAim>
Code:
public OnPlayerSuspectedForAimbot(playerid,hitid,weaponid,warnings)
{
new str[144],nme[MAX_PLAYER_NAME],wname[32];
GetPlayerName(playerid,nme,sizeof(nme));
GetWeaponName(weaponid,wname,sizeof(wname));
if(warnings & WARNING_OUT_OF_RANGE_SHOT)
{
format(str,256,"%s(%d) fired shots from a distance greater than the %s's fire range.",nme,playerid,wname);
SendClientMessageToAll(-1,str);
}
if(warnings & WARNING_PROAIM_TELEPORT)
{
format(str,256,"%s(%d) is using proaim (Teleport Detected)",nme,playerid);
SendClientMessageToAll(-1,str);
}
if(warnings & WARNING_RANDOM_AIM)
{
format(str,256,"%s(%d) is suspected to be using aimbot(Hit with Random Aim with %s)",nme,playerid,wname);
SendClientMessageToAll(-1,str);
}
if(warnings & WARNING_BACKWARD_SHOT)
{
format(str,256,"%s(%d) shot a player behind him with %s.",nme,playerid,wname);
SendClientMessageToAll(-1,str);
}
if(warnings & WARNING_CONTINOUS_SHOTS)
{
format(str,256,"%s(%d) has fired 10 shots continously with %s(%d)",nme,playerid,wname,weaponid);
SendClientMessageToAll(-1,str);
}
return 0;
}

