ok it works now thx a lot mel!!
next problem
:
the script name is manager and the duell manager system works.
but i also have a boot and kill item for admins that has to be in the onactivateitem part.
but the kill and boot items both act like the duel manager now...
this is the script:
void bootkill()
{
object oCaller = GetItemActivator();
object oTarget = GetItemActivatedTarget();
object oItem = GetItemActivated();
string sTag = GetTag(oItem);
if (sTag == "bootcodem1")//YOU CAN CHANCE THIS TAGG OF A ANOTER.
{
DelayCommand(0.5,BootPC(oTarget));
}
if (sTag == "killcodem1")//YOU CAN CHANCE THIS TAGG OF A ANOTER.
{
effect eDeath= EffectDeath(TRUE);
DelayCommand(0.5,ApplyEffectToObject(DURATION_TYPE_INSTANT,eDeath,oTarget));
}
}
void main()
duel manager script...