Page 141 of 141 FirstFirst ... 4191131139140141
Results 1,401 to 1,405 of 1405
  1. #1401
    Thanks Hex,

    I thought the the change was with the existing action, not a new action. But I'm up to speed now.

  2. #1402
    Quote Originally Posted by micovery View Post
    Set limit to evaluate OnJoin, set action to Kick or ban, or any other action you wish

    Set first_check to this Expression:

    Code:
                  ( player.Rank > 45 )
    You may change the rank value from 45 to whatever value you want.

    i put this for auto kick players more than lvl 45 in me server ( is only for nobs) but no run why???? no kick players

    or how i put automatick kick players more lvl 45

  3. #1403
    Quote Originally Posted by reclutador View Post
    i put this for auto kick players more than lvl 45 in me server ( is only for nobs) but no run why???? no kick players

    or how i put automatick kick players more lvl 45
    most likely it is because of player stats fetching being throttled.

    do it like this

    Set limit to evaluate OnSpawn, set action to Kick or ban, or any other action you wush

    Set first_check to this Expression:

    Code:
    (!player.StatsError && player.Rank > 45 )
    you may change the rank value from 45 to whatever value you want.

    note that this limit will not trigger until player stats are fetched.
    Feeding is my job.

  4. #1404

    Melee/Knife Death Shame From Message List

    I want to setup a Melee/Knife Death Shame From Message List Limit.

    I found this example. Here.

    I used the following.

    First Check Expression

    OnKill, action - none

    Code:
     ( Regex.Match(kill.Weapon, "(Melee|Knife)").Success )
    Second check

    Code:
     List<String> shame = new List<String>(); 
    shame.Add("%k_fn% just sliced %v_n%'s throat, what a shame, bro!"); 
    shame.Add("%v_n% was shanked by %k_fn%!"); 
    shame.Add("%k_fn% just took %v_n%'s tags and made him cry!"); 
    shame.Add("%k_fn% slipped a shiv into %v_n%'s back!"); 
    shame.Add("%k_fn% knifed %v_n% and Insane Limits approves!"); 
    shame.Add("%v_n%, you gonna let %k_fn% get away with taking your tags?"); 
    shame.Add("%k_fn% just Tweeted about knifing %v_n%!"); 
    shame.Add("%k_fn% just posted %v_n%'s tags on Facebook!"); 
    shame.Add("%k_fn%: 'Just die already, %v_n%'"); 
    shame.Add("%k_fn%: 'Hey %v_n%, you want summa this?'"); 
    shame.Add("%v_n% took a gun to a knife fight with %k_fn%, and LOST!"); 
    shame.Add("Did you see the YouTube of %k_fn% knifing %v_n%?"); 
    shame.Add("%k_fn% just added +1 knife kills to his Battlelog stats, thanks to %v_n%"); 
    shame.Add("%k_fn%: 'Hey %v_n%, check your six next time!'"); 
    shame.Add("%v_n%, go tell your momma you lost your tags to %k_fn%!"); 
    shame.Add("%v_n% just wanted to see %k_fn%'s Premium knife, not have it shoved in his eye!"); 
    int level = 2; try { level = Convert.ToInt32(plugin.getPluginVarValue("debug_level")); } catch (Exception e) {} 
    int next = Convert.ToInt32(limit.ActivationsTotal()); 
    next = next % shame.Count; String msg = plugin.R(shame[next]); 
    bool noSpam = (limit.Activations(killer.Name) > 1); 
    if (level >= 2) plugin.ConsoleWrite("^b[Knife Shame]^n " + ((noSpam)?"^8private^0: ":"^4public^0: ") + msg); 
    if (noSpam) { plugin.ServerCommand("admin.say", msg, "player", killer.Name); 
    plugin.ServerCommand("admin.say", msg, "player", victim.Name); 
    plugin.ServerCommand("admin.yell", msg, "8", "player", killer.Name); 
    plugin.ServerCommand("admin.yell", msg, "8", "player", victim.Name); } else { plugin.SendGlobalMessage(msg);
     plugin.ServerCommand("admin.yell", msg, "8"); } 
    plugin.PRoConChat("ADMIN > " + msg); 
    return false;
    I got these errors.

    Code:
     ERROR: 2 errors compiling Code
    ERROR: (CS0103, line: 23, column: 1221):  The name 'limit' does not exist in the current context
    ERROR: (CS0103, line: 23, column: 1326):  The name 'limit' does not exist in the current context
    Can someone help me figure out whats going on or what I did wrong?

    Thanks in advance.
    Last edited by Pallywhacker; 20-02-2013 at 14:37.

  5. #1405
    Quote Originally Posted by Pallywhacker View Post
    I want to setup a Melee/Knife Death Shame From Message List Limit.

    I found this example. Here.

    I used the following.

    First Check Expression

    OnKill, action - none

    Code:
     ( Regex.Match(kill.Weapon, "(Melee|Knife)").Success )
    Second check

    Code:
     List<String> shame = new List<String>(); 
    shame.Add("%k_fn% just sliced %v_n%'s throat, what a shame, bro!"); 
    shame.Add("%v_n% was shanked by %k_fn%!"); 
    shame.Add("%k_fn% just took %v_n%'s tags and made him cry!"); 
    shame.Add("%k_fn% slipped a shiv into %v_n%'s back!"); 
    shame.Add("%k_fn% knifed %v_n% and Insane Limits approves!"); 
    shame.Add("%v_n%, you gonna let %k_fn% get away with taking your tags?"); 
    shame.Add("%k_fn% just Tweeted about knifing %v_n%!"); 
    shame.Add("%k_fn% just posted %v_n%'s tags on Facebook!"); 
    shame.Add("%k_fn%: 'Just die already, %v_n%'"); 
    shame.Add("%k_fn%: 'Hey %v_n%, you want summa this?'"); 
    shame.Add("%v_n% took a gun to a knife fight with %k_fn%, and LOST!"); 
    shame.Add("Did you see the YouTube of %k_fn% knifing %v_n%?"); 
    shame.Add("%k_fn% just added +1 knife kills to his Battlelog stats, thanks to %v_n%"); 
    shame.Add("%k_fn%: 'Hey %v_n%, check your six next time!'"); 
    shame.Add("%v_n%, go tell your momma you lost your tags to %k_fn%!"); 
    shame.Add("%v_n% just wanted to see %k_fn%'s Premium knife, not have it shoved in his eye!"); 
    int level = 2; try { level = Convert.ToInt32(plugin.getPluginVarValue("debug_level")); } catch (Exception e) {} 
    int next = Convert.ToInt32(limit.ActivationsTotal()); 
    next = next % shame.Count; String msg = plugin.R(shame[next]); 
    bool noSpam = (limit.Activations(killer.Name) > 1); 
    if (level >= 2) plugin.ConsoleWrite("^b[Knife Shame]^n " + ((noSpam)?"^8private^0: ":"^4public^0: ") + msg); 
    if (noSpam) { plugin.ServerCommand("admin.say", msg, "player", killer.Name); 
    plugin.ServerCommand("admin.say", msg, "player", victim.Name); 
    plugin.ServerCommand("admin.yell", msg, "8", "player", killer.Name); 
    plugin.ServerCommand("admin.yell", msg, "8", "player", victim.Name); } else { plugin.SendGlobalMessage(msg);
     plugin.ServerCommand("admin.yell", msg, "8"); } 
    plugin.PRoConChat("ADMIN > " + msg); 
    return false;
    I got these errors.

    Code:
     ERROR: 2 errors compiling Code
    ERROR: (CS0103, line: 23, column: 1221):  The name 'limit' does not exist in the current context
    ERROR: (CS0103, line: 23, column: 1326):  The name 'limit' does not exist in the current context
    Can someone help me figure out whats going on or what I did wrong?

    Thanks in advance.
    Please post your request in Insane Limits Request. This thread is an archive of old limits.
    Don't send me private messages (PMs) unless you really need privacy, like your game server password. If you just have a question or need help, post in one of the threads. It's extra work for me to answer questions and give help in private messages and no one else gets the benefit of the answer.

 

 

Posting Permissions

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