How to attach a cigarette to player's hand?
#1

Hi
In "OnPlayerRequestClass" i've put this animations:
Код:
ApplyAnimation(playerid,"SHOP", "Smoke_RYD", 4.1, 1, 0, 0, 0, 0);
The animation works perfectly but now I would like to attach a cigarette on the player's hand.
It's possible make this? If yes, how i can do it?
Reply
#2

With AttachObjectToPlayer,
https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
I assume there is a cigarrete object.
Reply
#3

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
Reply
#4

Mmh... it semi-work... The cigarette was attached succesfully but the anim now not play... anyway i prefer this. thanks for the help Emmet!
Reply
#5

here my friend

Quote:

if (strcmp("/ciggy", cmdtext, true, 10) == 0||strcmp("/CIGGY", cmdtext, true, 10) == 0)
{
ApplyAnimation(playerid, "SHOP", "Smoke_RYD", 4.1, 1, 0, 0, 0, 0);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);

return 1;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)