AYUDA, POR QUE NO SIRVE D:?
#2

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID && UserPowers[issuerid][STARS] == 1 && GetPlayerTeam(issuerid) != GetPlayerTeam(playerid))
    {
        new Float:Vida[2], Float:NuevaVida[2];
        GetPlayerArmour(playerid, Vida[0]);
        GetPlayerHealth(playerid, Vida[1]);
        if(Vida[0] >= 1)
        {
            NuevaVida[0] = 15.0;
            amount = NuevaVida[0];
            SetPlayerArmour(playerid, - amount);
        }
        else if(Vida[1] >= 1)
        {
            NuevaVida[1] = 15.0;
            amount = NuevaVida[1];
            SetPlayerHealth(playerid, - amount);
        }

    }
    return 1;
}
Reply


Messages In This Thread
AYUDA, POR QUE NO SIRVE D:? - by xDarkuzSx - 10.06.2013, 22:25
Respuesta: AYUDA, POR QUE NO SIRVE D:? - by OTACON - 10.06.2013, 23:42
OTACON - by xDarkuzSx - 11.06.2013, 03:26
Respuesta: AYUDA, POR QUE NO SIRVE D:? - by OTACON - 11.06.2013, 15:42
Respuesta: AYUDA, POR QUE NO SIRVE D:? - by xDarkuzSx - 11.06.2013, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)