Page 11 of 11 FirstFirst ... 91011
Results 101 to 104 of 104
  1. #101
    Super Moderator
    Join Date
    Jul 2010
    Location
    Very North Darwin
    Posts
    1,565
    The things that people get up to on their servers never ceases to amaze me - but this one stands out

  2. #102
    Senior Member
    Join Date
    Apr 2013
    Location
    Russia
    Posts
    247
    Quote Originally Posted by BizSAR View Post
    Thank you!!
    Just one more Q: How would I change the second check code to kick on first offense, ban for 120 minutes on the second?
    Code:
    double count = limit.Activations(player.Name);
    
    if (count == 1) {
      plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on melee only server"));
      plugin.PRoConChat(plugin.R("%p_n% has been kicked."));
    } else if (count > 1) {
      plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, player.Name, 120, plugin.R("%p_n%, tempbanned you for using %w_n% on melee only server"));
      plugin.PRoConChat(plugin.R("%p_n% has been tempbanned."));
      plugin.PRoConEvent(plugin.R("%p_n% has been tempbanned."), "Insane Limits");
    }
    
    return false;
    P.S. It is worth noting that kill.Weapon="Death" in the first expression in most cases mean kill by vehicle, I don't know whether it was intentional.
    Last edited by Chilace; 25-06-2018 at 18:02.

  3. #103
    Member
    Join Date
    Dec 2010
    Location
    Portland, OR USA
    Posts
    50
    Thanks!
    Actually, no it wasn't intentional...and it actually doesn't seem to work yet. Trying to figure out if it's a setting or the expression itself. Was able to go with a "plan B" plugin and it was an epic time for 50+ participants, but would rather use this plugin for it's versatility.
    Last edited by BizSAR; 25-06-2018 at 20:39.
    ~BizSAR
    EVGA/PDXLAN game server admin

  4. #104
    Senior Member
    Join Date
    Apr 2013
    Location
    Russia
    Posts
    247
    Oh!

    player.Name and %p_n% are used in the OnJoin, OnSpawn etc. evaluations.

    Since OnKill evaluation is used, you need to replace all occurrences of these parameters to killer.Name and %k_n% respectively.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •