
It didn't work. Still won't compile.
Anyway, I was thinking and tinkering. I thought it would be better if you lost health for picking up a backpack. A penalty for all the goodies. So I tried some coding on my own:
PLAYER BACKPACKS
===============================================================================
*/
void() BackpackTouch =
{
local string s;
local float best, old, new;
local entity stemp;
local float acount;
local float b_switch;
self.touch=health_touch;
self.healamount = -25;
if (self.health <= 0)
return;
if (deathmatch == 4)
if (other.invincible_time > 0)
return;
I added the code in bold.
The good news is it worked. When I grab the backpack I lost 25 health.

Bad news is if I died I wouldn't respawn. I'd just lie there on the ground dead.

How do I get to respawn?