Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fix FastDownload
#2
Ky plugins sherben per ta rregulluar fast download, (per ata qe se din shum kan problem me fastdownload p.sh duhet me jek cs krejt tani me hi me i bo fastdownload e me kit plugins ski nevoj me ju bo aj problem lojtarve)

Shkarkojm
FIxFastDL.amxx

pluginsin .amxx e vendosim ne cstrike > addons > amxmodx > plugins
dhe shkojm cstrike > addons > amxmodx > configs > plugins.ini ne fund e vendosim FIxFastDL.amxx

Ndrrojm mapen dhe do rregullohet fastdl

Cka permban ky plugins:
[spoiler]#include < amxmodx >
#include < fakemeta >

new const VERSION[ ] = "0.0.3";

new const SYMBOLS[ ][ ] =
{
"!" , "@" , "#" ,"$" , "%" , "&",
"*" , "(" , ")" , "_" , "-" , "=" , "+",
"{" , "[" , "}" , "]" , ":" , ";" , "'" , "\",
"|" , "/" , "<" , ">" , "." , "?"
};

new Trie:g_check;
new Trie:g_reconnect;

new ServerIp[ 32 ]

public plugin_init()
{
register_plugin( "Fix fast download to reconnect", VERSION, "PomanoB \ Bos93" );

register_forward( FM_ClientDisconnect, "fw_ClientDisconnect" );

g_check = TrieCreate();
g_reconnect = TrieCreate();


get_user_ip( 0, ServerIp, charsmax( ServerIp ) );
}

public fw_ClientDisconnect( pPlayer )
{
new zsIp[32];

get_user_ip( pPlayer, zsIp, charsmax( zsIp ) );
TrieSetCell( g_reconnect, zsIp, 1 );
}

public client_connect( pPlayer )
{
new zsIp[32]
new lastTime

get_user_ip( pPlayer, zsIp, charsmax( zsIp ) );

if ( TrieKeyExists( g_reconnect , zsIp ) )
{
if ( !TrieGetCell( g_check, zsIp, lastTime ) || lastTime < get_systime( ) - 4 )
{
TrieSetCell( g_check, zsIp, get_systime( ) ) ;
TrieClear( g_reconnect );

client_cmd( pPlayer, "Connect %s`%c", ServerIp, SYMBOLS[ random_num( 0, sizeof SYMBOLS - 1 ) ] );
}
}
}[/spoiler]
Reply }}}}
Thanks given by:
Thanks given by:
Thanks given by:


Messages In This Thread
Fix FastDownload - by KIQ - 04-30-2023, 07:53 AM
Fix FastDownload - by KIQ - 04-30-2023, 07:53 AM
Re: Fix FastDownload - by Fisberg - 06-05-2023, 08:48 PM
Re: Fix FastDownload - by ColdPlay - 06-10-2023, 08:27 AM
Re: Fix FastDownload - by Cyanide. - 06-11-2023, 08:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)