Something like this, but with permissions.

[Command("RCID")]
private void RCID(IPlayer iPlayer, string command, string[] args)
{
	BasePlayer bPlayer = iPlayer.Object as BasePlayer;
	RaycastHit hit;
	Physics.Raycast(bPlayer.eyes.HeadRay(), out hit);
	var target = hit.GetEntity();
	
	if (target is IRemoteControllable)
	{
		IRemoteControllable entRC = target as IRemoteControllable;
		if (args.Length == 0)
		{
			iPlayer.Reply("RC ID: " + entRC.GetIdentifier());
		}
		if (args.Length == 1)
		{
			entRC.UpdateIdentifier(args[0]);
			iPlayer.Message("ID set to: " + args[0]);
			
		}
	}
	else
	{
		iPlayer.Reply("Not remotely controllable");
	}
}