[HELP]Anims and object
#1

Can anyone give me an example on how to create an anim(drinking) and show an object in hand while anim is on.
Reply
#2

https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#3

oh thx
Reply
#4

I got a problem with anims when I code.

Errors
Код:
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\0.3d\gamemodes\test.pwn(432) : error 035: argument type mismatch (argument 2)
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\0.3d\gamemodes\test.pwn(439) : error 035: argument type mismatch (argument 2)
Codes
pawn Код:
if(dialogid == 4)
    {
        if(response == 1)
        {
            if(listitem == 0)
            {
                new string[128];
                format(string, sizeof(string), "[SYSTEM]:Here is your juice.");
                SendClientMessage(playerid, -1, string);
                ApplyAnimation(playerid, SPECIAL_ACTION_DRINK_BEER, 4, 1, 1, 1, 1, 1, 1);// line 432
            }
            if(listitem == 1)
            {
                new string[128];
                format(string, sizeof(string), "[SYSTEM]:Here is your tea.");
                SendClientMessage(playerid, -1, string);
                ApplyAnimation(playerid, SPECIAL_ACTION_DRINK_BEER, 4, 1, 1, 1, 1, 1, 1);// line 439
            }
        }
    }
Reply
#5

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
pawn Код:
if(dialogid == 4)
{
    if(response == 1)
    {
        new string[128];
        if(listitem == 0)
        {
            format(string, sizeof(string), "[SYSTEM]:Here is your juice.");                
            SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);// line 432
        }
        if(listitem == 1)
        {                
            format(string, sizeof(string), "[SYSTEM]:Here is your tea.");
            SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);// line 439
        }
        SendClientMessage(playerid, -1, string);
    }
}
Reply
#6

oh thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)