Look in spawnplayer(). And edit the callbackdamage. Return damage to 0 if he is spawnprotected