04-01-2012, 06:02 AM
what would i have to do to fix this when ever i click the hammer on the padlock just says cant use item this way
void OnStart()
{
AddUseItemCallback("", "stone_hammer_1", "padlock_1", "unlock_prison_section_1", true);
}
void unlock_prison_section_1(string &in asItem, string &in asEntity)
{
SetPropHealth("padlock_1", 0.0f);
}
void BreakPadlock (string &in asItem, string &in asEntity)
{
SetEntityActive("padlock_broken_1",true);
SetEntityActive("padlock_1",false);
RemoveItem("stone_hammer_1");
}
void OnStart()
{
AddUseItemCallback("", "stone_hammer_1", "padlock_1", "unlock_prison_section_1", true);
}
void unlock_prison_section_1(string &in asItem, string &in asEntity)
{
SetPropHealth("padlock_1", 0.0f);
}
void BreakPadlock (string &in asItem, string &in asEntity)
{
SetEntityActive("padlock_broken_1",true);
SetEntityActive("padlock_1",false);
RemoveItem("stone_hammer_1");
}