Raised This Month: $ Target: $400
 0% 

Fix fast download to reconnect


Post New Thread Closed Thread   
 
Thread Tools Display Modes
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 11-12-2012 , 15:06   Re: Fix fast download to reconnect
#71

Quote:
Originally Posted by 1ka View Post
I think that this is not a bug,
If the file is not found on http...
In this case, It should be, downloaded from the server?
Yes.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
mazdan
Junior Member
Join Date: Jan 2011
Old 11-13-2012 , 01:06   Re: Fix fast download to reconnect
#72

No, even if file exist on http server and player press cancel when files are downloading from http, and try to connect again it will be download it from server, not from http. Plugin force client to use http, but if some file doesn't exist on http client will download it from server.
mazdan is offline
kp3t3h
Senior Member
Join Date: Feb 2011
Old 11-14-2012 , 17:46   Re: Fix fast download to reconnect
#73

does this actually work?
and what happens if a certain file is missing on fast dl server? will it be downloaded?
__________________
need help with the following
no.1, no.2, no.3, no.4 no.5
kp3t3h is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-15-2012 , 03:50   Re: Fix fast download to reconnect
#74

Read the answer above. -_-
__________________
Arkshine is offline
tulga
Junior Member
Join Date: May 2010
Old 04-14-2013 , 12:21   Re: Fix fast download to reconnect
#75

PHP Code:
#include <amxmodx>

new const PLUGIN_NAME[]     = "Fix Fast DL"
new const PLUGIN_VERSION[] = "0.1"
new const PLUGIN_AUTHOR[] = "BLAH BLAH"

new Trie:g_tTime

// server ip
new g_szServerIp[32]
new 
g_iTime 5

public plugin_init() 
{
    
// registering plugin
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);
    
    
// cvar's 
    
register_cvar("fixfastdl_ip""");
    
register_cvar("fixfastdl_time""5");
    
    
// server ip address
    
get_user_ip(0g_szServerIpcharsmax(g_szServerIp));
}

public 
plugin_cfg()
{
    
//
    
g_iTime get_cvar_num("fixfastdl_time")
    
    if (
g_iTime 1)
        
g_iTime 5
        
    get_cvar_string
("fixfastdl_ip"g_szServerIpcharsmax(g_szServerIp))
    
    if (
strlen(g_szServerIp) < 7)
        
get_user_ip(0g_szServerIpcharsmax(g_szServerIp)); // server ip address

}

public 
client_connect(id)
{
    if(!
is_user_hltv(id) && !is_user_bot(id))
    {
        new 
szPlayerIp[34];
        new 
szPlayerName[34];
        
        
get_user_ip(idszPlayerIpcharsmax(szPlayerIp)); // user ip
        
get_user_name(idszPlayerNamecharsmax(szPlayerName)); // user name
        
        // md5 
        
md5(szPlayerIpszPlayerIp);
        
md5(szPlayerNameszPlayerName);
        
        
// unique id
        
new szUidLong[66], szUid[34];
        
formatex(szUidLongcharsmax(szUidLong), "%s%s"szPlayerIpszPlayerName);
        
        
// uniqued id
        
md5(szUidLongszUid);
        
        new 
iTime;
        
        if (
TrieGetCell(g_tTimeszUidiTime)) // trie key exist blah blah
        
{
            
TrieSetCell(g_tTimeszUidget_systime()); // trie set blah blah
            
            
if (get_systime() - iTime g_iTime)
                
client_cmd(id"connect %s %d"g_szServerIprandom_num(19999)); // connect blah blah
                
        
}
        else
        {
            
            
TrieSetCell(g_tTimeszUidget_systime()); // trie set blah blah
            
            
client_cmd(id"connect %s %d"g_szServerIprandom_num(19999)); // connect blah blah
        
}
    }

this is my version blah blah not yet tested
tulga is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-14-2013 , 12:41   Re: Fix fast download to reconnect
#76

No more need, it has been fixed in the latest updates.
__________________
Arkshine is offline
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-04-2013 , 07:34   Re: Fix fast download to reconnect
#77

So what code is working good, #1 / #56 ?
TeddiBer is offline
roymor
Senior Member
Join Date: Apr 2012
Old 05-04-2013 , 07:46   Re: Fix fast download to reconnect
#78

Quote:
Originally Posted by TeddiBer View Post
So what code is working good, #1 / #56 ?
1 post above you .. read ? ;o
roymor is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-04-2013 , 09:17   Re: Fix fast download to reconnect
#79

Due to latest updates, this plugin is not usefull anymore, unapproved and locked.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Closed Thread



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 03:44.


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