AYUDA, POR QUE NO SIRVE D:?
#5

Quote:
Originally Posted by OTACON
Посмотреть сообщение
intenta asi y fijate los printf y la wiki https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage_Es.

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) {
    if(playerid != INVALID_PLAYER_ID) {
        new Float:Vida[2], Float:NuevaVida[2];
        GetPlayerArmour(playerid, Vida[0]);
        GetPlayerHealth(playerid, Vida[1]);
        if(Vida[0] >= 1) {
            NuevaVida[0] = 50.0;
            amount = NuevaVida[0];
            SetPlayerArmour(playerid, - amount);
            printf("ID:%d Perdio %f de Vida.",playerid,amount);
        }
        else if(Vida[1] >= 1) {
            NuevaVida[1] = 50.0;
            amount = NuevaVida[1];
            SetPlayerHealth(playerid, - amount);
            printf("ID:%d Perdio %f de Chaleco.",playerid,amount);
        }
    }
    return true;
}
no sirve
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)