[Include] OnPlayerKnifePlayer - OPKP.inc
#8

Quote:
Originally Posted by Whitetiger
Посмотреть сообщение
How does that decrease accuracy? As if yours can't be spoofed, (it can.) if anything it improves accuracy. You could still add distance, and animation checks if you wanted, but both are redundant.
That is true, - how-ever I am assuming that the damage value won't be over 100 if the other player is desynced, how-ever I'd have to confirm this.

Quote:
Originally Posted by LadyNyuuu
Посмотреть сообщение
Maybe you can improve this. If you knife someone from behind the damage says 0 (zero) and the killed guy gets desynced. I build a fix for that. Just call a respawn on the same position for the player.
Its good if you use:

//Call this after the zero damage event with the knife. I got some problems with calling this directly so i used a small timerdelay and put that in a "public".
Код:
new Float:X,Float:Y,Float:Z,Float:Angle;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), X,Y,Z, Angle, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
The Player will be spawned without weapons, maybe you store them every time he get a new gun and give them back some time after the Spawn.

Maybe you can upgrade that to:
OnPlayerKnifePlayer(playerid,targetid,Float:damage ,bool:instantkill) // Instantkill if it cause a zero damage and begins the desync.
OnPlayerKnifeRespawn(playerid) // called on spawn after the player got fixed against desync.
Will be taken into consideration.
Reply


Messages In This Thread
OnPlayerKnifePlayer - OPKP.inc - by Abagail - 07.10.2014, 23:58
Re: OnPlayerKnifePlayer - OPKP.inc - by Whitetiger - 08.10.2014, 00:08
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 08.10.2014, 00:11
Re : Re: OnPlayerKnifePlayer - OPKP.inc - by DaTa[X] - 08.10.2014, 02:40
Re: Re : Re: OnPlayerKnifePlayer - OPKP.inc - by Dignity - 08.10.2014, 02:55
Re: OnPlayerKnifePlayer - OPKP.inc - by Whitetiger - 08.10.2014, 03:20
AW: OnPlayerKnifePlayer - OPKP.inc - by LadyNyuuu - 08.10.2014, 03:56
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 08.10.2014, 11:34
Re: OnPlayerKnifePlayer - OPKP.inc - by Rudy_ - 08.10.2014, 14:08
Re: OnPlayerKnifePlayer - OPKP.inc - by Emmet_ - 11.10.2014, 20:16
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 11.10.2014, 21:13
Re: OnPlayerKnifePlayer - OPKP.inc - by Lordzy - 12.10.2014, 02:17
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 12.10.2014, 13:38
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 11.11.2014, 21:20
Re: OnPlayerKnifePlayer - OPKP.inc - by Write - 19.11.2014, 12:07
Re: OnPlayerKnifePlayer - OPKP.inc - by ProKillerpa - 19.11.2014, 13:20
Re: OnPlayerKnifePlayer - OPKP.inc - by Kar - 19.11.2014, 14:44
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 19.11.2014, 20:23
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 20.11.2014, 20:53
Re: OnPlayerKnifePlayer - OPKP.inc - by Whitetiger - 20.11.2014, 21:33
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 20.11.2014, 21:36
Re: OnPlayerKnifePlayer - OPKP.inc - by Whitetiger - 20.11.2014, 21:56
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 20.11.2014, 23:32
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 13.12.2014, 23:16
Re: OnPlayerKnifePlayer - OPKP.inc - by TRTDM - 14.12.2014, 01:57
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 14.12.2014, 02:00
Re: OnPlayerKnifePlayer - OPKP.inc - by Onfroi - 29.12.2014, 23:30
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 29.12.2014, 23:38
Re: OnPlayerKnifePlayer - OPKP.inc - by Puppy - 30.12.2014, 01:05
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 30.12.2014, 01:21
Re: OnPlayerKnifePlayer - OPKP.inc - by Pottus - 09.11.2015, 23:49
Re: OnPlayerKnifePlayer - OPKP.inc - by Abagail - 10.11.2015, 00:15
Re: OnPlayerKnifePlayer - OPKP.inc - by Pottus - 10.11.2015, 00:31

Forum Jump:


Users browsing this thread: 4 Guest(s)