Help here a bit with my injured system
#7

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Don't use this function after the player is already dead.

Try OnPlayerGiveDamage or OnPlayerTakeDamage
Yeah but when i use this i got tp to red county when i got under 10hp

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:VBLife;
    GetPlayerHealth(playerid,VBLife);
    if(VBLife < 10)
    Wounded[playerid] = 1;
        DoDeath(playerid);

    return true;
}
Reply


Messages In This Thread
Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:10
Re: Help here a bit with my injured system - by ViniBorn - 13.05.2012, 16:16
Re: Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:16
Re: Help here a bit with my injured system - by ViniBorn - 13.05.2012, 16:22
Re: Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:26
Re: Help here a bit with my injured system - by ViniBorn - 13.05.2012, 16:34
Re: Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)