You can't use Weapon ID 30 and 31 at same time. Because both need the same slot. Take a look here:
https://sampwiki.blast.hk/wiki/Weapons
Mmm, you can change them with other weapon, Weapon IDs 2, 3, 4 need the slot 1. So each slot support one weapon. You have to choose what weapon do you want.
For example this will give you:
-One knife (Knife ID = 4 | Uses slot 1)
-A MP5 with 100 bullets. (MP5 ID = 29 | Uses slot 4)
-A AK-47 with 200 bullets. (AK-47 ID = 30 | Uses slot 5)
pawn Код:
AddPlayerClass(272,1968.1708,1623.3397,12.8613,266.9504,4,1,29,100,4,1);
Finally, for example you can't get the AK-47 and the M4 at same time because they're of the same class and each one needs the same slot, so each slot, support just one weapon.
Best regards, I hope you understand.