[Ajuda] Procuro por uma FilterScript!
#5

Quote:
Originally Posted by Nill.Oliveira
Посмотреть сообщение
pawn Код:
public OnPlayerUpdate (playerid)
{
    new bla[128], nomean = GetPlayerSpecialAction (playerid);
    if(IsPlayerConnected(playerid))
    {
        format(bla, 128,"Animaзгo atual й : %s" nomean);
        SendClientMessage(playerid, -1, bla);
    }
    return 1;
}
se ta certo ou nao, nun sei por que nгo testei, to online pelo celular.
Fonte : Wiki-SAMP
Quase certo amigo..

O ъnico problema й que "GetPlayerSpecialAnimation" returna o int da animaзгo.

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerAnimationIndex(playerid))
    {
        static
            animname[32],
            animlib[32],
            msg[128]
        ;
       
        GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
        format(msg, 128, "Animaзгo atual: %s %s", animlib, animname);
        SendClientMessage(playerid, 0xFFFFFFFF, msg);
       
        animname[0] = '\0';
        animlib[0]  = '\0';
        msg[0]      = '\0';
    }
    return 1;
}

Tente isto.
Reply


Messages In This Thread
Procuro por uma FilterScript! - by Lessk - 11.02.2013, 03:29
Respuesta: Procuro por uma FilterScript! - by jvssgamer - 11.02.2013, 03:35
Re: Procuro por uma FilterScript! - by Lessk - 11.02.2013, 03:41
Re: Procuro por uma FilterScript! - by Nill.Oliveira - 11.02.2013, 04:19
Re: Procuro por uma FilterScript! - by zSuYaNw - 11.02.2013, 04:42
Re: Procuro por uma FilterScript! - by Nill.Oliveira - 11.02.2013, 04:57
Re: Procuro por uma FilterScript! - by Lessk - 11.02.2013, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)