BUt how do you make a ini file load depending on which player it it?
Here is some puesado code.
1. Alright, when you type in your name in the log in screen, the server checks for your ini file that is named after you, downloads that file, and matches the password your typed in to the one inside the ini file. If they match, it lets you read the rest of the variables and positions, else it kicks you off that file and deletes the ini. (Hopefully your smart enough to encrypt the inis so no one can really heck them and see the password.)
1-Level Engine
2. What do you mean by level engine? Be more descriptive.
2-Party Engine
3. Again, be more descriptive on what you mean.
3-Re-spawn Engine (Enemies and Heroes)
4. Save the room, x pos, y pos and z pos (Depth in a 2d game.) into an ini file. When the person logs in, (Check number one.) load these positions. The object should appear in the same place as it was when the dude logged off. Enemies should auto spawn if they are client side but server side then you probaly need an ini file or something for that. (Not sure really about enemies....)
How do I make an admin system + password protected system?
5. Again, with the ini files. You save part of it that says who is admin, and who is a normal dude, mod, etc. Again, it is read at the beginning and assigned a global variable.
Since you have no clue how to use an ini file, here is the basics:
ini_open("Inifile.ini")
//Part and key identify the variable, well the variable is the thing your reading. Defualt is the thing the variable defualts to if it
//Isn't found.
return1 = ini_read_string("Part","Key","Default")
ini_close()
If you want to write one:
ini_open("Inifile.ini")
ini_write_string("Part","Key","Varible") //Part and key identify the variable, well the variable is the thing your writing.
ini_close()
Creating an ini file happens as soon as you use ini_open. So, if the ini file dosen't exist, it will create it for you.
*Thinks up writing his own Mmo for fun...*