Page 2 of 141 FirstFirst 12341252102 ... LastLast
Results 11 to 20 of 1405
  1. #11

    Weapon Multi-Kill achievement

    For this limit, you can set it to any weapon you wish, as long as you know the name of the weapon. I will show it here for "C4". The way it works is that it tracks multiple kills in a very short amount of time with the same weapon. When this happens, you are either hacking or you just got a multi-kill.


    Set limit to evaluate OnKill, and set action to Say

    Set first_check to this Expression:

    Code:
                   ( kill.Weapon.Equals("C4") )
    Set second_check to this Expression::

    Code:
                  ( limit.Activations(player.Name, TimeSpan.FromSeconds(10)) > 1 )
    And set these action specific parameters:

    Code:
                  say_audience = All
                  say_message = %p_n% multi-kill achievement with %w_n%!
    The rate for this limit is +1 kill in 10 seconds, you may adjust this as you see fit.

  2. #12

    Melee/Knife Death Shame

    This limit sends a shame message to the server when a player is meleed, or knifed.

    Set the limit evaluation to OnKill, and set the action to Say

    Set the fist_check to this Expression:

    Code:
                    Regex.Match(kill.Weapon, "(Melee|Knife)").Success
    And set these action specific parameters:

    Code:
                    say_audience = All
                    say_message = %k_n% just sliced %v_n%'s throat, what a shame!

  3. #13

    Team First Blood

    This limit sends a global message for the first kill of the round, in each team

    Set the limit evaluation to OnKill, and set the action to Say

    Set the fist_check to this Expression:

    Code:
                    (true)
    Set the second_check to this Expression:

    Code:
                    limit.Activations(player.TeamId) == 1
    And set these action specific parameters:

    Code:
                    say_message = %p_n% got the first kill on his team this round with %w_n%!
                    say_audience = All

  4. #14

    Server First Blood

    This limit sends a global message for the first kill of the round, in the entire server. This is very similar to the Team First Blood, example. The only thing that changes is that instead of counting first kill for each team, it counts first kill for entire server.

    Set the limit evaluation to OnKill, and set the action to Say

    Set the fist_check to this Expression:

    Code:
                    (true)
    Set the second_check to this Expression:

    Code:
                    limit.Activations() == 1
    And set these action specific parameters:

    Code:
                    say_audience = All
                    say_message = %p_n% got the first kill of this round with %w_n%!

  5. #15

    Round Kpm Kicker

    This limit will activate for players that exceed a certain Kpm value during the round. In this example the action being taken is Kick, but you may set it to any action you want.


    Set limit to evaluate OnInterval, and set action to Kick

    Set first_check to this Expression:

    Code:
                    ( player.KpmRound > 30 && (player.TimeRound/60) > 5 )

    Note that for sanity reasons, I have put an extra check to make sure that the player has been playing in the current round for at least 5 minutes. That way the Kpm measure has some time to stabilize itself, before a kick based on Kpm can be considered.

    You may change the values being checked in the Expression as you see fit.

  6. #16

    Kife Only Server

    This limit will check for how many times a player made non-kife kills. On the first kill, it will send a warning on chat, on the second kill, it will kick the player.


    Set limit to evaluate OnKill, set action to None


    Set first_check to this Expression:

    Code:
                 ! Regex.Match(kill.Weapon, @"(Melee|Knife)", RegexOptions.IgnoreCase).Success
    Set second_check to this Code:

    Code:
         double count = limit.Activations(player.Name);
    
         if (count == 1)
             plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
         else if (count > 1)
             plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on knife only server"));
         
         return false;
    Last edited by micovery; 29-12-2011 at 06:05.

  7. #17

    Multi-Message Kill Spree

    This limit is for tracking player's kill sprees. The example only tracks kills (not team-kills). This is a base example, you can modify it to track kills with specific weapons, etc. You can do that by modifying the first_check Expression. If not sure, as for help in this thread.

    Set the limit evaluation to OnKill, and set the action to None

    Set the first_check to this Expression:

    Code:
                    ( true )
    Set the second_check to this Code:

    Code:
            double count = limit.Spree(player.Name);
    
            if (count == 4)
    	        plugin.SendGlobalMessage(plugin.R("%p_n% has a %r_x% kill spree!"));
            else if (count == 5)
                plugin.SendGlobalMessage(plugin.R("%p_n% has a %r_x% kill spree! He's on fire!")); 
            else if (count == 6)
                plugin.SendGlobalMessage(plugin.R("%p_n% has a %r_x% kill spree! Getting ridiculous!"));
            else if ( count > 6)
                plugin.SendGlobalMessage(plugin.R("%p_n% has a %r_x% kill spree! He's unstoppable!"));
    	
            return false;
    The kill spree messages start at 4, and go all the way to 6 kills. After 6 kills, it's always the same message being sent, just with a different kill count. You can modify these values as you see fit, or even add more messages to extend it.
    Last edited by micovery; 29-12-2011 at 06:29.

  8. #18

    No RPG/M320 Server

    Set limit to evaluate OnKill, set action to Kick_Say, or any other action you wish

    Set first_check to this Expression:

    Code:
              ( kill.Weapon.Equals("M320") ) || ( kill.Weapon.Equals("RPG-7") ) || ( kill.Weapon.Equals("SMAW") )
    Set these action specific parameters:

    Code:
         kick_message = No M320\RPG\SMAW! connect again and dont use this weapon!
         say_message = %p_n% killed with %w_n%, he kill %v_n%! KICKED!
    Last edited by micovery; 04-01-2012 at 04:25. Reason: formatting

  9. #19

    Multi-Message Death Spree

    This limit is very similar to the Multi-Message Kill Spree the only parts that change are the event, and the messages. Basically, it counts how many times the player has died. (suicides not counted). The spree count is reset as soon as player makes a kill.

    Set the limit evaluation to OnDeath, and set the action to None

    Set the fist_check to this Expression:

    Code:
                    ( true )
    Set the second_check to this Code:

    Code:
            double count = limit.Spree(player.Name);
    
            if (count == 4)
    	        plugin.SendGlobalMessage(plugin.R("%p_n% has died for the %r_x_th% time!"));
            else if (count == 5)
                plugin.SendGlobalMessage(plugin.R("%p_n% has died for the %r_x_th% time, Waahmbulance!")); 
            else if (count == 6)
                plugin.SendGlobalMessage(plugin.R("%p_n% has died for the %r_x_th% time, Maybe take a break?"));
            else if ( count > 6)
                plugin.SendGlobalMessage(plugin.R("%p_n% has died for the %r_x_th% time, Alt-F4 now please!"));
            	
            return false;
    The messages start at the 4th death, and go up to 6. After the 6th death, all messages are the same, but with different count. You may adjust the checks to start at different count values, or extend it to add more messages.

  10. #20

    Pistol Only Server

    This limit will check for how many times a player made non-pistol kills. On the first kill, it will send a warning on chat, on the second kill, it will kick the player.


    Set limit to evaluate OnKill, set action to None


    Set first_check to this Expression:

    Code:
        ! Regex.Match(kill.Weapon, @"(M1911|M9|M93R|Taurus|MP412REX|MP443|Glock)", RegexOptions.IgnoreCase).Success
    Set second_check to this Code:

    Code:
         double count = limit.Activations(player.Name);
    
         if (count == 1)
             plugin.SendGlobalMessage(plugin.R("%p_n%, this is a pistol only server, do not use %w_n% again! Next time kick"));
         else if (count > 1)
             plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on pistol only server"));
         
         return false;
    You can use this limit as a template for restricting any weapon you want. Just change the Expression in the first_check depending on what weapon you want to restrict. The way it is right now, it will activate for any Non-Pistol ... that is because of the Negation symbol "!" at the begining of the expression. If you remove, the Negation symbol "!", it becomes a positive check. So you could make it activate for certain weapons, and restrict those only, while allowing the rest.
    Last edited by micovery; 29-12-2011 at 07:22.

 

 

Posting Permissions

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