Waht I tried and didnt work.
#include "x2_inc_switches"
void main()
{
int nEvent = GetUserDefinedItemEventNumber();
if(nEvent != X2_ITEM_EVENT_ACTIVATE) return;
object oUser = GetItemActivator();
if (!GetIsDM(oUser)) return;
object oPlayer = GetItemActivatedTarget();
if (!GetIsPC(oPlayer))
BootPC(oPlayer);
}