AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Syncronize Files between Server and player (https://forums.alliedmods.net/showthread.php?t=17130)

TFTomSun 08-26-2005 09:10

Syncronize Files between Server and player
 
hi..

how can i copy a file from the server to a specified client (depending on steam id or playername or index)

thank you, TFTS

DataMatrix 08-26-2005 09:24

Maybe:
Code:
#include <amxmodx> #include <amxmisc> public client_connect() {     new userid[32]     get_user_userid(id,userid,31)         if (userid == MYSTEAMID) {         precache_model("blah.mdl")         precache_sound("blah.wav")     } else if (userid == MYFRIENDSSTEAMID) {         precache_model("blah.mdl")         precache_sound("blah.wav")     }         return PLUGIN_HANDLED }

Change MYSTEAMID and MYFRIENDSSTEAMID to a steamid you would like to download the files.

I doubt this would work, but its worth a try, no?

TFTomSun 08-26-2005 09:31

hm ... i need to syncronize a txt file ... the commandmenü.txt ... for my clan members ... is there a possibility to syncronize a txt file?

DataMatrix 08-26-2005 09:32

I doubt you could get a text file to download files, even user specific downloads are probably impossible to do.

TFTomSun 08-26-2005 09:39

ok ... if its not possible i need to write a little c app which this file is downloading over ftp

thank you, TFTS

PS: if anybody have an idea how i can send the txt file from server to player ... just let me know

XxAvalanchexX 08-26-2005 21:45

If they already have commandmenu.txt then you cannot overwrite it.

Twilight Suzuka 08-27-2005 04:34

Use a res file.

TFTomSun 08-27-2005 13:17

how do you mean that with the res file ... can you give me more information about this solution?

thank you, TFTS


All times are GMT -4. The time now is 14:33.

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