Posts: 1,648
Threads: 482
Joined: Jun 2010
pawn Код:
CMD:steal(playerid, params[])
{
new furni;
for(new o = 1; o < MAX_FURNI; o++)
{
if(IsPlayerInRangeOfPoint(playerid, 3, FurniX[o], FurniY[o], FurniZ[o]))
{
furni = o;
printf(" ID %d" , o);
}
}
printf("Furni Picked %d", FurniObject[furni]);
AttachDynamicObjectToPlayer(FurniObject[furni], playerid,0.1,0.2,0.1,0.1,0.1,0.1);
SetPlayerSpecialAction(playerid, 25);
return 1;
}
It does not work and returns this:
Код:
AttachPlayerObjectToPlayer : removed in 0.3. I can only attach global objects.
I use a streamer for the objects, is there a way to make it work so I can 'carry' objects?
Posts: 1,849
Threads: 96
Joined: Apr 2010
Reputation:
0
Yes that was removed in 0.3. I think now you can only attach global objects to a player.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Thanks. Will this work for dynamic objects?
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
No dude. SetPlayerAttachedObject uses its own object sets; it have no relation with dynamic, global or player objects.
I already provided you the link in my previous post!
Posts: 1,648
Threads: 482
Joined: Jun 2010