SA-MP Forums Archive
[Ajuda] aumentar dano de todas as armas - 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] aumentar dano de todas as armas (/showthread.php?tid=455177)



aumentar dano de todas as armas - yagomapper - 31.07.2013

olб galera da fуrum samp estou a procura de uma fs que aumente o dano de todas as armas para deixar o servidor mais RPG.

queria aumentar o dobro de dano de todas as armas.
jб procurei no ****** mais achei e testei e nгo mudava nada queria um que funciona e que seje para todas as armas.



Re: aumentar dano de todas as armas - FenixBorn - 31.07.2013

Vк se serve
https://sampforum.blast.hk/showthread.php?tid=191121


Re: aumentar dano de todas as armas - Mteck - 31.07.2013

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID) // If not self-inflicted
    {
        new
            infoString[128],
            weaponName[24],
            victimName[MAX_PLAYER_NAME],
            attackerName[MAX_PLAYER_NAME];
 
        GetPlayerName(playerid, victimName, sizeof (victimName));
        GetPlayerName(issuerid, attackerName, sizeof (attackerName));
 
        GetWeaponName(weaponid, weaponName, sizeof (weaponName));
 
        format(infoString, sizeof(infoString), "%s has made %.0f damage to %s, weapon: %s", attackerName, amount, victimName, weaponName);
        SendClientMessageToAll(-1, infoString);
    }
    return 1;
}
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
    {
        // One shot to kill with sniper rifle
        SetPlayerHealth(playerid, 0.0);
    }
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage


Re: aumentar dano de todas as armas - -Rafinha_FusioN- - 01.08.2013

Mteck e so meter a public lб e defina-la ?