[Ajuda] Detectar
#8

GetPlayerAnimationIndex retorna o нndice da animaзгo executada pelo jogador e necessita apenas de 1 parвmetro: o ID do player.

GetAnimationName retorna o nome e a livraria da animaзгo getada atravйs da funзгo GetPlayerAnimationIndex(playerid)

Exemplo claro da wiki:
Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerAnimationIndex(playerid))
    {
        new animlib[32];
        new animname[32];
        new msg[128];
        GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
        format(msg, 128, "Running anim: %s %s", animlib, animname);
        SendClientMessage(playerid, 0xFFFFFFFF, msg);
    }
    return 1;
}
Reply


Messages In This Thread
Detectar - by Dishz - 27.05.2016, 13:40
Re: Detectar - by zSuYaNw - 27.05.2016, 18:46
Re: Detectar - by Dishz - 27.05.2016, 19:54
Re: Detectar - by F1N4L - 27.05.2016, 19:55
Re: Detectar - by Dishz - 27.05.2016, 20:04
Re: Detectar - by zSuYaNw - 27.05.2016, 20:06
Re: Detectar - by Dishz - 27.05.2016, 20:11
Re: Detectar - by F1N4L - 27.05.2016, 20:12
Re: Detectar - by Dishz - 27.05.2016, 20:20
Re: Detectar - by zSuYaNw - 27.05.2016, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)