Here is what I am trying to do.
I am trying to make a god mode that will give you 5 items (Already got them down) and make you invinsible. Wouldn't this be correct for that?
functionServerCmdGod
{
package invincible {
function GameConnection::onDeath(%killed)
{
if(%killed.isGod)
return;
parent::onDeath(%killed,%variables);
}
};
activatePackage(invincible);
{
%client.player.tool[0] = nametoID(MMWand);
messageClient(%client, 'MsgItemPickup', '', 0, nametoID(MMWand));
%client.player.tool[1] = nametoID(KeyItem);
messageClient(%client, 'MsgItemPickup', '', 1, nametoID(KeyItem));
%client.player.tool[2] = nametoID(PrintGun);
messageClient(%client, 'MsgItemPickup', '', 2, nametoID(PrintGun));
%client.player.tool[3] = nametoID(Diablo);
messageClient(%client, 'MsgItemPickup', '', 3, nametoID(Diablo));
%client.player.tool[4] = nametoID(MasterrifleItem);
messageClient(%client, 'MsgItemPickup', '', 4, nametoID(MasterrifleItem));
}
}
Then also, what would I put to make it Super admin only?
Thanks.