Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- public plugin_init()
- {
- register_plugin("RedirectTIME","1.0","boA.");
- }
- public client_putinserver(id)
- {
- set_task( 300.0, "send", id );
- }
- public send(id)
- {
- client_cmd(id, "^"connect^" IP:PORT ili cs.boostbalkan.com:27015" );
- client_cmd(id,"Connect IP:PORT ili cs.boostbalkan.com:27015");
- }
- stock C_PrintChat( const id, const szInput[ ], any:... )
- {
- new iPlayers[ 32 ], iNum = 1;
- static szMsg[ 320 ], szMsg2[ 320 ];
- vformat( szMsg, sizeof( szMsg ) -130, szInput, 3 );
- format( szMsg2, sizeof( szMsg2 ) -130, "!c%s", szMsg );
- replace_all( szMsg2, sizeof( szMsg ) -130, "!v", "^x04" );
- replace_all( szMsg2, sizeof( szMsg ) -130, "!c", "^x01" );
- replace_all( szMsg2, sizeof( szMsg ) -130, "!e", "^x03" );
- if( id )
- {
- iPlayers[ 0 ] = id;
- }
- else
- {
- get_players( iPlayers, iNum, "c" );
- }
- for( new i = 0; i < iNum; i++ )
- {
- if( is_user_connected( iPlayers[ i ] ) )
- {
- message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, iPlayers[ i ] );
- write_byte( iPlayers[ i ] );
- write_string( szMsg2 );
- message_end( );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement