Raised This Month: $ Target: $400
 0% 

Player chooses if wants to download models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 04-29-2011 , 14:19   Player chooses if wants to download models
Reply With Quote #1

Hi, I have a plugin that uses 40mb in models (...) and I want to make players download them opcionaly. For example, a player joins the server without downloading the models but when a he writes /dlmodels he reconnects and start downloading the models.

Is this possible? If yes, how?

Or if you have a better idea how to download 40mb of models faster tell me pls...
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 04-29-2011 , 14:25   Re: Player chooses if wants to download models
Reply With Quote #2

use fast download
jimaway is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 04-29-2011 , 14:33   Re: Player chooses if wants to download models
Reply With Quote #3

Well, I thought of it but not everybody as good connection and even with fast dl it would still take a while... (or am I wrong? o: )
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 04-29-2011 , 15:03   Re: Player chooses if wants to download models
Reply With Quote #4

I got fast dl.

If you send me a PM we can discuss the price
Groven is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-29-2011 , 15:06   Re: Player chooses if wants to download models
Reply With Quote #5

With "sv_downloadurl"
It Depends of the Web Server's Upload Speed.

You can upload your files in a web server and set the cvar
sv_downloadurl to the web server's url and path where are the models example

sv_downloadurl "http://www.yoursite.com/path/to/cstrike/"

with this cvar the players will download the maps from the site instantly... not from your game server.

Edit: Groven are you trying to get banned?
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 04-29-2011 , 15:21   Re: Player chooses if wants to download models
Reply With Quote #6

So it doesn't matter the client internet speed?
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 04-29-2011 , 15:49   Re: Player chooses if wants to download models
Reply With Quote #7

Quote:
Is this possible?
No. How do you supposse to show any model to him, if he doesn't have it?
__________________

SonicSonedit is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 04-29-2011 , 15:51   Re: Player chooses if wants to download models
Reply With Quote #8

Models are supposed to replace gun models, so if the player doesn't have the custom model just show the default one.
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-29-2011 , 16:04   Re: Player chooses if wants to download models
Reply With Quote #9

@kotinha Client's Speed of course is has matter
but Counter Strike Download system it is not giving to user max speed. Is limiting the download speed.
With this cvar you can easily download it from a high speed Web Server where you can hit your speed maxes

Quote:
Is this possible?
To replace the models of some guns with plugin it is nessesairy [ i don't know how i can spell this word anyway :p ]
to precache all the models... for all the players, you can't except some player from this procedure it is a global function.
plugin_precache()
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))

Last edited by ProIcons; 04-29-2011 at 16:43. Reason: Wrong Spelling
ProIcons is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 04-29-2011 , 16:23   Re: Player chooses if wants to download models
Reply With Quote #10

Quote:
Originally Posted by ProIcons View Post
(...) To replace the models of some guns with plugin it is nessesairy [ i don't know how i can spell this word anyway :p ]
to precache all the models... for all the players, you can except some player from this procedure it is a global function.
plugin_precache()
I didn't understand lol

Is it possible or not?
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha 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 04:29.


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