Raised This Month: $ Target: $400
 0% 

Download file to client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
risontek22
Member
Join Date: Mar 2013
Location: localhost
Old 08-06-2013 , 08:20   Download file to client
Reply With Quote #1

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!
risontek22 is offline
Old 08-06-2013, 10:27
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 08-06-2013 , 11:35   Re: Download file to client
Reply With Quote #3

serverside - possible
clientside - not anymore since motdfile, motd_write is blocked.
seriousspot is offline
Old 08-06-2013, 12:33
LordOfNothing
This message has been deleted by Arkshine. Reason: Learn to avoid posting unnecessary post
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 08-06-2013 , 13:29   Re: Download file to client
Reply With Quote #5

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).
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 08-06-2013 , 14:30   Re: Download file to client
Reply With Quote #6

Can it precache a .txt file and transfer it to clients game files? I am curious to know that (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?

Last edited by devWaleed; 08-06-2013 at 14:32.
devWaleed is offline
Send a message via Skype™ to devWaleed
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2013 , 14:46   Re: Download file to client
Reply With Quote #7

No, you can't make download nor edit hud.txt on the client.
__________________
Arkshine is offline
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 08-07-2013 , 09:13   Re: Download file to client
Reply With Quote #8

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

Last edited by devWaleed; 08-07-2013 at 09:14.
devWaleed is offline
Send a message via Skype™ to devWaleed
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-07-2013 , 09:40   Re: Download file to client
Reply With Quote #9

With precache_generic(), and if the file doesn't already exist on the client, this includes files in steam cache.
__________________
Arkshine 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 15:53.


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