You are able to kill peoples while dead - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: You are able to kill peoples while dead (
/showthread.php?tid=495492)
You are able to kill peoples while dead -
Pro_LiZzy - 17.02.2014
Dunno if this is already reported and if there is any format to report bug so I will just type it like this:
You know guys when you sometimes die but you body is still not dead on floor. I mean you are tehnicly dead but due to lag you are still able to move even others dont see you are moving. Well now you can kill peoples while you are dead because bullets are virtual or something idk. On 0.3x we didnt had this problem.
Here are few pictures how it looks like:
http://i.imgur.com/OEDgcqz.png
http://i.imgur.com/sd6XI2d.png
This can be done better with fire because if you know how sometimes you die because of fire and your body wont lie down on flooor till fire if off. It can be abused alot.
Respuesta: You are able to kill peoples while dead -
CrossOv3r - 17.02.2014
I can confirm this.
Re: You are able to kill peoples while dead -
Konstantinos - 17.02.2014
However OnPlayerDeath is called, right? If so, you can prevent any damage is given by those players by returning false in the new callback. This might work, I haven't 0.3z installed yet so I cannot test it.
pawn Код:
// global:
static
bool: IsPlayerDead[MAX_PLAYERS char];
// OnPlayerConnect:
IsPlayerDead{playerid} = false;
// OnPlayerDeath:
IsPlayerDead{playerid} = true;
// OnPlayerSpawn:
IsPlayerDead{playerid} = false;
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if (hittype == BULLET_HIT_TYPE_PLAYER && IsPlayerDead{playerid}) return 0;
return 1;
}