anti armour hack problem. - 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 hack problem. (
/showthread.php?tid=242007)
anti armour hack problem. -
Gh0sT_ - 19.03.2011
hello all.
so, I have problem with armour ah.. I get banned, when I just connect.
Script:
#define SetPlayerArmourEx(%0,%1) SetPVarInt(%0,"Armour",GetPlayerArmourEx(%0)+%1),S etPlayerArmour(%0,%1)
#define ResetPlayerArmourEx(%0) SetPVarInt(%0,"Armour",0),SetPlayerArmour(%0, 0)
#define GetPlayerArmourEx(%0) GetPVarInt(%0,"Armour")
script in 1s timer:
pawn Код:
new
Float: Sarvai = GetPlayerArmour( ID, Sarvai )
;
if( Sarvai > 0 && Sarvai > GetPlayerArmourEx( ID ) )
{
format( Stringas, 135, ""#h_Balta"["#h_Melyna"PRANEРIMAS"#h_Balta"]: Юaidлjas %s buvo "#h_Raudona"UЮBLOKUOTAS. "#Balta"[Рarvш иytai]", ZaidejoVardas( ID ) );
SendClientMessageToAll( -1, Stringas );
BanEx( ID, "[AC] Рarvш иytai." );
}
Re: anti armour hack problem. -
Pooh7 - 19.03.2011
try
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerArmour(playerid, 0);
return 1;
}
Re: anti armour hack problem. -
Gh0sT_ - 19.03.2011
nop, wont work ;S
Re: anti armour hack problem. -
DRIFT_HUNTER - 19.03.2011
pawn Код:
new Spawned[MAX_PLAYERS]
OnPlayerConnect()
{
Spawned[playerid] = 0;
}
OnPlayerSpawn()
{
Spawned[playerid] = 1;
}
new
Float: Sarvai = GetPlayerArmour( ID, Sarvai )
;
if(Spawned[playerid] == 1)
{
if( Sarvai > 0 && Sarvai > GetPlayerArmourEx( ID ) )
{
format( Stringas, 135, ""#h_Balta"["#h_Melyna"PRANEРIMAS"#h_Balta"]: Юaidлjas %s buvo "#h_Raudona"UЮBLOKUOTAS. "#Balta"[Рarvш иytai]", ZaidejoVardas( ID ) );
SendClientMessageToAll( -1, Stringas );
BanEx( ID, "[AC] Рarvш иytai." );
}
}
Re: anti armour hack problem. -
Gh0sT_ - 19.03.2011
I have done this already.. Just with PVars
Its ban me now, when I spawn
Re: anti armour hack problem. -
Flyfishes - 19.03.2011
Set their armour to 0 with SetPlayerArmourEx when they spawn.
Re: anti armour hack problem. -
Gh0sT_ - 19.03.2011
nop :// I get ban when I spawn