Death Bug Problem SAMP -
waim - 16.08.2012
Hello Guys ..
I have a prob, I'm still alive even if someone kill me !!
Here is a picture from my computer ..
How other players see me :
Re : Death Bug Problem SAMP -
[M.A]Angel[M.A] - 24.08.2012
give me the code of OnPlayerDeath and OnplayerSpawn
_______________
MY SERVER:
Server forum
-------
Be$t Host for your server :
HostingTime Easy control panel with
1Euro for
20 slots.
Re: Death Bug Problem SAMP -
[MWR]Blood - 24.08.2012
Yes, this is a known SA:MP bug. You have to rejoin to get rid of it.
Re: Death Bug Problem SAMP -
newbienoob - 24.08.2012
Try SetPlayerHealth(playerid,0) under OnPlayerDeath
Re: Death Bug Problem SAMP -
RelaxCafe - 24.08.2012
Quote:
Originally Posted by newbienoob
Try SetPlayerHealth(playerid,0) under OnPlayerDeath
|
This would fuck it. The health is already 0. The player is bugged that's why OnPlayerDeath isn't being called for the player.
Re: Death Bug Problem SAMP -
nickdodd25 - 25.08.2012
Well from what i have experienced is if a player has this happen heal them, it makes the player respawn. (Thats what i do to fix it)
Re: Death Bug Problem SAMP -
Nirzor - 25.08.2012
to prevent this i have a method in OnPlayerDeath make an explosion then u will automatically fall in ground and respawn
or in OnPlayerDeath use if gTeam[playerid] = bla bla SpawnPlayer there is a code to spawn use that to prevent this
Re: Death Bug Problem SAMP -
Fool - 27.08.2012
It's kinda simple, all you have to do is jump from a place or let someone ram you, no need to rejoin as suggested above.
Re: Death Bug Problem SAMP -
SAMPHacker - 28.08.2012
Quote:
Try SetPlayerHealth(playerid,0) under OnPlayerDeath
|
That Wouldn't Do any thong because the player health is already 0,
Try This code:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+50);
return 1;
}
Re: Death Bug Problem SAMP -
Kitten - 30.08.2012
Something like this (i'd add it onplayerupdate or onplayerdeath)
pawn Код:
new Float:hp;
GetPlayerHealth(playerid,hp);
if(hp <= 1.0) return SetPlayerHealth(playerid,-1.0);