How do I save a number to a player's .ini?
Posted: Sun Jul 15, 2012 1:34 pm
Title says it all.
Lemme 'splain ... In Mercenaries, players will be able to save their items to the server after "registering", aka picking a 4-digit "PIN" number so that their items can be saved in a global array. When they join the server later, they'll need to provide their PIN so that they can get their stuff back.
However, I'd like to make things more convenient for players by making it so that their PIN is stored in their ini and automatically inputted (via an Enter script) when they join the game. How can I do this? I heard ZH does this with achievements or something.
And no, cheating (via players peeking at and editing their ini's) will not be possible. All of the player's weapons and items get stored on the server. The only thing that will be stored in their ini is their ID number.
So yeah, can anyone halp?
Lemme 'splain ... In Mercenaries, players will be able to save their items to the server after "registering", aka picking a 4-digit "PIN" number so that their items can be saved in a global array. When they join the server later, they'll need to provide their PIN so that they can get their stuff back.
However, I'd like to make things more convenient for players by making it so that their PIN is stored in their ini and automatically inputted (via an Enter script) when they join the game. How can I do this? I heard ZH does this with achievements or something.
And no, cheating (via players peeking at and editing their ini's) will not be possible. All of the player's weapons and items get stored on the server. The only thing that will be stored in their ini is their ID number.
So yeah, can anyone halp?