ImportBot Posted August 6, 2017 Author Share Posted August 6, 2017 Originally Posted by Link4134*: 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! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 7, 2017 Author Share Posted August 7, 2017 Originally Posted by maxdralle*: 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()); * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 7, 2017 Author Share Posted August 7, 2017 Originally Posted by Link4134*: 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. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 7, 2017 Author Share Posted August 7, 2017 Originally Posted by maxdralle*: 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 Files: il.png * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 7, 2017 Author Share Posted August 7, 2017 Originally Posted by Link4134*: procon > parent control layer > insane limits > detailsSweet 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? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 7, 2017 Author Share Posted August 7, 2017 Originally Posted by maxdralle*: 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) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 8, 2017 Author Share Posted August 8, 2017 Originally Posted by B7ackhawk*: I wonder why no any limit work on BF3 ? With the knowledge I use the same Insane-Limits ON BF4 and all work * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 16, 2017 Author Share Posted August 16, 2017 Originally Posted by spatieman*: 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. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 10, 2017 Author Share Posted September 10, 2017 Originally Posted by Link4134*: 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! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 10, 2017 Author Share Posted September 10, 2017 Originally Posted by IceCold*: 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 :/ * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 12, 2017 Author Share Posted September 12, 2017 Originally Posted by maxdralle*: 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 :/ what did you mean with 'log'? logging into a file or logging till round end? take a look at this: showthread....-TDM-SQDM-ONLY* and this: showthread....ry-Clan-Weapon* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 12, 2017 Author Share Posted September 12, 2017 Originally Posted by IceCold*: what did you mean with 'log'? logging into a file or logging till round end?log to file. just (players highest killing spree in a round)so i can pull info from file and add to a database. i have a battle report for each game played on my server, just wanted to add player killing sprees to that. http://pl-platoon.co.uk/pl-platoon-log/ and https://twitter.com/PL_Platoon ok,i have now found this :- myrcon.net/...insane-limits-examples#entry18492 and added :- plugin.Log("Logs/Killstreaks.log",victim.Name+","+vcount); which sort of does the job, but only even number and upto 16. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 12, 2017 Author Share Posted September 12, 2017 Originally Posted by IceCold*: ok, bare bones :- double count = limit.Spree(player.Name); plugin.Log("Logs/Killstreaks.log",player.Name+","+count); return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 29, 2017 Author Share Posted September 29, 2017 Originally Posted by B7ackhawk*: Hi, why vip not work ! !killme,!moveme,!lead im server admin and when i used it it say Sorry, this command is for !VIP SLOT players only * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 29, 2017 Author Share Posted September 29, 2017 Originally Posted by maxdralle*: Hi, why vip not work ! !killme,!moveme,!lead im server admin and when i used it it say Sorry, this command is for !VIP SLOT players only you use the 'vip slot manager' plugin. take a look at it. admin and vip is not the same. in your case you are a admin but not a vip. the commands are for vips. as an admin you can create vip slots. enter the the ingame command !addvip +100 then you are a vip * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 30, 2017 Author Share Posted September 30, 2017 Originally Posted by ColColonCleaner*: Hi, why vip not work ! !killme,!moveme,!lead im server admin and when i used it it say Sorry, this command is for !VIP SLOT players only Blackhawk, when multiple plugins have commands you need to give permissions for each one. The commands you mention (killme, moveme, lead) are AdKats plugin commands, so their permissions are handled by that plugin. For the other commands you'll need to go to the plugins that support them. As max said, the vip plugin is used for this. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 30, 2017 Author Share Posted September 30, 2017 Originally Posted by B7ackhawk*: Blackhawk, when multiple plugins have commands you need to give permissions for each one. The commands you mention (killme, moveme, lead) are AdKats plugin commands, so their permissions are handled by that plugin. For the other commands you'll need to go to the plugins that support them. As max said, the vip plugin is used for this. Capture.PNG this was work 100% before i change vps after i change vps its not work can i know reason please? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 1, 2017 Author Share Posted October 1, 2017 Originally Posted by maxdralle*: Capture.PNG this was work 100% before i change vps after i change vps its not work can i know reason please? post your complete limit code * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 1, 2017 Author Share Posted October 1, 2017 Originally Posted by B7ackhawk*: post your complete limit code// Insane Limits - VIP Commands// !lead, !killme, !moveme // SETUP Insane Limits: Evaluation: OnAnyChat ; First_check: Code // SETTINGS bool EnableLeadCmd = true; // true / false bool EnableKillmeCmd = true; // true / false bool EnableSwitchmeCmd = true; // true / false // SETTINGS END if ((player.LastChat).Length bool tmp_SendMsg = false; if (Regex.Match(player.LastChat, @"^/?[!|@]lead$", RegexOptions.IgnoreCase).Success) { // squad leader command if (EnableLeadCmd) { if (plugin.GetReservedSlotsList().Contains(player.Nam e)) { plugin.ServerCommand("squad.leader", player.TeamId.ToString(), player.SquadId.ToString(), player.Name); } else { tmp_SendMsg = true; } } } else if (Regex.Match(player.LastChat, @"^/?[!|@]killme$", RegexOptions.IgnoreCase).Success) { // killme command if (EnableKillmeCmd) { if (plugin.GetReservedSlotsList().Contains(player.Nam e)) { plugin.KillPlayer(player.Name); } else { tmp_SendMsg = true; } } } else if (Regex.Match(player.LastChat, @"^/?[!|@]moveme$", RegexOptions.IgnoreCase).Success) { // team switch command if (EnableSwitchmeCmd) { if (plugin.GetReservedSlotsList().Contains(player.Nam e)) { plugin.ServerCommand("admin.movePlayer", player.Name, server.OppositeTeamId(player.TeamId).ToString(), "0", "true"); } else { tmp_SendMsg = true; } } } // send message based on player language if (tmp_SendMsg) { if ((player.CountryCode == "br") || (player.CountryCode == "pt")) { // message for brasil, portugal plugin.SendPlayerMessage(player.Name, plugin.R("So para VIPs")); plugin.PRoConChat("PlayerSay " + player.Name + ") So para VIPs"); } else { // default message plugin.SendPlayerMessage(player.Name, plugin.R("Sorry, this command is for !VIP SLOT players only")); plugin.PRoConChat("PlayerSay " + player.Name + ") Sorry, this command is for !VIP SLOT players only"); } } 10:41:42 98] [insane Limits] Compiling Limit #4 - killme - OnAnyChat so where the problem !! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 1, 2017 Author Share Posted October 1, 2017 Originally Posted by maxdralle*: ... so where the problem !! mhh, maybe you are not a vip because you are not in the reserved slot list.create a reserved slot for your playername. goto procon pc tool > lists > reserved slots > add soldier * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 1, 2017 Author Share Posted October 1, 2017 Originally Posted by B7ackhawk*: mhh, maybe you are not a vip because you are not in the reserved slot list. create a reserved slot for your playername. goto procon pc tool > lists > reserved slots > add soldier !lead +!killme work but !! !moveme not O.o o.O * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 2, 2017 Author Share Posted October 2, 2017 Originally Posted by maxdralle*: !lead +!killme work but !! !moveme not O.o o.Othe moveme command can not work on a full server.your balancer must sync the reserved slots to the balancer whitelist * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 2, 2017 Author Share Posted October 2, 2017 Originally Posted by B7ackhawk*: the moveme command can not work on a full server. your balancer must sync the reserved slots to the balancer whitelist I got it thank you * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 10, 2017 Author Share Posted October 10, 2017 Originally Posted by GR101*: in insane limits you can use custom lists for VIP roles. create new lists (e.g. list_name: 'vip_lead_list') and put the VIP playernames into the data section.then change the script. replace the parts 'if (plugin.GetReservedSlotsList().Contains(player.Nam e)) {' with 'if (!plugin.isInList(player.Name, "vip_lead_list")) {' I've add the changes, created a vip_lead_list and it says in-game "Sorry, this command is for !VIP SLOT players only" * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 10, 2017 Author Share Posted October 10, 2017 Originally Posted by maxdralle*: I've add the changes as shown above, created a vip_lead_list and it says in-game "Sorry, this command is for !VIP SLOT players only"replace it with:Code: if (plugin.isInList(player.Name, "vip_lead_list")) {there was a " ! " in the line * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 10, 2017 Author Share Posted October 10, 2017 Originally Posted by GR101*: replace it with: Code: if (plugin.isInList(player.Name, "vip_lead_list")) {there was a " ! " in the lineThank you. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 11, 2017 Author Share Posted October 11, 2017 Originally Posted by B7ackhawk*: Hi guys on my server 2 admin can used !killme+!moveme !! but other admin cant ! why? Capture.PNG * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 13, 2017 Author Share Posted October 13, 2017 Originally Posted by B7ackhawk*: please any help? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 13, 2017 Author Share Posted October 13, 2017 Originally Posted by maxdralle*: Hi guys on my server 2 admin can used !killme+!moveme !! but other admin cant ! why? Capture.PNG maybe the ingame playername is not correct, case sensitive difference, or there is a space character in your list. copy paste the name again... * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 13, 2017 Author Share Posted October 13, 2017 Originally Posted by B7ackhawk*: maybe the ingame playername is not correct, case sensitive difference, or there is a space character in your list. copy paste the name again... thank for replybut its correct 100% * Restored post. It could be that the author is no longer active. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.