SetPlayerHoldingObject -> 0.3c feature.
#3

Use RemovePlayerAttachedObject. As far as I remember, the update for 0.3c introduced indexes for attached objects, simply use a for() loop to loop through every index and remove the object by the index.

I've written some pseudo-code for you to use (should work, but I haven't tested it and I haven't really used the object attaching functions yet):

pawn Код:
for(new i = 0; i < 5; i++) {
   RemovePlayerAttachedObject(playerid, i);
}
Reply


Messages In This Thread
SetPlayerHoldingObject -> 0.3c feature. - by Chenjiang - 07.03.2011, 11:12
AW: SetPlayerHoldingObject -> 0.3c feature. - by Chenjiang - 08.03.2011, 20:40
Re: SetPlayerHoldingObject -> 0.3c feature. - by Calgon - 08.03.2011, 20:52
AW: SetPlayerHoldingObject -> 0.3c feature. - by Chenjiang - 09.03.2011, 08:29

Forum Jump:


Users browsing this thread: 1 Guest(s)