Talk:Console/Don't Starve Together Commands/@comment-31427224-20170626210954

I'm still a little confused on how to apply a specific command to another player using the command console.

I understand I need to use "for k,v in pairs(AllPlayers) do command end" as a base for applying a command, but I'm not 100% sure on where everything goes. Let's say I want to give another player (we'll give them the number 3) a single item, like a backpack, remotely. I feel like I should imput "for k,3 in pairs(AllPlayers) do c_give("backpack",1) end" but I also know that has to be wrong.

Any help would be much appreciated!