PDA

View Full Version : Player score and deaths



Jorgur
09-05-2017, 11:42 AM
I want to make a plugin where the score and deaths carry over between levels.
Is there a way I can get/set the score and set the deaths of a player?

anggara_nothing
10-05-2017, 01:41 AM
http://forums.svencoop.com/showthread.php/44341-Request-Save-scores-between-maps-changes

Jorgur
10-05-2017, 09:54 AM
And how can I set the deaths?

EDIT:
I found out that you can use pPlayer.m_iDeaths

Jorgur
10-05-2017, 05:18 PM
New question: I want to use keep_inventory to decide whether or not the score and deaths are remembered. It seems CPersistence is exclusive to map scripts, so I cannot use that. Any ideas?