Et-win Posted August 26, 2014 Share Posted August 26, 2014 When you spawn (When you join the server, and THEN spawn), the vehicles get downloaded and placed. When you spawn after that, it won't do anything. I supposed that if you die, that the mods are still replaced? (It's a client-side script, so it will work for all players as soon as they join) PS: If you remove line 60, it will replaced as soon as any player spawns. (And if it wouldn't then it wouldn't matter anyway) Link to comment
John Smith Posted August 28, 2014 Author Share Posted August 28, 2014 yeah im using your line and after couple of people were playing,dying reconnecting etc at some point mods stopped to work properly. temporarily i have added a command which manually loads the mods but im using the code which is above,and its now not working even if i kill myself 1000 times Link to comment
Et-win Posted August 28, 2014 Share Posted August 28, 2014 That's weird. Are you sure no other scripts are affecting them? Doubt it would be this, but also my script. As soon as it happens again, when it happened. And by the second time, if it happenes exactly the same, then that could be the problem. Link to comment
John Smith Posted August 28, 2014 Author Share Posted August 28, 2014 (edited) the problem was always succcessfully reproduced by downloading the files and after finishing,reconnecting. this is code's look now i havent touched anything of your code except dxdrawtext function and there are no conflicts with other resources. Edited October 13, 2014 by Guest Link to comment
Et-win Posted August 28, 2014 Share Posted August 28, 2014 Remove this: removeEventHandler("onClientPlayerSpawn", getRootElement(), onCheckHasFiles) This would fix it. I can't find the problem with my eyes now. Link to comment
John Smith Posted August 28, 2014 Author Share Posted August 28, 2014 thanks, it seems to work now but im having 2 probs and not sure how to deal with them --weapons {"txd", "mods/m4.txd", 31}, {"dff", "mods/m4.dff", 31}, {"txd", "mods/sniper.txd", 34}, {"dff", "mods/sniper.dff", 34}, weapon models dont get replaced and what can i do if someone fails to download a specific file?is there a way how i can reset the download for specific file for the specific person whose download failed? sorry if im asking too much questions.. i just have no idea how to fix this Link to comment
Et-win Posted August 28, 2014 Share Posted August 28, 2014 I don't know about the guns -- function lol(gPath) downloadFile(gPath) end Usage: lol("path.file") Link to comment
-.Paradox.- Posted August 28, 2014 Share Posted August 28, 2014 {"txd", "mods/m4.txd", 356}, {"dff", "mods/m4.dff", 356}, {"txd", "mods/sniper.txd", 358}, {"dff", "mods/sniper.dff", 358}, Link to comment
John Smith Posted August 29, 2014 Author Share Posted August 29, 2014 alright. thank you Et-win and NightFury/Steve, i hope that will work out. 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