Armour HELP - Important - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Armour HELP - Important (
/showthread.php?tid=233738)
Armour HELP - Important -
aqu - 02.03.2011
Hello,my players gets ban when they buying armour in amunition.
My anti armour script:
Код:
new Float:pArmour;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
GetPlayerArmour(i, pArmour);
if(pArmour > 49.0)
{
new pname[200];
new string[200];
GetPlayerName(i, pname, sizeof(pname));
format(string, sizeof(string), "-Server- %s has been banned from this server(Reason: Armour Hack)", pname);
SendClientMessageToAll(COLOR_RED,string);
Ban(i);
}
}
Any help ?
Re: Armour HELP - Important -
vital2k - 02.03.2011
Are you using the built in game ammunation or your own? If you using the games then it gives them 100% armor which is obviously more than the anti-cheat allows.
Re: Armour HELP - Important -
aqu - 02.03.2011
I am not edited nothink with amunition.There is every think the same as in single player.
Re: Armour HELP - Important -
vital2k - 02.03.2011
Well then your armour anti-cheat is pointless. If I was you I would just remove it unless you are going to script in your own ammunations.
Re: Armour HELP - Important -
aqu - 02.03.2011
ok, but how to remove those teleports near amunition to amunition interior ?
Re: Armour HELP - Important -
Infamous - 02.03.2011
You can't just remove the ammunation enter/exit icons. You have to remove all the default ones if your going to go down that road.
Ref:
https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits
Edit: An alternative would be to check the interior they are in when the armour is applied. Not 100% effective but it would catch most cheaters that apply it as soon as they spawn.