I found out that the code that $trinick made for me a long time ago activated on any player in my server, so I tried to make it work only for my playertype :
package noShootCrouch
{
function Armor::onTrigger(%db, %this, %slot, %pos)
{
if(%slot == 3 && isObject(%this.getMountedImage(%pos?0:2)) )
{
if(%this.getName() $= "BlockSoldierArmor" || %this.getName() $= "BlockSoldierSArmor") //<-- this is the line I added
{
%this.mountImage(%this.getMountedImage(%pos?0:2), %pos*2);
%this.unMountImage(%pos?0:2);
}
}
parent::onTrigger(%db, %this, %slot, %pos);
}
};
activatePackage(noShootCrouch);
but it seems not working,it looks like the game thinks i'm using the wrong playertype,
%this is the player datablock, am i right?
What should I do for making it work only with my shooter playertype? thanks