OP the player who you want to be spawning items.
it doesn't work in muti-player without OPing the player because... well, look at it like this:
giving yourself stone with NEI in muti-player is the same as doing "/give @p 1" witch the play who is doing to command needs to be OP, or it won't work.