HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /*
  2. *
  3. * AMX_SLAYALL
  4. * by JustinHoMi
  5. *
  6. */
  7.  
  8. #include <amxmod>
  9.  
  10. public admin_slayall(id,level){
  11. if (!(get_user_flags(id)&level)){
  12. console_print(id,"[AMX] You have no access to that command.")
  13. return PLUGIN_HANDLED
  14. }
  15.  
  16. new plist[32],pnum
  17. get_players(plist, pnum ,"a")
  18.  
  19. for(new i=0; i<pnum; i++)
  20. user_kill(plist[i])
  21.  
  22. console_print(id,"[AMX] Mindeki Megolva")
  23. return PLUGIN_HANDLED
  24. }
  25.  
  26. public plugin_init(){
  27. register_plugin("SlayAll","0.8","JustinHoMi")
  28. register_concmd("amx_slayall","admin_slayall",ADMIN_SLAY,"- kills everyone")
  29. return PLUGIN_CONTINUE
  30. }
  31.