How can i make like, when someone is connecting on my server, and he don't have the map, then download it, from fastdl ?
My FastDL:
I created a file "workshop.lua" into garrysmod/lua/server/autorun and i wrote in it, [CODE]resource.AddWorkshop("ID OF THE MAP")[/CODE] and it's working fine, but this method is downloading all the map once so it takes longer... So less people on my server :(
Can u describe me a simple way how to do it ?
Thanks
-MrHappy
Look into game.GetMap() to restrict map downloads.
If you're using FastDL then you don't need to do nothing (apart from making sure the map is on your FastDL).
Do you know the difference between FastDL and Workshop? As you're stating FastDL then the code you're using is workshop..
[QUOTE=Mr. Happy;45463257]How can i make like, when someone is connecting on my server, and he don't have the map, then download it, from fastdl ?
My FastDL:
I created a file "workshop.lua" into garrysmod/lua/server/autorun and i wrote in it, [CODE]resource.AddWorkshop("ID OF THE MAP")[/CODE] and it's working fine, but this method is downloading all the map once so it takes longer... So less people on my server :(
Can u describe me a simple way how to do it ?
Thanks
-MrHappy[/QUOTE]That's not fastdl.
[QUOTE=Scottehh;45464977]If you're using FastDL then you don't need to do nothing (apart from making sure the map is on your FastDL).
Do you know the difference between FastDL and Workshop? As you're stating FastDL then the code you're using is workshop..[/QUOTE] Then, I don't know what's FastDL and Workshop, can u explain or send a website ? :3
[editline]22nd July 2014[/editline]
How can i fastDL my maps then ?
FastDL requires a webhost. You can still use WorkshopDL if you follow my advice above.
[QUOTE=code_gs;45470682]FastDL requires a webhost. You can still use WorkshopDL if you follow my advice above.[/QUOTE]
Yea but how, like:
[CODE]if game.GetMap() == dr_minecraft resource.AddWorkshop("ID")[/CODE]
or something like that ?
You forgot a "then" and "end"
[QUOTE=code_gs;45471102]You forgot a "then" and "end"[/QUOTE]
And it should work ? And where should I put this code ? (cl_init, init or shared) ?
lua/autorun/server.
Sorry, you need to Log In to post a reply to this thread.