I changed:
Code:
RegisterHam(Ham_Spawn, "player", "fnSpawn", 0)
to:
Code:
RegisterHam(Ham_Spawn, "player", "fnSpawn", 1)
And still got the error. The error stopped when I added the is_user_alive() check, but no powerup was given after spawning. For some reason it's still calling it before the player is even in the server. I tried killing myself a few times to see if it would invoke it correctly, but no luck.