This is very strange. The cog compiles and runs, but it doesn't set the inventory as it should. Here is the part of the code that's just not working:
I got the code directly from some cogs on massassi that work, so I'm not sure why it won't work on mine! Thanks in advance.
Code:
That's under the 'startup' section. I also have it under respawn and it doesn't work either > player = GetLocalPlayerThing(); # Remove all weapons setInv(player, 1, 0); setInv(player, 2, 0); setInv(player, 3, 0); setInv(player, 4, 0); setInv(player, 5, 0); setInv(player, 6, 0); setInv(player, 7, 0); setInv(player, 8, 0); setInv(player, 9, 0); setInv(player, 10, 0); If(GetCurWeapon(player) == 10) jkSetFlags(player, 0x8); SetCurWeapon(player, 0);
![http://forums.massassi.net/html/frown.gif [http://forums.massassi.net/html/frown.gif]](http://forums.massassi.net/html/frown.gif)