Question about animations
#1

Well, I'm wondering how I can actually put a Cigar / Beer into their hand... At the moment, I have:


pawn Код:
if(strcmp(cmd, "/drink", true) == 0)
    {
        SendClientMessage(playerid, purple, "* You take out a flask and take a chug of your vodka.");
        SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 3000);
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
        return 1;
    }
and...

pawn Код:
if(strcmp(cmd, "/smoke", true) == 0)
    {
      SendClientMessage(playerid, purple, "* You take out a Cigar and light it up.");
      SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
    }
But it doesn't put an actual object into their hand, is there a specific function for this? If so, what is it?

Thanks,

Sky.
Reply
#2

Well i can see on the smoke on you didnt use a return.
But do you load the special actions ? cause if you dont you have to manually load them.
To do that you have to use the command twice i think not sure tho.

/Artix
Reply
#3

Quote:
Originally Posted by [RiFA
Artix ]
Well i can see on the smoke on you didnt use a return.
But do you load the special actions ? cause if you dont you have to manually load them.
To do that you have to use the command twice i think not sure tho.

/Artix
The /drink now gives me a beer bottle, the /smoke doesn't though.
Reply
#4

He said because you need to return 1; on the /smoke.
Reply
#5

Quote:
Originally Posted by Abernethy
He said because you need to return 1; on the /smoke.
Indeedios i did but some people are to lazy to read the whole thing :P.

/Artix
Reply
#6

Quote:
Originally Posted by [RiFA
Artix ]
Quote:
Originally Posted by Abernethy
He said because you need to return 1; on the /smoke.
Indeedios i did but some people are to lazy to read the whole thing :P.

/Artix
Well, i'm sorry.. I sometimes scimm over things, you cannot say you haven't done the same thing once or twice in your life.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)