[Plugin] Pawn.RakNet

Why did I get those false informations? Because of what? I mean, the beginning is exactly the same for you and me.
By the way, thanks for updating your wiki ;P
Reply

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Why did I get those false informations? Because of what? I mean, the beginning is exactly the same for you and me.
By the way, thanks for updating your wiki ;P
That happens when the value types are incorrect.
Reply

Anti Fake Kill?
Reply

Quote:
Originally Posted by Smith.
Посмотреть сообщение
Anti Fake Kill?
It is not worth going low-level to make something already possible without the plugin.
Reply

Yes, I know it is possible without the plugin, I have but the players cheat, killing very slowly, so I came to see if I would have the plugin, something more effective, use of Nex-AC but are mocking, thank you Jelly23 for the answer
Reply

Quote:
Originally Posted by Smith.
Посмотреть сообщение
Yes, I know it is possible without the plugin, I have but the players cheat, killing very slowly, so I came to see if I would have the plugin, something more effective, use of Nex-AC but are mocking, thank you Jelly23 for the answer
https://pastebin.com/3reZiksZ

Try that.
Simple but effective.
Reply

Quote:
Originally Posted by Infra
Посмотреть сообщение
https://pastebin.com/3reZiksZ

Try that.
Simple but effective.
Wait what, what if the player dies from falling?
Reply

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
Wait what, what if the player dies from falling?
pawn Код:
if (killerid != INVALID_PLAYER_ID)
    {
        if (!PlayerAttacked[killerid][playerid])
        {
Reply

Oh my bad, I misunderstood your code.
Reply

Quote:
Originally Posted by YourShadow
Посмотреть сообщение
https://github.com/urShadow/Pawn.Rak...isableKeysSync

SetPlayerDisableKeysSync(playerid, KEY_FIRE);

Don't forget to add check for weaponid == 0 (Fist).
I can not understand show me an example of the function please.
Reply

Quote:
Originally Posted by B4dSh33p
Посмотреть сообщение
I can not understand show me an example of the function please.
Код:
new isdisabled=0;

cmd:disablefist() {
    disabled=1;
    SetPlayerDisableKeysSync(playerid, KEY_FIRE);
    return 1;
}

IPacket:PLAYER_SYNC(playerid, BitStream:bs)
{
    new onFootData[PR_OnFootSync];

    BS_IgnoreBits(bs, 8);
    BS_ReadOnFootSync(bs, onFootData);
    if(isdisabled&&GetPlayerWeapon(playerid)==0) {
        ProcessDisabledKeys(playerid, onFootData[PR_lrKey], onFootData[PR_udKey], onFootData[PR_keys]);
    }
    BS_SetWriteOffset(bs, 8);
    BS_WriteOnFootSync(bs, onFootData);

    return 1;
}
Reply

Tranks +REP
Reply

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
Код:
new isdisabled=0;

cmd:disablefist() {
    disabled=1;
    SetPlayerDisableKeysSync(playerid, KEY_FIRE);
    return 1;
}

IPacket:PLAYER_SYNC(playerid, BitStream:bs)
{
    new onFootData[PR_OnFootSync];

    BS_IgnoreBits(bs, 8);
    BS_ReadOnFootSync(bs, onFootData);
    if(isdisabled&&GetPlayerWeapon(playerid)==0) {
        ProcessDisabledKeys(playerid, onFootData[PR_lrKey], onFootData[PR_udKey], onFootData[PR_keys]);
    }
    BS_SetWriteOffset(bs, 8);
    BS_WriteOnFootSync(bs, onFootData);

    return 1;
}
So you won't able to damage others with fist? Will it appear to others as usually when you press KEY_FIRE?
Reply

Why is this happening?

Reply

Quote:
Originally Posted by B4dSh33p
Посмотреть сообщение
Why is this happening?

What's your code?
Reply

is it possible to send PASSENGER_SYNC updates to the same player even if it is paused?
Reply

this script will disable GetPlayerTargetPlayer on everyone with weapon in hands
80% aimbots work on target, with my script you can fix alot of aimbots on your server.

Код:
	IPacket:PLAYER_SYNC(playerid, BitStream:bs)
	{
		if(GetPlayerWeapon(playerid) >= 22 && !IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 34)
		{
			//with ghostmode you can't hit player via weaponid 34
			//there must be a check if player crouch return false
			new onFootData[PR_OnFootSync];
			BS_IgnoreBits(bs, 8);
			BS_ReadOnFootSync(bs, onFootData);
			if(onFootData[PR_specialAction] != 3)
			{
				onFootData[PR_specialAction] = 3;
				BS_SetWriteOffset(bs, 8);
				BS_WriteOnFootSync(bs, onFootData);
			}
		}
		return true;
	}
if you need some anti-cheats, just pm me.
Reply

Quote:
Originally Posted by sniper-termit
Посмотреть сообщение
this script will disable GetPlayerTargetPlayer on everyone with weapon in hands
80% aimbots work on target, with my script you can fix alot of aimbots on your server.

Код:
	IPacket:PLAYER_SYNC(playerid, BitStream:bs)
	{
		if(GetPlayerWeapon(playerid) >= 22 && !IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 34)
		{
			//with ghostmode you can't hit player via weaponid 34
			//there must be a check if player crouch return false
			new onFootData[PR_OnFootSync];
			BS_IgnoreBits(bs, 8);
			BS_ReadOnFootSync(bs, onFootData);
			if(onFootData[PR_specialAction] != 3)
			{
				onFootData[PR_specialAction] = 3;
				BS_SetWriteOffset(bs, 8);
				BS_WriteOnFootSync(bs, onFootData);
			}
		}
		return true;
	}
Care to explain how exactly this stops aimbots? I tried it with silentaim and it doesn't stop it.
Reply

Quote:
Originally Posted by Chaser98
Посмотреть сообщение
Care to explain how exactly this stops aimbots? I tried it with silentaim and it doesn't stop it.
as i said, this script will fix many of aimbots, but not all of them.
this will disable targets on everyone, aimbots working on target will not work.
silent aim sends to server fake bullet data, you need check coords in OnPlayerWeaponShot to fix that cheat.
Reply

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
Код:
new isdisabled=0;

cmd:disablefist() {
    disabled=1;
    SetPlayerDisableKeysSync(playerid, KEY_FIRE);
    return 1;
}

IPacket:PLAYER_SYNC(playerid, BitStream:bs)
{
    new onFootData[PR_OnFootSync];

    BS_IgnoreBits(bs, 8);
    BS_ReadOnFootSync(bs, onFootData);
    if(isdisabled&&GetPlayerWeapon(playerid)==0) {
        ProcessDisabledKeys(playerid, onFootData[PR_lrKey], onFootData[PR_udKey], onFootData[PR_keys]);
    }
    BS_SetWriteOffset(bs, 8);
    BS_WriteOnFootSync(bs, onFootData);

    return 1;
}
Is there a way to do something like SetPlayerDisableKeysSync(playerid, KEY_FIRE); then later SetPlayerEnableKeysSync(playerid, KEY_FIRE);? Cause I only want it to be disabled for certain conditions, but re-enabled later.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)