In ..\csgo\addons\source-python\data\source-python\entities\functions\player\csgo.ini I found the respawn function.
In my script, I'm using it this way:
Syntax: Select all
from players.entity import PlayerEntity
# ...
player = PlayerEntity(index)
player.set_prop_int('m_iPlayerState', 0)
player.set_prop_int('m_lifeState', 512)
player.respawn()
When the .respawn() function is being run I'm getting lots of errors and srcds.exe crashes.
I assume the signature is outdated, or is that a bigger problem?
Edit: Just found out that the same goes for .give_named_item()