anti armour hack problem.
#1

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." );
        }
Reply
#2

try

pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerArmour(playerid, 0);
    return 1;
}
Reply
#3

nop, wont work ;S
Reply
#4

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." );
        }
        }
Reply
#5

I have done this already.. Just with PVars

Its ban me now, when I spawn
Reply
#6

Set their armour to 0 with SetPlayerArmourEx when they spawn.
Reply
#7

nop :// I get ban when I spawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)