SA-MP Forums Archive
Anti-Armour Check - 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: Anti-Armour Check (/showthread.php?tid=54951)



Anti-Armour Check - Nick_name - 09.11.2008

Okay Guys..I created this simple Anti-Armour Hack but I dont know what "Tag Mismatch" Means

Tell me whats wrong in here please.....

Код:
new LastArmour[MAX_PLAYERS]; //I declared this as a player's variable
Then on the 1 sec timecheck...

Код:
new Float:armour;
GetPlayerArmour(playerid,armour);
new result = armour-LastArmour[playerid];
if(result >= 30) //Im using the Godfather script and /usedrugs' gives only 26 armour!!
{
  SendClientMessage(playerid,COLOR_GREY," You are banned!");
  Ban(playerid);
}
else
{
  LastArmour[playerid] = armour; //This is where I get the "Tag Mismatch" Error.This line calibrate the new armour for next armor check
}
Please Help ME


Re: Anti-Armour Check - siraphob - 09.11.2008

new LastArmour[MAX_PLAYERS];


Re: Anti-Armour Check - Nick_name - 09.11.2008

Ooops My mistake...Wrong post....The problem is still the Tag Mismatch error....


PS: I edited the 1st post


Re: Anti-Armour Check - Norn - 09.11.2008

If the person gets shot, it wont update the armour variable.

It's impossible to make an anti armour hack that works correctly.


Re: Anti-Armour Check - Nick_name - 09.11.2008

It only Bans the players who will spawn a full armor in a second....His armour variable will be updated by the LastArmour[playerid];
But the problem is the Tag MisMatch error....


Re: Anti-Armour Check - Norn - 09.11.2008

pawn Код:
new Float:LastArmour[MAX_PLAYERS];



Re: Anti-Armour Check - Nick_name - 09.11.2008

Norn, I LOVE YA!!! THANKS!!! I WANNA HAVE SEX WITH YA!!! jk


Re: Anti-Armour Check - Nick_name - 09.11.2008

Solved it but DIDNT work too buggy!


Re: Anti-Armour Check - tanush - 09.04.2011

under ONPlayerConnect put
pawn Код:
if(GetPlayerArmour(playerid) >= 1)
{
SendClientMessage(playerid,0xFF9900AA,"Bad boi, no hacking");
SetPlayerArmour(playerid,0);
}