HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1.  
  2. /* AMXModX script.
  3. *
  4. * (c) 2005 [Coder]Someone
  5. * Fordította: BREST
  6. * This file is provided as is (no warranties).
  7. *
  8. * This plugin is totally based on suicidedog's drop awp plugin.
  9. * All credits goes to him!
  10. * I just changed the code so it's kicking the person instead of drop the awp :)
  11. *
  12. */
  13.  
  14. #include <amxmodx>
  15.  
  16. public check_awp(id) {
  17. if (get_cvar_num("sv_noawp")!=1) return PLUGIN_CONTINUE
  18. new llama = read_data(0)
  19. client_print(llama,print_center,"AWP-t Hasznaltal, Kirugtunk!")
  20. client_cmd(llama,"wait;wait;wait;wait;wait;wait;dropclient")
  21. return PLUGIN_CONTINUE
  22. }
  23.  
  24. public plugin_init(){
  25. register_plugin("AWP Kick","0.1","[Coder]Someone")
  26. register_event("WeapPickup","check_awp","b","1=18")
  27. register_cvar("sv_noawp","1")
  28. return PLUGIN_CONTINUE
  29. }
  30.  
  31.