////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "stone_hammer_1", "bed_simple_1", "getiron", true);
}
void getiron(string &in asItem, string &in asEntity)
{
GiveItem("stone_chipper", "stone_chipper", "stone_chipper", "stone_chipper.tga", 1);
RemoveUseItemCallback("stone_hammer_1");
AddCombineCallback("makecrowbar", "stone_hammer_1", "stone_chipper", "makecrowbar", false);
SetMessage("Messages", "Jail1", 2);
CreateParticleSystemAtEntity("", "ps_hit_metal.ps", "bed_simple_1", false);
}
void makecrowbar(string &in asItemA, string &in asItemB)
{
GiveItem("crowbar", "crowbar", "crowbar", "crowbar.tga", 1);
RemoveItem("stone_chipper");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}[/php