26.06.2012, 09:15
yes it will just use this
pawn Code:
stock RemovePlayerAttachedObjects(playerid)
{
new numfound;
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)){
RemovePlayerAttachedObject(playerid,i)
numfound++;
}
}
return
}
//then later on use it like this(any where)
RemovePlayerAttachedObjects(playerid);
//also it can return how many objects were found example
new objects = RemovePlayerAttachedObjects(playerid);
printf("objects found: %d",objects);