SA-MP Forums Archive
[Ajuda] Por que sу ta meio funcionando? - 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] Por que sу ta meio funcionando? (/showthread.php?tid=589584)



Por que sу ta meio funcionando? - gmstrikker - 20.09.2015

Tava querendo zerar o dano de todas as armas e em ontakedamage coloquei isso
Код:
			new Float:a;
			GetPlayerArmour(playerid, a);
			new Float:h;
			GetPlayerHealth(playerid, h);
			
			SetPlayerHealth(playerid, h);
			SetPlayerArmour(playerid, a);
Mas atй que ta funcionando, se a arma for uma arma tipo desert eagle (tiros de vagar), mas se eu descarregar MP5 por exemplo uma hora vai diminuindo o dano, nгo sei o porque, alguйm me ajuda aн


Re: Por que sу ta meio funcionando? - zPain - 20.09.2015

Tente usar OnPlayerWeaponShot.

Quote:

Return Values:
  • 0 - Prevent the bullet from causing damage.
  • 1 - Allow the bullet to cause damage.



Re: Por que sу ta meio funcionando? - gmstrikker - 20.09.2015

Mas meu sistema de danos nas armas ta todo em ontakedamage (tipo modifiquei o ataque das armas, troquei o valor dos danos na cabeзa, perna, sу ta bugando se for arma rapida tipo mp5)

Passo tudo pra essa callback ai?


Re: Por que sу ta meio funcionando? - gmstrikker - 21.09.2015

Parece que a checagem й muito lenta pra eu fazer as paradas do dano, o que eu faзo?