[Ajuda] Soco. - 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] Soco. (
/showthread.php?tid=491683)
Soco. -
i7Core - 31.01.2014
Como Detecto Que Um Jogador Ta Batendo Ne Outro, Soco Sei la, Tou Criando um Servidor De Zumbi, Quero que Infecta o Outro Tendew ? Dicas, Ajuda Ae.
Grato.
Re: Soco. -
[Ips]Guh - 31.01.2014
pawn Code:
if(newkeys == KEY_FIRE && GetPlayerWeapon(playerid) == 0)
Utiliza tal statement na callback
OnPlayerKeyStateChange. Desta forma vocк detecta quando o jogador ataca(clica) e verifica se ele estб atacando com a mгo(Soco).
Abraзos.
Re: Soco. -
i7Core - 31.01.2014
Quote:
Originally Posted by [Ips]Guh
pawn Code:
if(newkeys == KEY_FIRE && GetPlayerWeapon(playerid) == 0)
Utiliza tal statement na callback OnPlayerKeyStateChange. Desta forma vocк detecta quando o jogador ataca(clica) e verifica se ele estб atacando com a mгo(Soco).
Abraзos.
|
Beijo Na Bunda, ++Rep.
Re: Soco. -
ViniBorn - 31.01.2014
O problema de OnPlayerKeyStateChange й que nгo necessбriamente o jogador vai estar batendo em alguйm...
OnPlayerGiveDamage й melhor
Re: Soco. -
i7Core - 31.01.2014
[Resolvido]