Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock TakeWeaponsBySlots(playerid, slots[], size = sizeof(slots))
- {
- new slotid, value, c, weapons[26], give = true;
- if(size < 1) return 1;
- for(c = 0; c < 13; c++) GetPlayerWeaponData(playerid, c, weapons[c], weapons[c + 13]);
- ResetPlayerWeapons(playerid);
- for(c = 0; c < 13; c++)
- {
- for(slotid = 0; slotid < size; slotid++)
- {
- value = slots[slotid];
- if(value == 0) continue;
- else if(value == c)
- {
- give = false;
- break;
- }
- }
- if(!give)
- {
- give = true;
- continue;
- }
- GivePlayerWeapon(playerid, weapons[c], weapons[c + 13]);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement