[Include] Anti MoneyHack, Health and Armour restore hack. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (
https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [Include] Anti MoneyHack, Health and Armour restore hack. (
/showthread.php?tid=468437)
Anti MoneyHack, Armour restore hack. -
DanDRT - 08.10.2013
Introduзгo
Esta й uma include que previne os hackers de money(dinheiro), e nгo permite que usem restore armour(restaurar colete).
Include
pawn Код:
stock Ips_SetPlayerArmour(playerid, Float:value)
{
SetPVarFloat(playerid, #Armour, value);
SetPlayerArmour(playerid, value);
return true;
}
#if defined _ALS_SetPlayerArmour
#undef SetPlayerArmour
#else
#define _ALS_SetPlayerArmour
#endif
#define SetPlayerArmour Ips_SetPlayerArmour
stock Ips_GivePlayerMoney(playerid, value)
{
GivePlayerMoney(playerid, value);
SetPVarInt(playerid, #Money, GetPlayerMoney(playerid));
return true;
}
#if defined _ALS_GivePlayerMoney
#undef GivePlayerMoney
#else
#define _ALS_GivePlayerMoney
#endif
#define GivePlayerMoney Ips_GivePlayerMoney
public OnPlayerUpdate(playerid)
{
static Float:Armour;
GetPlayerArmour(playerid, Armour);
if(Armour > GetPVarFloat(playerid, #Armour))
{
SetPlayerArmour(playerid, GetPVarFloat(playerid, #Armour));
}
if(GetPlayerMoney(playerid) > GetPVarInt(playerid, #Money))
{
ResetPlayerMoney(playerid), GivePlayerMoney(playerid, GetPVarInt(playerid, #Money));
}
#if defined Ips_OnPlayerUpdate
return Ips_OnPlayerUpdate(playerid);
#else
return true;
#endif
}
#define OnPlayerUpdate Ips_OnPlayerUpdate
#if defined Ips_OnPlayerUpdate
forward OnPlayerUpdate(playerid);
#endif
Autoria
Este sistema foi criado por DanDRT(Danilo Galvгo ou IpsDan).
Agradeзo ao Bruno da Silva(IpsBruno), por ter postado algo semelhante no passado(Money).
Equipe [iPs]TeaM!
Abraзos
Re: Anti MoneyHack, Health and Armour restore hack. -
shittt - 08.10.2013
good job.
Respuesta: Re: Anti MoneyHack, Health and Armour restore hack. -
DanDRT - 08.10.2013
Quote:
Originally Posted by shittt
good job.
|
Thank
Re: Anti MoneyHack, Health and Armour restore hack. -
Mteck - 08.10.2013
Lecal :3
Respuesta: Anti MoneyHack, Health and Armour restore hack. -
ipsBruno - 08.10.2013
Vai dar problema isto, visando que ele ganha dinheiro em cassinos ou enxe a vida em hamburguerias.
Respuesta: Anti MoneyHack, Health and Armour restore hack. -
DanDRT - 08.10.2013
Quote:
Originally Posted by ipsBruno
Vai dar problema isto, visando que ele ganha dinheiro em cassinos ou enxe a vida em hamburguerias.
|
Considerando isto melhor deixar somente o Anti restore Armour e o Anti Money
Re: Anti MoneyHack, Health and Armour restore hack. -
Schocc - 08.10.2013
+rep,
@OFF: Eu to devendo rep pra alguйm??
Respuesta: Re: Anti MoneyHack, Health and Armour restore hack. -
DanDRT - 08.10.2013
Quote:
Originally Posted by Schocc
+rep,
@OFF: Eu to devendo rep pra alguйm??
|
Obrigado!
Re: Anti MoneyHack, Health and Armour restore hack. -
PT - 08.10.2013
Bom trabalho
@ bruno
Quote:
Originally Posted by ipsBruno
Vai dar problema isto, visando que ele ganha dinheiro em cassinos ou enxe a vida em hamburguerias.
|
tem forma de resolver esse problema?
Respuesta: Anti MoneyHack, Health and Armour restore hack. -
ipsBruno - 08.10.2013
Tб devendo pra mim -q
Bom projeto Dan.