AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Download file to client (https://forums.alliedmods.net/showthread.php?t=222759)

risontek22 08-06-2013 08:20

Download file to client
 
Hello,
how can i do that i wrote /dl and some file from web download not to server but to client.
http://forums.alliedmods.net/showthread.php?t=63120
This download for server but i need to download file to client, for example: cstrike/txt/txt.txt

I need something like the precache but precache is called at connecting to server but and i need to call it at disconnecting. Help Please! :(

seriousspot 08-06-2013 11:35

Re: Download file to client
 
serverside - possible
clientside - not anymore since motdfile, motd_write is blocked.

joropito 08-06-2013 13:29

Re: Download file to client
 
Well, there's a way but I wonder if it's considered slowhack.

You can send a file to client (only if the file doesn't exists on client) using precache_generic (search on forum, there's so many threads).

Also you can send a dynamic motd with an A link inside (haven't tested what's happens on client side when A link is used).

devWaleed 08-06-2013 14:30

Re: Download file to client
 
Can it precache a .txt file and transfer it to clients game files? I am curious to know that :D (won't do anything wrong)

EDIT: I know I can do that but can I edit that file later? or cache it on a specific event so it transfer that file in a special event or when required?

Arkshine 08-06-2013 14:46

Re: Download file to client
 
No, you can't make download nor edit hud.txt on the client.

devWaleed 08-07-2013 09:13

Re: Download file to client
 
No, I meant that. When a client connects, precache a something.txt, will this transfer that file?

Arkshine 08-07-2013 09:40

Re: Download file to client
 
With precache_generic(), and if the file doesn't already exist on the client, this includes files in steam cache.


All times are GMT -4. The time now is 15:53.

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