
   /*
   *
   * Flag Fix plugin for DoD 1.0
   *
   * (c) Copyright 2003, SidLuke
   * This file is provided as is (no warranties).
   *
   */
   #include <amxmod>
   #include <dodbasic>
   new map[32]
   public update_flags()
   {
     if ( equali(map,"dod_anzio") )
     {
       set_flag_owner(5,1)
       set_flag_owner(3,2)
     }
     else if ( equali(map,"dod_caen") )
     {
       set_flag_owner(4,1)
       set_flag_owner(3,2)
     }
     else  if ( equali(map,"dod_kalt") )
     {
       set_flag_owner(2,1)
       set_flag_owner(3,2)
     }
     else if ( equali(map,"dod_merderet") )
     {
       set_flag_owner(3,1)
       set_flag_owner(5,1)
       set_flag_owner(1,2)
       set_flag_owner(4,2)
     }
     else if ( equali(map,"dod_flugplatz") )
     {
       set_flag_owner(5,1)
       set_flag_owner(6,1)
       set_flag_owner(4,2)
       set_flag_owner(3,2)
     }
     else // if equali(map,"dod_chemille")
     {
       set_flag_owner(1,1)
       set_flag_owner(3,2)
     }
     return PLUGIN_CONTINUE
   }
   public plugin_init()
   {
     register_plugin("Flag Fix","0.2","SidLuke")
     get_mapname(map,31)
     if    (   equali(map,"dod_kalt")   ||   equali(map,"dod_anzio")   ||
   equali(map,"dod_caen")      ||      equali(map,"dod_merderet")      ||
   equali(map,"dod_flugplatz") || equali(map,"dod_chemille") )
       register_event("TextMsg","update_flags","bc","2&#game_ro")
     register_cvar("dod_flagsfix","1")
   }
