Originally Posted by
Tally
But as soon as the player disconnects, the cvar becomes invalid for that player because cvars are not persistent. You need something persistent.
im using something like this to save my logindata on the clientside for fast loading (+serverside backup(check)
Code:
player setClientCvar( "autologin" , "openscriptmenu login Serthy|unsafepass" ); //load this to script
player setClientCvar( "username" , "Serthy" ); //showed on login menu
player setClientCvar( "password" , "unsafepass" ); //showed on login menu
player setClientCvar( "autoexec" , "vstr autologin" ); //autoexec executes on connect
player execClientCommand( "writeconfig save.cfg" ); //save the config clientside
however, i first saw this or a similar method on some hungarian server app. 2 years ago