Raised This Month: $ Target: $400
 0% 

[CS:GO] Make clients download "mapname".txt from FastDL


Post New Thread Reply   
 
Thread Tools Display Modes
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 11-18-2015 , 08:12   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #11

Quote:
Originally Posted by Neuro Toxin View Post
Point 1 takes alot more lines
And why is it needed?

I would still check that txt exists.
PHP Code:
#include <sourcemod>
public void OnMapStart()
{
    
char MapName[100], Path[PLATFORM_MAX_PATH];
    
GetCurrentMap(MapNamesizeof(MapName));
    
Format(Pathsizeof(Path), "maps/%s.txt"MapName);
    if(
FileExists(Path))
        
AddFileToDownloadsTable(Path);

h3bus is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-18-2015 , 17:25   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #12

You can spend hours making txt files for a server with 100+ maps.

So it saves you time because you dont have to make each file and save it's contents. I thought that would be obvious.
__________________
Neuro Toxin is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-18-2015 , 18:06   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #13

That's not what the OP asked, lol.

He said he already had a file and he wants it to download. Problem is solved.
Potato Uno is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-18-2015 , 18:08   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #14

Dont ask questions and then give me that shit.

Brain much?
__________________
Neuro Toxin is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-18-2015 , 19:38   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #15

Quote:
Originally Posted by Neuro Toxin View Post
Brain much?
I like how you're asking if I have a brain when you are the one who came in here saying "LOL OP I HAVE A PLUGIN THAT DOES WHAT YOU WANT BUT ITS PRIVATE AND IM NOT GONNA SHARE IT LOL" for no reason.

Find someone else to troll. I can't give any less of a shit especially since I don't own csgo.
Potato Uno is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-18-2015 , 21:58   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #16

I never said i wouldn't share it.

Dont put words in my mouth. We should move to pm if you want discuss this further because this is off topic.

If someone asks me something in a thread. Ill answer it. Dont respond saying it's not what the op asked. While ur right. The op didnt ask what i answered and it's still on topic.
__________________

Last edited by Neuro Toxin; 11-18-2015 at 21:58.
Neuro Toxin is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-19-2015 , 11:43   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #17

...agreed what @arne1288 have said already.

But should it be
maps/mapname_story.txt

and you can't force clients to download it and you not need plugin for that.

*edit
seems maps/mapname.txt have different purpose after all

Last edited by Bacardi; 11-19-2015 at 11:44. Reason: nvm
Bacardi is offline
parthi
Senior Member
Join Date: Mar 2015
Old 12-30-2015 , 03:32   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #18

Anyone know how now ? =( and i can't compile it ..
Attached Thumbnails
Click image for larger version

Name:	compile prblm.png
Views:	269
Size:	7.1 KB
ID:	150822  

Last edited by parthi; 12-30-2015 at 03:36.
parthi is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-30-2015 , 04:15   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #19

Stick to one of the threads and stop spamming the forums with multiple posts for the same thing.


Quote:
Originally Posted by parthi View Post
they are not the solution to edit for all the maps, i dont want to edit it for each maps.
As you have already said there, your intentions are very very naughty, and won't be supported.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
ateszhun95
Senior Member
Join Date: Apr 2014
Location: Hungary
Old 01-20-2016 , 17:21   Re: [CS:GO] Make clients download "mapname".txt from FastDL
Reply With Quote #20

Quote:
Originally Posted by Potato Uno View Post
Whoop de doo a private plugin that is only 20 lines of code. You really got something special Neuro Toxin.

PHP Code:
#include <sdktools>
public void OnMapStart()
{
    
char MapName[100], Path[100];
    
GetCurrentMap(MapNamesizeof(MapName));
    
Format(Pathsizeof(Path), "maps/%s.txt"MapName);
    
AddFileToDownloadsTable(Path);

I have compiled this and its "half-working" :
If Fast-DL is active: The mapname.txt files have been downloaded
If Fast-DL is inactive: The mapname.txt files haven't been downloaded
__________________
ateszhun95 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode