[DUV] Detectar Life
#2

Tenta isso ( mais tira o que vc ja tem ali ):
pawn Код:
new Fraco[MAX_PLAYERS] = false;
public OnPlayerUpdate(playerid){
  new Float:HealthDetect;
  GetPlayerHealth(playerid, HealthDetect);
  if(!Fraco[playerid] && HealthDetect < 40)
  {
    Fraco[playerid]=true;
    ApplyAnimation(playerid,"CRACK","crckdeth1",4.1,0,1,1,1,1);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк estб muito fraco");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Se vocк quiser desistir da vida use /desistir (Nгo Abuse)");
    SendClientMessage(playerid, COLOR_LIGHTRED, "ou Ligue para os Mйdicos /Discar 911");
  }
  return true;
}
public OnPlayerDeath(playerid,killerid,reason){
  Fraco[playerid]=false;
  return true;
}
Reply


Messages In This Thread
[DUV] Detectar Life - by GuikBretas - 11.03.2010, 19:02
Re: [DUV] Detectar Life - by wafffllesss - 11.03.2010, 19:20
Re: [DUV] Detectar Life - by GuikBretas - 11.03.2010, 19:32
Re: [DUV] Detectar Life - by SlashPT - 11.03.2010, 19:38
Re: [DUV] Detectar Life - by GuikBretas - 11.03.2010, 19:40
Re: [DUV] Detectar Life - by SlashPT - 11.03.2010, 19:42
Re: [DUV] Detectar Life - by GuikBretas - 11.03.2010, 19:50
Re: [DUV] Detectar Life - by wafffllesss - 11.03.2010, 23:13

Forum Jump:


Users browsing this thread: 1 Guest(s)