Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(extraid == ATTACHMENTS_MENU)
- {
- if(response)
- {
- new
- FreeSlot,
- aIndex
- ;
- aIndex = GetArrayIndexByModel(modelid);
- FreeSlot = Iter_Free(iAttachments[playerid]);
- printf("Free: %i", FreeSlot);
- Iter_Init(iAttachments);
- Iter_Add(iAttachments[playerid], FreeSlot );
- SetPlayerAttachedObject(playerid, FreeSlot, modelid, AttachItems[aIndex][aBone]);
- EditAttachedObject(playerid, FreeSlot);
- BitFlag_On(g_PlayerFlags[playerid], ATTACHMENT_EDIT_MODE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement