05.04.2014, 15:45
You can't just use playerid and modelid, you need to specify the slot (as mentioned by Lidor124) also Bone (click here for a list), it's required for that function, example:
Attaching "effect" (if i'm not wrong, that is for "daiktai") from object model selection to a player's head in slot 0 will be:
Note that the position, rotation will be using default value 0, and scale will be 1. Otherwise it will be attached on specified value.
Attaching "effect" (if i'm not wrong, that is for "daiktai") from object model selection to a player's head in slot 0 will be:
pawn Код:
SetPlayerAttachedObject(playerid, 0, modelid, 2);