21.02.2014, 21:39
I've tried every tutorial and tried to combine every position saving filterscript I could find, but the variables always shadow some others at a preceding level. I can't figure it out myself after countless tries, so here's what I simply need:
When the player logs in successfully, instead of opening dialog 1 and going through the skin changer, have the player spawn at the coords they logged out with, that's it. The position data should be saved and loaded from the same file as the money and skin file.
Extra Credit:
If you want to go out of your way even further, I would like for you to add a dcmd command that will ask a player if they want to reset their stats -- deleting their ini file, and resetting to show them the registration dialog (or just kicking them and telling them to relog to set up a new account)
Here's the script-- its not mine, but I have made a lot of changes to it already, and still have plenty more to go. I couldn't post it raw because its about 2600 lines of code. I removed the owners credits to try to make the file small enough to load here, but it didnt work, so I'll be re-adding them if I ever decide to release my server: http://www.mediafire.com/view/ntt7vi...min_Script.txt
When the player logs in successfully, instead of opening dialog 1 and going through the skin changer, have the player spawn at the coords they logged out with, that's it. The position data should be saved and loaded from the same file as the money and skin file.
Extra Credit:
If you want to go out of your way even further, I would like for you to add a dcmd command that will ask a player if they want to reset their stats -- deleting their ini file, and resetting to show them the registration dialog (or just kicking them and telling them to relog to set up a new account)
Here's the script-- its not mine, but I have made a lot of changes to it already, and still have plenty more to go. I couldn't post it raw because its about 2600 lines of code. I removed the owners credits to try to make the file small enough to load here, but it didnt work, so I'll be re-adding them if I ever decide to release my server: http://www.mediafire.com/view/ntt7vi...min_Script.txt