HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #include <zombieplague>
  4.  
  5. public plugin_init()
  6. {
  7. register_plugin("Bot not attack when round begin", "0.1", "Dolph_ziggler")
  8. register_forward( FM_CmdStart , "fm_CmdStart" );
  9. }
  10.  
  11. public fm_CmdStart(id,Handle)
  12. {
  13. new Buttons; Buttons = get_uc(Handle,UC_Buttons);
  14. if(is_user_bot(id) && !zp_has_round_started())
  15. {
  16. Buttons &= ~IN_ATTACK;
  17. set_uc( Handle , UC_Buttons , Buttons );
  18. return FMRES_SUPERCEDE;
  19. }
  20. return FMRES_IGNORED;
  21. }