20.05.2010, 16:49
Hi again,
Now I'd like to create a vehicle ownership system for my gamemode where every single vehicle has an own configuration file. If somebody buys a vehicle, a new file will be created and named after the player. When the gamemode starts, every car configuration file should be loaded and the cars should be spawned, but I don't know how to do this. Is there any way to load every single file from a directory? Any ideas are welcome.
Now I'd like to create a vehicle ownership system for my gamemode where every single vehicle has an own configuration file. If somebody buys a vehicle, a new file will be created and named after the player. When the gamemode starts, every car configuration file should be loaded and the cars should be spawned, but I don't know how to do this. Is there any way to load every single file from a directory? Any ideas are welcome.