It's used to get informations or send informations to the specified player,serverside. E.g:
NPC Code:
with(getplayer(osrs)){
setstring client.chat,Hey osrs!;
say2 New message for you!;
}
You can send any information to
osrs using 'with(getplayer())' that way.