12.08.2012, 17:51
Y_Less summed up what I wanted to say. In my game mode I use mysql for everything, logging stuff to vehicles you name it. The actual creating of it takes longer than obtaining it from the database!
I also had a side mode I stopped developing but might pick up later. It used an MTA map loader which also worked fine but is significantly slower, I wouldn't suggest it if you have a lot of objects in the map.
I used to have these .map files in a folder, in mysql I had the name of the file (and a display name), I had a dialog to display all the maps, it would just take all the names from the database and display them, make an array to index the actual file name, and let the players vote, then use that array to obtain the filename by dialog listitem and use the loader to load the map - that loading however takes a while and might halt the server. The reason I did it that way because members would have the possibility to upload their own maps. They would be dynamically loaded in the game mode without ever having to touch the script.
I also had a side mode I stopped developing but might pick up later. It used an MTA map loader which also worked fine but is significantly slower, I wouldn't suggest it if you have a lot of objects in the map.
I used to have these .map files in a folder, in mysql I had the name of the file (and a display name), I had a dialog to display all the maps, it would just take all the names from the database and display them, make an array to index the actual file name, and let the players vote, then use that array to obtain the filename by dialog listitem and use the loader to load the map - that loading however takes a while and might halt the server. The reason I did it that way because members would have the possibility to upload their own maps. They would be dynamically loaded in the game mode without ever having to touch the script.