Making sure someone is dead?
#2

You could try dropping them from height, that usually works.
pawn Код:
if(damageAmount > 0.0)
{
    new Float:tmpFloat;
    GetPlayerHealth(i, tmpFloat);
    SetPlayerHealth(i, floatsub(tmpFloat, damageAmount));
    if((tmpFloat - damageAmount) <= 0.0)
    {
        new Float:x, Float:y, Float:z;
        SetPlayerHealth(i, -99999);
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(playerid, x ,y, z + 10.0);
    }
    else SetPlayerHealth(i, floatsub(tmpFloat, damageAmount));
}
Reply


Messages In This Thread
Making sure someone is dead? - by TaMeD - 22.06.2011, 05:16
Re: Making sure someone is dead? - by iggy1 - 22.06.2011, 05:44

Forum Jump:


Users browsing this thread: 1 Guest(s)