[SM Plugin] Empires Targeting

Discussion in 'Coding' started by Xyaminou, May 22, 2017.

  1. Xyaminou

    Xyaminou Member

    Messages:
    1,369
    Likes Received:
    156
    Trophy Points:
    0
    Just a small plugin that adds a few "Multi Target Filters", no I still don't know how to code, I just copied spectatortarget.

    It adds:
    • @BE and @be: Target Brenodi Empire
    • @NF and @nf: Target Northern Faction
    • @playing, @benf, @nfbe, @BENF and @NFBE: Target both Northern Faction and Brenodi Empire
    • @NFcomm, @nfcomm and @NFCOMM: Target Northern Faction's Commander
    • @BEcomm, @becomm and @BECOMM: Target Brenodi Empire's Commander
    • @BOTHcomm, @BENFcomm, @NFBEcomm, @Commanders, @Comms (...): Target Northern Faction and Brenodi Empire's Commanders
    Source: empirestarget.sp
    Plugin: empirestarget.smx
     
    Last edited: May 22, 2017
    Neoony likes this.
  2. Mikleo

    Mikleo Member

    Messages:
    155
    Likes Received:
    98
    Trophy Points:
    0
    just copy nf/be and add:
    && GetEntProp(i, Prop_Send, "m_bCommander") == 1

    at the end of the if statement.
     
    Xyaminou likes this.
  3. PwnedYoAss

    PwnedYoAss Member

    Messages:
    1,088
    Likes Received:
    39
    Trophy Points:
    0
    I'm confused, what does this plugin do?
     
  4. Xyaminou

    Xyaminou Member

    Messages:
    1,369
    Likes Received:
    156
    Trophy Points:
    0
    1.1: Added commander targets
    • @NFcomm, @nfcomm and @NFCOMM: Target Northern Faction's Commander
    • @BEcomm, @becomm and @BECOMM: Target Brenodi Empire's Commander
    • @BOTHcomm, @BENFcomm, @NFBEcomm, @Commanders, @Comms (...): Target Northern Faction and Brenodi Empire's Commanders
     
  5. Xyaminou

    Xyaminou Member

    Messages:
    1,369
    Likes Received:
    156
    Trophy Points:
    0
    It adds "Multi Target Filters" for admin commands such as /slay @NF would slay all the players in NF.

    Imagine if a guy with a chinese name entered the CV, you have no way to slay him, you'd have to look in the list through the admin menu.
    Now you don't have to worry about typing the name of whoever is griefing the CV, just type @BEcomm or @NFcomm and job done.
     
  6. PwnedYoAss

    PwnedYoAss Member

    Messages:
    1,088
    Likes Received:
    39
    Trophy Points:
    0
    Oh. Gotcha. That's actually super useful.
     

Share This Page