Results 1 to 12 of 12
  1. #1
    iNutsack's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0

    Still looking for player tracking bot

    Still on the hunt for a working player tracking bot, plx help

  2. #2
    Killer Be Killed's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    212
    Reputation
    53
    Thanks
    2,352
    My Mood
    Asleep
    If you are using version 6.9.0 or higher, you can use the built in player tracker component to make a very concise notifier plugin

    Code:
    import { NrPlugin, PluginManager, Log } from '../core/plugin-module';
    import { PlayerTracker } from './player-tracker';
    import { IPlayerData } from '../models/playerdata';
    
    /*
     * The // here is to avoid tagging NRP. Remove it before compiling this plugin.
     */
    @//NrPlugin({ name: 'Player Notifier', author: 'Killer Be Killed' })
    class PlayerNotifier {
        names = [
            'Eendi',
            'Oshyu',
            'Saylt'
        ];
        constructor() {
            PluginManager.afterInit(() => {
                const tracker = PluginManager.getInstanceOf(PlayerTracker);
                tracker.trackAllPlayers();
                tracker.on('enter', (player: IPlayerData) => {
                    if (this.names.indexOf(player.name) > -1) {
                        Log('Notifier', `${player.name} entered ${player.server}`);
                    }
                });
            });
        }
    }
    This will work just fine, but you may want to move the 'names' array to an external config file to make it easier to change.

  3. The Following User Says Thank You to Killer Be Killed For This Useful Post:

    DavisXola (04-14-2018)

  4. #3
    iNutsack's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Killer Be Killed View Post
    If you are using version 6.9.0 or higher, you can use the built in player tracker component to make a very concise notifier plugin

    Code:
    import { NrPlugin, PluginManager, Log } from '../core/plugin-module';
    import { PlayerTracker } from './player-tracker';
    import { IPlayerData } from '../models/playerdata';
    
    /*
     * The // here is to avoid tagging NRP. Remove it before compiling this plugin.
     */
    @//NrPlugin({ name: 'Player Notifier', author: 'Killer Be Killed' })
    class PlayerNotifier {
        names = [
            'Eendi',
            'Oshyu',
            'Saylt'
        ];
        constructor() {
            PluginManager.afterInit(() => {
                const tracker = PluginManager.getInstanceOf(PlayerTracker);
                tracker.trackAllPlayers();
                tracker.on('enter', (player: IPlayerData) => {
                    if (this.names.indexOf(player.name) > -1) {
                        Log('Notifier', `${player.name} entered ${player.server}`);
                    }
                });
            });
        }
    }
    This will work just fine, but you may want to move the 'names' array to an external config file to make it easier to change.
    Ok, I'm having trouble with nrelay right now (maybe you could help https://www.mpgh.net/forum/showthrea...6#post13549166) but when I start nrelay Player Notifier doesn't load alongside tcrane's Hello Plugin and Player Tracker. I used your exact code and changed it my main account so I could test it. I have it as player-notifier.ts in nrelay/src/plugins. What am I doing wrong?

    I really appreciate your help. Thank you

  5. #4
    iNutsack's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    Solved the problem, Killer Be Killed helped me out. Mods can delete now i guess
    Last edited by iNutsack; 04-02-2018 at 11:03 AM.

  6. #5
    kingillusions's Avatar
    Join Date
    Feb 2018
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    but wher do i put the script plzzzzzzzzzzzz

    - - - Updated - - -

    but wher did u put it plz

  7. #6
    ArkMods's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Location
    DWORD* loc = nullptr;
    Posts
    192
    Reputation
    10
    Thanks
    63
    My Mood
    Sleepy
    Make a new file src/plugins/player-notifier.ts and paste code in.

  8. #7
    oiwjhlf's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive

    Need help

    where to put that code?

  9. #8
    supM8's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    399
    Reputation
    10
    Thanks
    7
    It would be helpful if someone could create a tutorial as im also very confused on this

  10. #9
    citydrifter's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    653
    Reputation
    32
    Thanks
    2,436
    My Mood
    Yeehaw
    Quote Originally Posted by oiwjhlf View Post
    where to put that code?
    My guess is the plugin folder.

  11. #10
    oiwjhlf's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive

    HELP

    where to put script?

  12. #11
    SmilingSoap's Avatar
    Join Date
    Nov 2016
    Gender
    male
    Posts
    82
    Reputation
    10
    Thanks
    11
    My Mood
    Cool
    when we're all bad at coding or tech stuff.

  13. #12
    Kate's Avatar
    Join Date
    May 2015
    Gender
    female
    Location
    Arcadia Bay
    Posts
    788
    Reputation
    287
    Thanks
    182
    /Closed; resolved.
    Premium Member | June 29, 2016
    Aura to Kate | January 2, 2018
    Realm of the Mad God Minion | July 16, 2020 - Present

Similar Threads

  1. ZG .184 Private Matches looking for players
    By wesdaddy in forum Call of Duty Modern Warfare 2 Help
    Replies: 21
    Last Post: 02-20-2010, 08:32 AM
  2. Still Looking For 1lt Account Please Anyone !!!
    By Lεon in forum Trade Accounts/Keys/Items
    Replies: 7
    Last Post: 01-18-2010, 04:33 PM
  3. looking for Granado espada, Bots, hacks, exploits
    By Yosi94 in forum General Game Hacking
    Replies: 2
    Last Post: 08-13-2009, 11:48 AM
  4. looking for Granado espada, Bots, hacks, exploits
    By Yosi94 in forum Trade Accounts/Keys/Items
    Replies: 2
    Last Post: 08-05-2009, 01:24 AM
  5. looking for Granado espada, Bots, hacks, exploits
    By Yosi94 in forum Hack Requests
    Replies: 0
    Last Post: 08-01-2009, 09:21 AM