Example #1
0
        public BaseClient()
        {
            DataStore   = new GangWarDataStore();
            ZoneDisplay = new GangWarZoneDisplay(DataStore);
            Listener    = new GangWarListener(DataStore);

            BaseScript.RegisterScript(ZoneDisplay);
            BaseScript.RegisterScript(Listener);

            AddTextEntry("AMBIENT_GANG_LOST", "Enemy Gang: <C>Lost</C>");
            AddTextEntry("AMBIENT_GANG_MEXICAN", "Enemy Gang: <C>Vagos</C>");
            AddTextEntry("AMBIENT_GANG_FAMILY", "Enemy Gang: <C>Families</C>");

            EventHandlers["populationPedCreating"] += new Action <float, float, float, uint, dynamic>(PopulationPedCreating);
        }
Example #2
0
        public GangWarListener(GangWarDataStore dataStore)
        {
            this.dataStore = dataStore;

            this.Tick += OnTick;
        }
Example #3
0
        public GangWarZoneDisplay(GangWarDataStore dataStore)
        {
            this.dataStore = dataStore;

            Tick += this.OnTick;
        }