Question about animations - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about animations (
/showthread.php?tid=95235)
Question about animations -
(.Aztec); - 03.09.2009
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.
Re: Question about animations -
Doppeyy - 03.09.2009
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
Re: Question about animations -
(.Aztec); - 03.09.2009
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.
Re: Question about animations -
Abernethy - 03.09.2009
He said because you need to return 1; on the /smoke.
Re: Question about animations -
Doppeyy - 03.09.2009
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
Re: Question about animations -
(.Aztec); - 03.09.2009
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.