What annimation/action will give the player a phone?
#1

Well like the title say. I'm wondering how i can make the player get a phone in his hand when he use his phone?
Currently I'm using this SPECIAL_ACTION_USECELLPHONE and that is not right.

To explain it more I can take this as an exampel..
SPECIAL_ACTION_SMOKE_CIGGY -This will give the player a cigar that is right placed in his hand wich means that I dont need to put object id etc for where the cigar should be.
So I'm wondering what special action make the same but with the cellphone?
Reply
#2

SPECIAL_ACTION_USECELLPHONE
Reply
#3

Like i said, Im allready using that one and that is not right. The player doesnt get a cellphone in his hand and that is what i want him to get
Reply
#4

Then you'll have to use AttachObjectToPlayer function and attach the phone object to his hand.
Reply
#5

So there isnt any action like for the smoke? that automaticlly gives him a cellphone?
Reply
#6

No, i don't think there is, you could still search for another cellphone animation but it's a rare possibility to find one that attaches the phone.
Reply
#7

Ok, How can i then attach it myself? the link you provided didnt work
Reply
#8

https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
Cellphone object IDs 2886, 330, 18866.
Reply
#9

pawn Код:
ApplyAnimation(playerid,"PED","phone_out",4.1,0,0,0,0,0,0);
or
pawn Код:
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,0,0,0,0,0);
Reply
#10

The phone object was removed in a recent SA-MP version (d, e or x) to allow for any phone model to be used. Attach it with SetPlayerAttachedObject and detach it when done on a ~1000 MS timer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)