I think you missed my point on some things.
Firstly look a few posts below Xuntrics main xp tutorial. PM has posted a very similar code snippet with lots of bugs and stuff fixed. You should be able to cut and paste what you need to get a basic vault system running.
Spend some time reading and understanding what the plugin does and how it works then adapt it to work for your purposes.
For the flashlight..
To block a users flashlight (using engine module, I can do a fakemeta example as well if you want)
just call enable_flashlight(id) to enable and disabled_flashlight(id) to disable.
client_impulse is automatically run by the engine module when a user enters an impulse command
Code:
new bool:flashdisabled[33]
public client_connect(id)
{
flashdisabled[id]=false
}
public disable_flashlight(id)
{
flashdisabled[id]=true
client_cmd(id,"impulse 100")
//might wanna inform the user as well
}
public enable_flashlight(id)
{
flashdisabled[id]=false
//might wanna inform the user as well
}
public client_impulse(id,impulse)
{
if (flashdisabled[id] && impulse==100)
{
//user has flashlight disabled and they sent the impulse 100 command (flashlight)
return PLUGIN_HANDLED
//plugin_handled will block the impulse cmd
}
return PLUGIN_CONTINUE
}
Care to expand more on your preferred approach for revivals. I'm pretty sure cheap suit's will have the basic code outlines you need just not in the exact form you want