Advertisement
Guest User

boA.

a guest
Jul 25th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. #include < amxmodx >
  2.  
  3. public plugin_init()
  4. {
  5. register_plugin("RedirectTIME","1.0","boA.");
  6. }
  7.  
  8. public client_putinserver(id)
  9. {
  10. set_task( 300.0, "send", id );
  11.  
  12. }
  13.  
  14. public send(id)
  15. {
  16. client_cmd(id, "^"connect^" IP:PORT ili cs.boostbalkan.com:27015" );
  17. client_cmd(id,"Connect IP:PORT ili cs.boostbalkan.com:27015");
  18. }
  19.  
  20. stock C_PrintChat( const id, const szInput[ ], any:... )
  21. {
  22. new iPlayers[ 32 ], iNum = 1;
  23.  
  24. static szMsg[ 320 ], szMsg2[ 320 ];
  25.  
  26. vformat( szMsg, sizeof( szMsg ) -130, szInput, 3 );
  27. format( szMsg2, sizeof( szMsg2 ) -130, "!c%s", szMsg );
  28.  
  29. replace_all( szMsg2, sizeof( szMsg ) -130, "!v", "^x04" );
  30. replace_all( szMsg2, sizeof( szMsg ) -130, "!c", "^x01" );
  31. replace_all( szMsg2, sizeof( szMsg ) -130, "!e", "^x03" );
  32.  
  33. if( id )
  34. {
  35. iPlayers[ 0 ] = id;
  36. }
  37.  
  38. else
  39. {
  40. get_players( iPlayers, iNum, "c" );
  41. }
  42.  
  43. for( new i = 0; i < iNum; i++ )
  44. {
  45. if( is_user_connected( iPlayers[ i ] ) )
  46. {
  47. message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, iPlayers[ i ] );
  48.  
  49. write_byte( iPlayers[ i ] );
  50. write_string( szMsg2 );
  51.  
  52. message_end( );
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement