BorderLine Posted October 17, 2012 Share Posted October 17, 2012 Hi everyone. I have a question Well when my MTA was the version 1.3 the removeWorld worked fine but with the new relased version (1.3.1) removeWorld dont work Why is this happening? Should change some things on server? or add somecode to remove world i added this. function remove () local version = getVersion() if version.mta == "1.3.1" then removeWorldModel ( 16094, 500, 135, 1941, 19.29 ) removeWorldModel ( 16094, 500, 282, 1821, 17.6 ) removeWorldModel ( 16671, 500, 282, 1821, 17.6 ) removeWorldModel ( 16668, 500, 282, 1821, 17.6 ) removeWorldModel ( 16670, 500, 282, 1821, 17.6 ) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), remove ) and the code from another version was function remove () removeWorldModel ( 16094, 500, 135, 1941, 19.29 ) removeWorldModel ( 16094, 500, 282, 1821, 17.6 ) removeWorldModel ( 16671, 500, 282, 1821, 17.6 ) removeWorldModel ( 16668, 500, 282, 1821, 17.6 ) removeWorldModel ( 16670, 500, 282, 1821, 17.6 ) end end Thanks for your time Link to comment
Renkon Posted October 17, 2012 Share Posted October 17, 2012 Check what does getVersion return Link to comment
BorderLine Posted October 17, 2012 Author Share Posted October 17, 2012 Thanks. now work 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