AYUDA, POR QUE NO SIRVE D:?
#3

Quote:
Originally Posted by OTACON
Посмотреть сообщение
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;
}
gracias voy a probar y te avisoXD
edit: no sirve, lo mato de disparo y eso que le puse a 8.0 la nueva vida D:
EDIT 2:
use esto:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID && UserPowers[issuerid][TEST] == 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] = 5.0;
            amount = NuevaVida[0];
            SetPlayerArmour(playerid,Vida[0] - amount);
        }
        else if(Vida[1] >= 1)
        {
            NuevaVida[1] = 5.0;
            amount = NuevaVida[1];
            SetPlayerHealth(playerid,Vida[1] - amount);
        }
    }
    return 1;
}
le baja la vida, y luego se le sube WTF! parece hack ayuda xD
osea le disparo y le baja un buen de vida / chaleco pero luego se le sube O_O como si se auto seteara al damage normal D:

Lo hize con OnPlayerShootPlayer y funciona bien pero no me gusta, no se puede usar con ontakedamage? D:
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)