Hacer que se caiga al suelo cuando tenga poca vida
#6

pawn Код:
new bool:Msg[MAX_PLAYERS];//fuera del callback

    new Float:VidaJugador; // Definis la vida del jugador
    GetPlayerHealth(playerid,VidaJugador); // Extraes la vida
    if(VidaJugador <= 15){
        new string[128], Float:POSPH[3];
        GetPlayerPos(playerid,POSPH[0],POSPH[1],POSPH[2]);
        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Aplica la animacion de crack
        if(!Msg[playerid])SendClientMessage(playerid,0xFF6347AA,"Tu estado de salud es pйsimo, llama a un medico."); // Le envia el mensaje al jugador
        Msg[playerid] = true;
    }
    else{
        Msg[playerid] = false;
    }
    return 1;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)