Piorun Posted April 20, 2011 Share Posted April 20, 2011 Hi again. I've got question: Which function i should use to load/unload map called ex. "hotel.map"? Ex. using a command called "/loadhotel" and "/unloadhotel". Link to comment
Castillo Posted April 20, 2011 Share Posted April 20, 2011 Do you mean a map file or a resource? Link to comment
Gungneer Posted April 20, 2011 Share Posted April 20, 2011 If you're talking about a single map file, I don't know. If you're talking about a resource, "/start " and "/stop ". I don't know how to make it so you turn off a single map at a time, but you could just stick it in a resource of its own and stop/start that on demand? Link to comment
Piorun Posted April 20, 2011 Author Share Posted April 20, 2011 I'm talking about map file, not resource -.- .. In topic i wrote "...map called ex. 'hotel.map' ", and i think this should be an answer of your questions Link to comment
Gungneer Posted April 20, 2011 Share Posted April 20, 2011 Well as I said, I'm not sure how you can turn a map file on/off on command unless you write a function for it, if you have a .map file, I suggest making a resource with called "hotelmap" and in that just have "hotel.map" and the meta.xml to include it, and then you can turn it on and off by doing "/ hotelmap". Easiest method I could think of. Link to comment
Maggi Posted April 26, 2011 Share Posted April 26, 2011 You can create map objects using createObject function. In Your case, if player enters hotel in RP world, then there is no need to load it, because hotel is a part of world... If you want dynamically add hotel in game, you can open file, loop through all objects and create them using https://wiki.multitheftauto.com/wiki/CreateObject function Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now