- Регистрация
- 14 Июн 2017
- Сообщения
- 606
- Симпатии
- 126
Нужен ли такой плагин на ReHLDS или нет он блочит игроков которые делают часто реконект ????
#include < amxmodx >
#include < fakemeta >
new const PLUGIN_NAME[ ] = "Block Spawn For Reconnect";
new const PLUGIN_VERSION[ ] = "0.1";
new const PLUGIN_AUTHOR[ ] = "Bos93";
const m_iSpawnCount = 365;
new Trie:g_pSteam;
public plugin_init( )
{
register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
register_event("HLTV", "EventRoundStart", "a", "1=0", "2=0");
g_pSteam = TrieCreate( );
}
public client_disconnect( pPlayer )
{
new szSteam[ 32 ];
get_user_authid( pPlayer, szSteam, charsmax( szSteam ) );
TrieSetCell( g_pSteam, szSteam, 1 );
}
public client_putinserver( pPlayer )
{
new szSteam[ 32 ];
get_user_authid( pPlayer, szSteam, charsmax( szSteam ) );
if ( TrieKeyExists( g_pSteam, szSteam ) )
{
set_pdata_int( pPlayer, m_iSpawnCount, 1);
}
}
public EventRoundStart( )
{
TrieClear( g_pSteam );
}
#include < fakemeta >
new const PLUGIN_NAME[ ] = "Block Spawn For Reconnect";
new const PLUGIN_VERSION[ ] = "0.1";
new const PLUGIN_AUTHOR[ ] = "Bos93";
const m_iSpawnCount = 365;
new Trie:g_pSteam;
public plugin_init( )
{
register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
register_event("HLTV", "EventRoundStart", "a", "1=0", "2=0");
g_pSteam = TrieCreate( );
}
public client_disconnect( pPlayer )
{
new szSteam[ 32 ];
get_user_authid( pPlayer, szSteam, charsmax( szSteam ) );
TrieSetCell( g_pSteam, szSteam, 1 );
}
public client_putinserver( pPlayer )
{
new szSteam[ 32 ];
get_user_authid( pPlayer, szSteam, charsmax( szSteam ) );
if ( TrieKeyExists( g_pSteam, szSteam ) )
{
set_pdata_int( pPlayer, m_iSpawnCount, 1);
}
}
public EventRoundStart( )
{
TrieClear( g_pSteam );
}