Well, it worked ... but the deathmessage wouldnt show, and i guess other stuff will happen that im not aware of yet.
Heres the code i used :
package Keepitemsondeath
{
function gameconnection::spawnplayer(%this)
{
parent::spawnplayer(%this);
loaditems(%this);
}
function gameconnection::ondeath(%this)
{
saveitems(%this);
parent::ondeath(%this);
}
};
Activatepackage(Keepitemsondeath);
function loaditems(%c)
{
for(%a=0;%a<=5;%a++)
{
%c.player.tool[%a]=%c.Items[%a];
messageClient(%c, 'MsgItemPickup', '', %a, %c.Items[%a]);
}
}
function saveitems(%c)
{
for(%a=0;%a<=5;%a++)
{
%c.Items[%a]=%c.player.tool[%a];
}
}
It DID make the player get the items on respawn.
Could there be something wrong with the package >.< or other addons colliding with it?
EDIT : Well it wont work in minigames but it does work outside of a minigame ... strange =/