Problem with armour hack
#1

I have a problem. When player spawn many times he don't get armour, many times he get armour.

Should i do this thing for max players so all will have armour?

pawn Код:
stock SetPlayerArmourAC(playerid, Float:armour)
{
    PlayerArmour[playerid] = armour;
    SetPlayerArmour(playerid, armour);
    return 1;
}
Reply
#2

what are you trying to say
Reply
#3

Okay, when i connect to server and other 3 guys too. So we are 4 okay? Then when i spawn i get armour. When other player spawn he don't get armour. Many time's i don't get armour too.

i have this

pawn Код:
OnPlayerSpawn(playerid)
{
SetPlayerArmourAC(playerid, 100.0);
return 1;
}
Reply
#4

..... Just only add SetPlayerArmour(playerid, 50.0);
I see u use some kind of streamer?
First try without? Not everything has to be done by a streamer.....
Usa the <a_samp> include.
Reply
#5

OMG this is not streamer it's armour anti cheat.
Reply
#6

dont use stock, use like this

pawn Код:
SetPlayerArmourAC(playerid, Float:armour)
{
    PlayerArmour[playerid] = armour;
    SetPlayerArmour(playerid, armour);
    return armour; // Optional
}
If you want real armour protection, dont set armour to 100, set to 99 in all places where you set armour, and make auto ban if player have 100 armour
Reply
#7

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
dont use stock, use like this

pawn Код:
SetPlayerArmourAC(playerid, Float:armour)
{
    PlayerArmour[playerid] = armour;
    SetPlayerArmour(playerid, armour);
    return armour; // Optional
}
If you want real armour protection, dont set armour to 100, set to 99 in all places where you set armour, and make auto ban if player have 100 armour
That function mustn't return a value.
Reply
#8

You mean something like this?

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

public OnPlayerUpdate(playerid)
{
new Armour = GetPlayerArmour(playerid);
f(Armour == 100.0)
{
Ban(playerid);
}
return 1;
}
Reply
#9

Quote:

new Float:PlayerArmour[MAX_PLAYERS];

stock SetPlayerArmourAC(playerid, Float:armour)
{
PlayerArmour[playerid] = armour;
SetPlayerArmour(playerid, armour);
return 1;
}


public OnPlayerUpdate(playerid)
{
new Float:Armour = GetPlayerArmour(playerid);
f(Armour != PlayerArmour[playerid])
{
Ban(playerid);
}
return 1;
}

....
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)