[HELP] Attachobject
#2

Quote:
Originally Posted by BigBaws
Посмотреть сообщение
Hello guys im making simple command for player so when player do

/Appeler he will get a call to someone and he will get a attachobject phone on his hand

the probleme is how to add it on the Hand :/

-code-

and when he Hungup /rac the Object Destroy how to destroy it

-code-
pawn Код:
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
4th parameter: bone

Right hand: 6
Left hand: 5
https://sampwiki.blast.hk/wiki/Bone_IDs

to destroy:
pawn Код:
if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
where 0 is the 2nd parameter you used in SetPlayerAttachedObject => in your case: 6

(for information: you can attach up to 10 objects: index(=slot) 0-9)
Reply


Messages In This Thread
[HELP] Attachobject - by BigBaws - 26.03.2012, 19:44
Re: [HELP] Attachobject - by yugecin - 26.03.2012, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)