SA-MP Forums Archive
[Ajuda] No lag & show damage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] No lag & show damage (/showthread.php?tid=349838)



No lag & show damage - fireplayer - 10.06.2012

Estou em busca de um Fs, ou comando ъtil que deixe o lag na skin, ou pelo menos diminua a distвncia para se atirar.

E tb de um show damage, que mostre quando vocк acerta o tiro em alguem (Como nos servers de A/D)

Se alguem puder ajudar, fico grato =]


Re: [AJUDA] No lag & show damage - paulor - 10.06.2012

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) {
    new Float: Life[2];
    GetPlayerHealth(damagedid, Life[0]);
    GetPlayerArmour(damagedid, Life[1]);
    if(Life[1]) {
        if(amount > Life[1]) {
            Life[0] = Life[0] - (amount - Life[1]);
            SetPlayerArmour(damagedid, 0.0);
            SetPlayerHealth(damagedid, Life[0]);
            return 1;
        }
        Life[1] = Life[1] - amount;
        SetPlayerArmour(damagedid, Life[1]);
    } else {
       Life[0] = Life[0] - amount;
        SetPlayerHealth(damagedid, Life[0]);
    }
    return 1;
}



Re: [AJUDA] No lag & show damage - fireplayer - 10.06.2012

Meu gm nгo tem onplayergivedamage

Onde posso colocб-lo?

tem algum jeito de colocar como fs?


Re: [AJUDA] No lag & show damage - leonardo1434 - 10.06.2012

a public OnPlayerGiveDamage й uma funзгo nativa do samp, apenas coloca-la em qualquer parte go gm.


Respuesta: [AJUDA] No lag & show damage - Luciano* - 10.06.2012

Cara as vezes da um bug chato quando voce mata alguem, no chatkill aparece que o cara se matou porque isso?


Respuesta: [AJUDA] No lag & show damage - ArT_DsL - 20.01.2013

Aqui funcionou de boa o FS mais quando eu logo como ADM eu tomo 1tiro ou 1soco e morro :/