![]() |
[Ajuda] Como detectar se um player esta nadando? - Versão de Impressão +- Portal SAMP (https://portalsamp.com) +-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5) +--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6) +--- Tópico: [Ajuda] Como detectar se um player esta nadando? (/showthread.php?tid=3004) |
Como detectar se um player esta nadando? - Murilo Cod - 18/11/2022 Como eu posso detectar se um player esta nadando? RE: Como detectar se um player esta nadando? - White_Blue - 18/11/2022 Tem uma include bem legal que adiciona algumas callbacks úteis para o SA-MP. E nela tem a callback IsPlayerSwimming(playerid) onde é possível verificar se o player está nadando. Você também pode usar GetPlayerAnimationIndex. Include: https://github.com/emmet-jones/New-SA-MP-callbacks/blob/master/callbacks.inc GetAnimationIndex: Código PHP: stock IsPlayerSwimming(playerid) return (1538 <= GetPlayerAnimationIndex(playerid) <= 1544) RE: Como detectar se um player esta nadando? - Murilo Cod - 19/11/2022 Obrigado pena que n detecta quando um mobile está nadando mas pra pc detecta normal RE: Como detectar se um player esta nadando? - Carlos Victor - 19/11/2022 Código: stock IsPlayerInWater(playerid) |