Advertisement
Guest User

Untitled

a guest
Jul 13th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. if(extraid == ATTACHMENTS_MENU)
  2. {
  3. if(response)
  4. {
  5. new
  6. FreeSlot,
  7. aIndex
  8. ;
  9.  
  10. aIndex = GetArrayIndexByModel(modelid);
  11. FreeSlot = Iter_Free(iAttachments[playerid]);
  12.  
  13. printf("Free: %i", FreeSlot);
  14.  
  15. Iter_Init(iAttachments);
  16. Iter_Add(iAttachments[playerid], FreeSlot );
  17.  
  18. SetPlayerAttachedObject(playerid, FreeSlot, modelid, AttachItems[aIndex][aBone]);
  19. EditAttachedObject(playerid, FreeSlot);
  20.  
  21. BitFlag_On(g_PlayerFlags[playerid], ATTACHMENT_EDIT_MODE);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement