[Pedido] Dano das 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: [Pedido] Dano das Armas (
/showthread.php?tid=537603)
Dano das Armas -
SukMathcuck - 16.09.2014
Ola povo й um pedido rбpido, pq vou almoзar ae enquanto almoзo me ajudam ae pf, tipo queria saber como alterar o dano das armas, tem algum cуdigo? pf rapidam, valendo +rep!
Re: Dano das Armas -
ipsLuan - 16.09.2014
Na versгo 0.3z, se eu nгo me engano o Kalcor fez um tutorial de como alterar. Olhe no tуpico oficial da versгo que vocк irб encontrar.
Eu acho que й OnPlayerWeaponShot...
Re: Dano das Armas -
SukMathcuck - 16.09.2014
Nгo encontrei.
Re: Dano das Armas -
ipsLuan - 16.09.2014
Verifique este tуpico,
http://forum.sa-mp.com/showthread.ph...=1#post3198619.
Re: Dano das Armas -
SukMathcuck - 16.09.2014
Man, que porra й essa? ' . '
Re: Dano das Armas -
ipsLuan - 16.09.2014
Meu celular copiou errado, tente este:
https://sampforum.blast.hk/showthread.php?tid=417265
Re: Dano das Armas -
SukMathcuck - 16.09.2014
Achei esse, vc me recomendar usar ?
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(weaponid == 7)
SetPlayerHealth(playerid,health-12);
if(weaponid == 8)
SetPlayerHealth(playerid,health-90);
if(weaponid == 4)
SetPlayerHealth(playerid,health-78);
if(weaponid == 3)
SetPlayerHealth(playerid,health-11);
if(weaponid == 5)
SetPlayerHealth(playerid,health-11);
if(weaponid == 23)
SetPlayerHealth(playerid,health-53);
if(weaponid == 24)
SetPlayerHealth(playerid,health-90);
if(weaponid == 22)
SetPlayerHealth(playerid,health-39);
if(weaponid == 25)
SetPlayerHealth(playerid,health-65);
if(weaponid == 26)
SetPlayerHealth(playerid,health-48);
if(weaponid == 27)
SetPlayerHealth(playerid,health-32);
if(weaponid == 28)
SetPlayerHealth(playerid,health-28);
if(weaponid == 29)
SetPlayerHealth(playerid,health-31);
if(weaponid == 30)
SetPlayerHealth(playerid,health-41);
if(weaponid == 31)
SetPlayerHealth(playerid,health-41);
if(weaponid == 32)
SetPlayerHealth(playerid,health-27);
if(weaponid == 33)
SetPlayerHealth(playerid,health-97);
if(weaponid == 34)
SetPlayerHealth(playerid,health-213);
if(weaponid == 33)
SetPlayerHealth(playerid,health-97);
if(weaponid == 33) SetPlayerHealth(playerid,health-97);
}
return 1;
}
Como altero o colete tambйm? como altero?
Re: Dano das Armas -
ipsLuan - 16.09.2014
Sim, recomendo. Pra alterar o colete use SetPlayerArmour, com a mesma sintaxe.
Re: Dano das Armas -
SukMathcuck - 16.09.2014
Removido!
Re: Dano das Armas -
ipsLuan - 16.09.2014
Resolveu?