SA-MP Forums Archive
[Plugin] Pawn.RakNet - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Pawn.RakNet (/showthread.php?tid=640306)

Pages: 1 2 3 4 5 6 7 8 9


Re: Pawn.RakNet - Dayrion - 13.01.2018

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


Re: Pawn.RakNet - Jelly23 - 13.01.2018

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.


Re: Pawn.RakNet - Smith. - 15.01.2018

Anti Fake Kill?


Re: Pawn.RakNet - Jelly23 - 15.01.2018

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


Re: Pawn.RakNet - Smith. - 15.01.2018

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


Re: Pawn.RakNet - Infra - 15.01.2018

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.


Re: Pawn.RakNet - Kaperstone - 15.01.2018

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

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


Re: Pawn.RakNet - Infra - 15.01.2018

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



Re: Pawn.RakNet - Kaperstone - 15.01.2018

Oh my bad, I misunderstood your code.


Re: Pawn.RakNet - write the best anticheat - B4dSh33p - 24.01.2018

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.


Re: Pawn.RakNet - write the best anticheat - Kaperstone - 24.01.2018

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;
}



Re: Pawn.RakNet - B4dSh33p - 24.01.2018

Tranks +REP


Re: Pawn.RakNet - write the best anticheat - zsoolt997 - 26.01.2018

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?


Re: Pawn.RakNet - B4dSh33p - 03.02.2018

Why is this happening?




Re: Pawn.RakNet - Dayrion - 03.02.2018

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

What's your code?


Re: Pawn.RakNet - ZaHHak - 07.02.2018

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


Re: Pawn.RakNet - sniper-termit - 14.02.2018

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.


Re: Pawn.RakNet - Chaser98 - 14.02.2018

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.


Re: Pawn.RakNet - sniper-termit - 15.02.2018

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.


Re: Pawn.RakNet - write the best anticheat - Chaprnks - 17.02.2018

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.