Add this code:
Code:
#include <hamsandwich>
#include <engine>
new g_Buttons[10]
public jail_open() {
static i
for(i = 0; i < sizeof(g_Buttons); i++) {
if(g_Buttons[i]) {
ExecuteHamB(Ham_Use, g_Buttons[i], 0, 0, 1, 1.0)
entity_set_float(g_Buttons[i], EV_FL_frame, 0.0)
}
}
}
And call jail_open() when you have to open cages.
__________________