[Duv] OnPlayerUpdate
#2

Quote:
Originally Posted by Krypton
existe algum "sensor"(tipo onplayerdeath) que indentifique a mudanзa de vida para menor de um certo valor tipo "quem tiver a vida menor que 10 vai morrer"

OnPlayerHealth Existe?

Faзa.
Eu usaria o OnPlayerUpdate

pawn Code:
public OnPlayerUpdate(playerid)
{
    new
      str[128],
        Nome[64];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(str, sizeof(str), "O jogador %s estб morrendo!");
    if(GetPlayerHealth(playerid) <= 10.0) return SendClientMessageToAll(COR, str);
    return 1;
}
Reply


Messages In This Thread
[Duv] OnPlayerUpdate - by Krypton - 11.01.2010, 18:19
Re: [Duv] OnPlayerHealth - by speliarmos - 11.01.2010, 18:28
Re: [Duv] OnPlayerHealth - by Krypton - 11.01.2010, 18:32
Re: [Duv] OnPlayerHealth - by speliarmos - 11.01.2010, 18:41
Re: [Duv] OnPlayerHealth - by Krypton - 11.01.2010, 19:28
Re: [Duv] OnPlayerHealth - by Guilherme_Canani - 11.01.2010, 19:35
Re: [Duv] OnPlayerHealth - by speliarmos - 11.01.2010, 19:40
Re: [Duv] OnPlayerHealth - by Krypton - 11.01.2010, 21:06
Re: [Duv] OnPlayerUpdate - by GhOsT[X] - 12.01.2010, 18:43

Forum Jump:


Users browsing this thread: 2 Guest(s)