Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/13/19 in all areas

  1. If I ever go for such a system I wouldn't store names and passwords in files but match player IP and log them in if autologin option is enabled for the selected account. For players with dynamic IPs that would be a problem though. The other solution is to generate a unique auth token and save it on the client. The token would link to player's account in the database and fetch the required data. Client storage functions: https://wiki.rage.mp/index.php?title=Client-side_functions#Storage
    2 points
  2. https://wiki.rage.mp/index.php?title=Storage.flush() You can find an example there, so basically you use "mp.storage.data.whateverYouWant = ..." to store the data and "mp.storage.flush()" to save the data from the RAM(temporary storage) to the actual disk (permanent storage), will be run automatically on disconnect, however it is recommended to call it yourself too either after adding some data to be saved either at a regular time because if the player game crashes I don't think it will be time for the automatically flush to run.
    1 point
  3. Дело рук коперфильда видимо
    1 point
  4. Okey can some one give me a Hint on Client storage functions: https://wiki.rage.mp/index.php?title=Client-side_functions#Storage and some code? I am clueless and i think others would benefit from a example. i changed my login process by encrypting passwords using: bcrypt.hash(pass, null, null, function(err, hash) { and bcrypt.compare(pass, sqlPassword, function(err, res2) { at login. Thanks for the Response on this Thread! Hank
    1 point
  5. I couldn't say it better. The user is already bad at keeping his password secret and not using the same password he'll use on your server on more services (probably including mail and so on). Don't make it more bad for him by saving his password plain text on a file.
    1 point
  6. In JS modify the code to trigger on specific event and just trigger the event from C#.
    1 point
  7. This is currently a known issue. Developers have announced a better way of downloading client packages, so fingers crossed
    1 point
×
×
  • Create New...