Well, Thank you Jervan :D
One Question, If Im using 7 inventory slots and I want to mount the weapon to the last one, would I do...
function InventonSpawn(%this, %obj, %player)
{
%player.tool[6] = yourweaponImage;
messageClient(%player.client,'MsgItemPickup','',6,yourweaponImage);
}
package Spawn
{
function GameConnection::spawnPlayer(%this)
{
Parent::spawnPlayer(%this);
InventorySpawn();
}
};
activatePackage(Spawn);
6 instead of 0.