26.03.2012, 20:10
Quote:
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)
Right hand: 6
Left hand: 5
https://sampwiki.blast.hk/wiki/Bone_IDs
to destroy:
pawn Код:
if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
(for information: you can attach up to 10 objects: index(=slot) 0-9)