Page 307 of 317 FirstFirst ... 207257297305306307308309 ... LastLast
Results 3,061 to 3,070 of 3161
  1. #3061
    Hello all! I'm new to insane limits, and am loving what I'm seeing!

    However, I could use some help here. I need to be able to use int variables across different limits (i.e. Limit1 sets int test = 1; and Limit2 is able to read test)

    I know c++/Java, so I'm able to program what I need on my own easily enough. I'm just trying to figure out how to make my code interact properly.

    Also, is there a way I can get how much time has passed/is left in the match? I'm trying to make this limit only run during the first half of the game, and the ticket count isn't enough if it takes them 50 mins to get 20 tickets.

    Thanks!

  2. #3062
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by Link4134 View Post
    Hello all! I'm new to insane limits, and am loving what I'm seeing!

    However, I could use some help here. I need to be able to use int variables across different limits (i.e. Limit1 sets int test = 1; and Limit2 is able to read test)

    I know c++/Java, so I'm able to program what I need on my own easily enough. I'm just trying to figure out how to make my code interact properly.

    Also, is there a way I can get how much time has passed/is left in the match? I'm trying to make this limit only run during the first half of the game, and the ticket count isn't enough if it takes them 50 mins to get 20 tickets.

    Thanks!
    yes, insane limits is amazing!
    take a look at the first tab from IL plugin. there you will find everything what you need. but here it is a demo:


    Code:
    int MyIntXy1 = 0;
    
    // load int
    if (server.RoundData.issetInt("MyIntXy1")) MyIntXy1 = server.RoundData.getInt("MyIntXy1");
    
    
    // print int
    plugin.ConsoleWrite("test > get int: " + MyIntXy1.ToString());
    
    //save int
    server.RoundData.setInt("MyIntXy1", MyIntXy1 + 1);

    Code:
    // current round time / tickets
    double tmp_roundtime = server.TimeRound;
    double tmp_team1_tickets = server.RemainTickets(1);
    double tmp_team2_tickets = server.RemainTickets(2);
    
    // print infos
    plugin.ConsoleWrite("test > roundtime in sec.: " + tmp_roundtime.ToString());
    plugin.ConsoleWrite("test > tickets team1: " + tmp_team1_tickets.ToString());
    plugin.ConsoleWrite("test > tickets team2: " + tmp_team2_tickets.ToString());
    Last edited by maxdralle; 06-08-2017 at 21:50.
    Developer of the VIP Slot Manager Plugin

  3. #3063
    Quote Originally Posted by maxdralle View Post
    yes, insane limits is amazing!
    take a look at the first tab from IL plugin. there you will find everything what you need. but here it is a demo:


    Code:
    int MyIntXy1 = 0;
    
    // load int
    if (server.RoundData.issetInt("MyIntXy1")) MyIntXy1 = server.RoundData.getInt("MyIntXy1");
    
    
    // print int
    plugin.ConsoleWrite("test > get int: " + MyIntXy1.ToString());
    
    //save int
    server.RoundData.setInt("MyIntXy1", MyIntXy1 + 1);

    Code:
    // current round time / tickets
    double tmp_roundtime = server.TimeRound;
    double tmp_team1_tickets = server.RemainTickets(1);
    double tmp_team2_tickets = server.RemainTickets(2);
    
    // print infos
    plugin.ConsoleWrite("test > roundtime in sec.: " + tmp_roundtime.ToString());
    plugin.ConsoleWrite("test > tickets team1: " + tmp_team1_tickets.ToString());
    plugin.ConsoleWrite("test > tickets team2: " + tmp_team2_tickets.ToString());
    Thanks a ton!

    Update: I cannot find this "tab" you speak of. No clue where to look for a list of things like this.
    Last edited by Link4134; 06-08-2017 at 22:31.

  4. #3064
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by Link4134 View Post
    Thanks a ton!

    Update: I cannot find this "tab" you speak of. No clue where to look for a list of things like this.
    procon > parent control layer > insane limits > details
    Attached Images Attached Images
    Developer of the VIP Slot Manager Plugin

  5. #3065
    Quote Originally Posted by maxdralle View Post
    procon > parent control layer > insane limits > details
    Sweet thanks! One final question: does 'server.RoundData.setInt' last for more than the current round? Or does it reset each round?

    i.e. if I use
    server.RoundData.setInt("test", 1);
    Will that still read 1 next round? Or 0?

  6. #3066
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by Link4134 View Post
    Sweet thanks! One final question: does 'server.RoundData.setInt' last for more than the current round? Or does it reset each round?

    i.e. if I use

    Will that still read 1 next round? Or 0?

    server.RoundData (reset each round)
    plugin.Data (reset after plugin restart)
    server.Data (reset after plugin/layer restart)
    player.Data (for current player only)
    Developer of the VIP Slot Manager Plugin

  7. #3067
    I wonder why no any limit work on BF3 ? With the knowledge I use the same Insane-Limits ON BF4 and all work

  8. #3068
    Senior Member
    Join Date
    Feb 2015
    Location
    netherlands
    Posts
    311
    uh, question.
    are the basic script also working correct for BF4 ?
    i have BF4 now, but if i see my SPM i think ,eh ?
    KD of 0.0, 2 kill, 80 deads or so, but a SPM of 1585 is abit weard.

  9. #3069
    Hello, I've run into a problem.

    I named a limit the following: Set Variables | Announce Rules

    Now, whenever editing that limit, I get this error: [Insane Limits] ERROR: unknown variable " Announce Rules (Enabled, Compiled)|limit_7_name"

    It appears that the plugin uses | to separate the variables, so it causes the conflict. No edits are ever saved upon getting the error.

    Help is appreciated!

  10. #3070
    can anyone help ?
    i want an End of Round log for all players Top killing sprees, from that round.
    i have no clue how to do this :/
    Last edited by IceCold; 10-09-2017 at 19:09.

 

 

Posting Permissions

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