AlThePhoenix Posted May 20, 2012 Share Posted May 20, 2012 Hi there, I recently moved over to MTA because SA:MP was just annoying me, and now I'm trying to set up my server. My problem is that the skin that you can select in the menu, which you open with F1 (the resource 'freeroam'), won't be kept until respawn. Instead, you get another random skin. I couldn't find this in any of the loaded resources, now I don't know how to make the game keep the skin. Maybe someone can help me out. Regards, AlThePhoenix Link to comment
Smart. Posted May 20, 2012 Share Posted May 20, 2012 Here you go: https://forum.multitheftauto.com/viewtop ... fd#p438112 Link to comment
AlThePhoenix Posted May 20, 2012 Author Share Posted May 20, 2012 After that didn't work either, I looked up my map script again. I can't describe how incredibly dumb I am. It was just one freaking line called repeat until setElementModel(player,math.random(312)) in the spawn-function. But thanks for the very fast reply anyway! Link to comment
qaisjp Posted June 29, 2012 Share Posted June 29, 2012 After that didn't work either, I looked up my map script again. I can't describe how incredibly dumb I am.It was just one freaking line called repeat until setElementModel(player,math.random(312)) in the spawn-function. But thanks for the very fast reply anyway! Erm... that doesn't help... that just lags your server. Link to comment
50p Posted June 30, 2012 Share Posted June 30, 2012 After that didn't work either, I looked up my map script again. I can't describe how incredibly dumb I am.It was just one freaking line called repeat until setElementModel(player,math.random(312)) in the spawn-function. But thanks for the very fast reply anyway! Erm... that doesn't help... that just lags your server. How can this lag your server if setElementModel will return true when the model has been changed? Just for your information there is only a few skin IDs which don't work and the chance that these IDs will be picked 1000 of times one after another is ridiculously low, well, almost impossible. Besides, this line is from "play" which comes with MTA. Do you think MTA would include a gamemode which lags your server? Link to comment
qaisjp Posted July 1, 2012 Share Posted July 1, 2012 Well, lil_Toady shouted at me when I told people to do this: repeat until spawnPlayer(player, x,y,z) He said if the player disconnects, then the server is in permanent lag or whatever. 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