ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by DoctorTrojan*: ty_ger07, its everything okay with my logic, dont offend me please. U NEVER need "and" condition in a weapon parts of rulz. So its a BUG. How can u allow all SniperRifles and U_V40 only now? I've fixed this. And this conditions works great with my fix. Code: On Kill;Not Damage Handgun;Weapon U_M93R,U_Glock18;Kill or On Kill;Not Damage SniperRifle;Not Weapon U_V40;KillAnd i think that author of this plugin should to do it also. =) Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by wdfstryfe*: I'm trying to do a surrender script but the one I had did not work so I had to go to one that starts whenever. What's the best way to set it after X amount of time the script becomes active? Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by tarreltje*: How to make the top 100 players on the server?With proconrulz it can be doen i think, be it would be to much coding. Just check out the plugin below, it will do top10 , rank ect myrcon.net/.../stats-webpage-for-xpkillers-stats-logger-plugin Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by tarreltje*: I'm trying to do a surrender script but the one I had did not work so I had to go to one that starts whenever. What's the best way to set it after X amount of time the script becomes active?We cant use time in proconrulz to trigger a rule. I would suggest to count kills for this. So basicly after x amount kills to trigger a rule; #### Trigger for Surrender Rules #### On Kill;Incr %activatesurrender% On Kill;If %activatesurrender% == 50;Set %surrender% 1 #### Surrender Rules #### On Kil;If %surrender% == 1; (your Rules) So each kill will increase the var %activatesurrender%. When it reaches 50 it will set the var % surrender% to 1. So your surrender rules will only work when %surrender% = 1 Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by wdfstryfe*: That would be PERFECT! Thank you! Or ticket percentage just have to find out the best way to do it. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by tarreltje*: That would be PERFECT! Thank you! Or ticket percentage just have to find out the best way to do it.I believe there was something with the teamscore not being that accurate! If always count kills for all my rules that needs some time delay. I also use it for my chatspambot Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by tarreltje*: ty_ger07, its everything okay with my logic, dont offend me please. U NEVER need "and" condition in a weapon parts of rulz. So its a BUG. How can u allow all SniperRifles and U_V40 only now? I've fixed this. And this conditions works great with my fix. Code: On Kill;Not Damage Handgun;Weapon U_M93R,U_Glock18;Kill or On Kill;Not Damage SniperRifle;Not Weapon U_V40;KillAnd i think that author of this plugin should to do it also. =)It isnt a bug, you just think wrong On Kill;Not Damage Handgun;Weapon U_M93R,U_Glock18;Kill Not Damage Handgun Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 27, 2014 Share Posted July 27, 2014 Originally Posted by ty_ger07*: ty_ger07, its everything okay with my logic, dont offend me please. U NEVER need "and" condition in a weapon parts of rulz. So its a BUG. How can u allow all SniperRifles and U_V40 only now? I've fixed this. And this conditions works great with my fix. Code: On Kill;Not Damage Handgun;Weapon U_M93R,U_Glock18;Kill or On Kill;Not Damage SniperRifle;Not Weapon U_V40;KillAnd i think that author of this plugin should to do it also. =)If you shoot a handgun, it is a handgun. 'Not Damage Handgun' will be false and the rule will stop. I am not trying to offend you. But you are not thinking correctly. Think of it this way: What if you made a rule that if a person goes through your doorway wearing certain colors, they have to pay $5. Your rule: on enter, if not wearing blue and wearing blue socks, pay $5. No one will ever end up paying. If they have no blue on, they won't pay because they don't have blue socks. And if they have blue socks, they won't pay because they are wearing something which is blue. Please stop being offended and think it through better. If you are hell-bent on believing you are correct, you will never solve your 'bug'. Your rules in your code don't make sense. Please read the documentation. There is no such condition as 'or'. If you read the documentation, you will see that semicolons ( ; ) ARE 'and'. No, you don't ever type 'AND', but semicolons ARE 'AND'. Just read the documentation... It can't be NOT a handgun AND be a certain kind of handgun. You need to solve your logic issues ('and', 'or', 'not') to solve your 'bug'. I am not insulting your intelligence. By 'logic' I mean logical operators ('and', 'or', 'not'), not intelligence. On Kill;Damage Handgun;Weapon U_Glock18;Kill Means: On Kill;Damage Handgun AND Weapon U_Glock18;Kill Semicolons between conditions mean 'AND'. On Kill;Weapon U_M93R,U_Glock18;Kill Means: On Kill Weapon U_M93R OR U_Glock18;Kill Commas or new rules mean 'OR'. You don't ever type 'AND' or 'OR'. It's just what those symbol's logical values are. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 28, 2014 Share Posted July 28, 2014 Originally Posted by ixnorp*: Is anyone having this problem on the new dragon teeth maps and old maps together(e.g. metro)? [10:22:30 22] ProconRulz: recoverable exception in process_part (ProconRulz will continue...) [10:22:30 22] ProconRulz: process_part rule.unparsed_rule = [On Kill;Map Metro;Weapon Death] [10:22:30 22] ProconRulz: process_part player_name = [l523667] [10:22:30 22] ProconRulz: process_part p.part_type = Map [10:22:30 22] ProconRulz: process_part k.Killer.SoldierName = [l523667] [10:22:30 22] ProconRulz: System.NullReferenceException: Object reference not set to an instance of an object. at PRoConEvents.ProconRulz.process_part(ParsedRule rule, PartClass p, String player_name, Kill k, String msg, Dictionary`2& keywords) I tried the rules on metro and it works. but once i change to dragon teeth map like sunken dragon conquest small. It shows me a load of errors in my procon console log. Problem with the Map_ dumb me forget to manually update BF4.def Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by Hodor*: why i got banned when kills 6 enemy, I did only one shot in the head Code: #AimDetect 1 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %.In the reason of ban: Impossible Hs/K 64 %. WHAAAT? Pls help i have this rules: Code: #AimDetect 1 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. #AimDetect 2 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 80;If %kills% > 10;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. #AimDetect 3 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 60;If %kills% > 20;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by ty_ger07*: why i got banned when kills 6 enemy, I did only one shot in the head Code: #AimDetect 1 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %.In the reason of ban: Impossible Hs/K 64 %. WHAAAT? Pls help i have this rules: Code: #AimDetect 1 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. #AimDetect 2 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 80;If %kills% > 10;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. #AimDetect 3 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 60;If %kills% > 20;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. 1) These lines are not necessary:"on spawn;serverfirst;set %kills% 0;set %hs% 0" Every round, these variables get set to 0 for all players automatically. 2) "#AimDetect 1", "#AimDetect 2", and "#AimDetect 3" being repeated like that causes every kill to increase the value of %kills% and %hs% by a factor of 3. That means that one kill will be counted as 3 kills and one headshot will be counted as 3 headshots. Try this instead: Code: #AimDetect On Kill;Not Damage SniperRifle;Incr %kills% On Kill;Not Damage SniperRifle;Headshot;Incr %hs% On Kill;If %kills% > 0;Set %proc.1% %hs% / %kills% * 100 #AimPunish On Kill;If %proc.1% >= 100;If %kills% > 5;Ban %p% Impossible Hs/K %proc.1% percent. On Kill;If %proc.1% >= 80;If %kills% > 10;Ban %p% Impossible Hs/K %proc.1% percent. On Kill;If %proc.1% >= 60;If %kills% > 20;Ban %p% Impossible Hs/K %proc.1% percent. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by LjMjollnir*: why i got banned when kills 6 enemy, I did only one shot in the head Code: #AimDetect 1 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %.In the reason of ban: Impossible Hs/K 64 %. WHAAAT? Pls help i have this rules: Code: #AimDetect 1 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. #AimDetect 2 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 80;If %kills% > 10;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. #AimDetect 3 on spawn;serverfirst;set %kills% 0;set %hs% 0 on kill;Not Damage SniperRifle;incr %kills% on kill;Not Damage SniperRifle;Headshot;incr %hs% on kill;Set %proc.1% %hs% / %kills% * 100 on kill;If %proc.1% >= 60;If %kills% > 20;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. Firstly.. you are multiplying code for no reason.. and that itself will screw with your results (tho it still got the wrong answer.. but that is something else) you need to remove alot of that code for example.. each kill its adding to the kill and hs counter they are all the same variables and are being added 3 times per kill while over all it will be the same ratio that you are looking at.. it is incorrect you also used the tag serverfirst you should have used playerfirst.. serverfirst only fires once.. playerfirst fires once per player .. that being said variables used in Proconrulz are wiped at the start of each round automatically. (%ini_section_key% are the exception) you also didnt check to see if %kills% is non zero... dividing by 0 is generally not acceptable im not sure if proconrulz checks for that kind of thing internally or not.. but always good practice to check it yourself so below is your code rewritten.. didnt test it... and not sure how it reported 64% since 1/6 is 16%.. by your rules it would have been 18 kills and 3 headshots and shouldnt have triggered the last check.. if it was 7 kills however that would have classified since your code was multiplying by 3 (21 kills/3 head shots still works out to be 14% tho...) Code: on spawn;playerfirst;set %kills% 0;set %hs% 0 on kill Not Damage SniperRifle;incr %kills% Not Damage SniperRifle;Headshot;incr %hs% on kill;if %kills% > 0 Set %proc.1% %hs% / %kills% * 100 If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. If %proc.1% >= 80;If %kills% > 10;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. If %proc.1% >= 60;If %kills% > 20;Log %p%;Ban %p% Impossible Hs/K %proc.1% %.soo.. make sure you are not adding to %kills% or %hs% in another script.. that might be causing the issue.. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by Hodor*: You made ??a mistake here? Not set ; on spawn;playerfirst;set %kills% 0;set %hs% 0 on kill; Not Damage SniperRifle;incr %kills% Not Damage SniperRifle;Headshot;incr %hs% on kill;if %kills% > 0 Set %proc.1% %hs% / %kills% * 100 If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. If %proc.1% >= 80;If %kills% > 10;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. If %proc.1% >= 60;If %kills% > 20;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by astrix_au*: Wrong post. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by ty_ger07*: You made ??a mistake here? Not set ; Code: on spawn;playerfirst;set %kills% 0;set %hs% 0 on kill Not Damage SniperRifle;incr %kills% Not Damage SniperRifle;Headshot;incr %hs% on kill;if %kills% > 0 Set %proc.1% %hs% / %kills% * 100 If %proc.1% >= 100;If %kills% > 5;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. If %proc.1% >= 80;If %kills% > 10;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. If %proc.1% >= 60;If %kills% > 20;Log %p%;Ban %p% Impossible Hs/K %proc.1% %. No, not a mistake. http://www.forsterlewis.com/proconrulz.pdf "Multi-line rulz copying a trigger from above" Page 12 Multi-line rulz which copy the trigger above are shown in the documentation without having an ending semicolon for some reason. Of you can use this if it is easier for you to understand. Code: #AimDetect On Kill;Not Damage SniperRifle;Incr %kills% On Kill;Not Damage SniperRifle;Headshot;Incr %hs% On Kill;If %kills% > 0;Set %proc.1% %hs% / %kills% * 100 #AimPunish On Kill;If %proc.1% >= 100;If %kills% > 5;Ban %p% Impossible Hs/K %proc.1% percent. On Kill;If %proc.1% >= 80;If %kills% > 10;Ban %p% Impossible Hs/K %proc.1% percent. On Kill;If %proc.1% >= 60;If %kills% > 20;Ban %p% Impossible Hs/K %proc.1% percent. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by DoctorTrojan*: ty_ger07, tarreltje i just sayed that you NEVER need "AND" condition in a weapon context in ur rules. Never! I'm perfectly know what means "and" and "or" conditions. So it would be reasonable to made DEFAULT "OR" condition between weapon parts. The main idea of my comment is: "YOU NEVER NEED "AND" CONDITION FOR THE WEAPON PARTS OF RULLES". Never. With the default "or" condition between weapon parts ur code would be MUCH clearer. That ts im trying to explain u. Please answer on my simple question. "How can u allow all SniperRifles and U_V40 only now_" Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by ty_ger07*: ty_ger07, tarreltje i just sayed that you NEVER need "AND" condition in a weapon context in ur rules. Never! I'm perfectly know what means "and" and "or" conditions. So it would be reasonable to made DEFAULT "OR" condition between weapon parts. The main idea of my comment is: "YOU NEVER NEED "AND" CONDITION FOR THE WEAPON PARTS OF RULLES". Never. With the default "or" condition between weapon parts ur code would be MUCH clearer. That ts im trying to explain u. Please answer on my simple question.Nobody EVER needs a rule with AND? Are you joking? EVERY individual rule is OR and therefore don't you suppose that there should be at least ONE SINGLE way for people to use AND? "How can u allow all SniperRifles and U_V40 only now_"If you can't exclude all from your filter, you should include all into your filter and invert the action. Here is the full code you need with comments in the code to explain. Code: # # RESTRICT THESE CLASSES COMPLETELY # On Kill;Damage AssaultRifle;Kill On Kill;Damage Carbine;Kill On Kill;Damage DMR;Kill On Kill;Damage Impact;Kill On Kill;Damage LMG;Kill On Kill;Damage None;Kill On Kill;Damage ProjectileExplosive;Kill On Kill;Damage Shotgun;Kill On Kill;Damage SMG;Kill # # RESTRICT A CERTAIN CLASS EXCEPT FOR ONE WEAPON IN THAT CLASS # On Kill;Damage Explosive;Not Weapon U_V40;Kill # # RESTRICT CERTAIN WEAPONS WHICH ARE IN AN OTHERWISE ALLOWED CLASS # On Kill;Weapon U_M93R,U_Glock18;KillNotice above: "Damage Explosive;Not Weapon U_V40". That is an immediate example showing that your statement 'no one ever needs to use AND' is false. Damage with an explosive AND it is NOT the explosive U_V40. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by DoctorTrojan*: ty_ger07, i said nobody need AND between weapon parts. Thats what i said. ur solution is true. But if u need to warn player at first, then kill him and then kick. How much code it would be? BUT if u have "OR" condition between WEAPON PARTS. The code is MUCH clearer. Code: On Kill;Not Damage SniperRifle;Not Weapon U_V40 Say %p% somethisg PlayerCount 1; Kick %p% PlayerCount 0; KillAlso u can do thisCode: On Kill;Not Damage SniperRifle;Not Weapon U_V40;Weapon U_SR338,U_M82A3,U_M82A3_CQB,U_M82A3_MED Say %p% somethisg PlayerCount 1; Kick %p% PlayerCount 0; KillAllowed all sniper rifles, but SRR338, no pickup rifles. V 40 Allowed.The life becames much better if u have OR condition between WEAPON parts. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by ty_ger07*: Blah, blah, blah. I am done arguing. Clearly you now know the solution but want to argue about how it could be better for you even if it were worse for everyone else. Like I said, wouldn't it be nice to be able to use AND in some cases? If semicolon was not AND, there would be absolutely no way to ever use AND because semicolons are the only way to use AND. Do you want me to show you how to easily do player counts without adding a bunch more code, or do you want to argue about how you are the only person on the planet who does not ever need to use AND? Code: On Kill Set %allowed% 0 Damage SniperRifle;Set %allowed% 1 Weapon U_V40;Set %allowed% 1 Damage Handgun;Not Weapon U_M93R,U_Glock18;Set %allowed% 1 On Kill;If %allowed% == 0 PlayerYell Snipers, V40, and Handguns other than G18 and M93R! PlayerCount 2;Kick PlayerCount 1;KillEasier to read: Screenshot1.png Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by DoctorTrojan*: ty_ger07 you dont read what i write exactly. I said NO ONE NEVER WILL NEED "AND" between weapon parts. Can you come up a case when u need AND between weapon parts? I speak about the things that would be better for EVERYONE. Its so sad that plugin developer is inactive. I think he would understand me. P.S. Look at my code, then look at ur code and say wich is clearer and faster. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by ty_ger07*: ty_ger07 you dont read what i write exactly. I said NO ONE NEVER WILL NEED "AND" between weapon parts. Can you come up a case when u need AND between weapon parts? I speak about the things that would be better for EVERYONE. Its so sad that plugin developer is inactive. I think he would understand me.Setting you to ignore. Good luck! Screenshot.png P.S. Look at my code, then look at ur code and say wich is clearer and faster.Look at your code and look at my code and see which one works and which one doesn't. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 30, 2014 Share Posted July 30, 2014 Originally Posted by DoctorTrojan*: ty_ger07, my code is working with my fix for this plugin. =) I use 4 rulles, u use 16 that is all. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 31, 2014 Share Posted July 31, 2014 Originally Posted by ty_ger07*: Good for you. The internet is impressed with your ability to alter C# source code to suit your needs. The rest of the internet will do as the documentation tells them to and will have no problem in doing so. It is not a bug even if it annoys you. 1) I am sure that I can find a 'bug' in your modified logic. Actually, I already have one in mind. Your solution won't work for everyone. 2) I am sure the documentation would be a lot more confusing and people would have a much harder time understanding this plugin if there were special conditions where a symbol means one thing unless placed before, after, or between other things which change its symbolic value to something totally different. Here is a solution you may find more appealing from the 'number of rules' perspective: Code: On Kill Set %allowed% 0 Damage SniperRifle;Set %allowed% 1 Weapon U_V40;Set %allowed% 1 Damage Handgun;Not Weapon U_M93R,U_Glock18;Set %allowed% 1 On Kill;If %allowed% == 0 PlayerYell Snipers, V40, and Handguns other than G18 and M93R! PlayerCount 2;Kick PlayerCount 1;Kill Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 31, 2014 Share Posted July 31, 2014 Originally Posted by LjMjollnir*: You made ??a mistake here? Not set ;as ty_ger07 pointed out.. its not a mistake.. 8) i write my proconrulz script like that so i know what blocks of code are affecting each other n such.. for me it is easier to read.. both ways work exactly the same.. but yeah adding a ; on that trigger line would break it all Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 31, 2014 Share Posted July 31, 2014 Originally Posted by Hodor*: Please tell me where the error !!! Not displayed yell I want to make multi language Yell message when player kill someone with forbidden weapon and spawn Code: On Kill;Weapon U_SCAR-H;Say [KILLED] %p% using SCAR-H;Kill 1;PlayerSay ======SERVER RULES======;PlayerSay No Shotguns/Hand grenades;PlayerSay No BULLDOG/SCAR-H/ACE52/DMR;PlayerSay No Claymore/C4/M320/Mines;PlayerSay No RPG/SMAW/Javelin;If %pcountrykey% == ru;PlayerYell 30 [1/3] BHuMaHue BbI HapyIIIaeTe IIpaBuJIa cepBepa! HaIIuIIIuTe B 4at !rules;Not If %pcountrykey% == ru;PlayerYell 30 [1/3] Warning violation of the rules! Write in Chat !rules Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 31, 2014 Share Posted July 31, 2014 Originally Posted by ty_ger07*: Please tell me where the error !!! Not displayed yell I want to make multi language Yell message when player kill someone with forbidden weapon and spawn Code: On Kill;Weapon U_SCAR-H;Say [KILLED] %p% using SCAR-H;Kill 1;PlayerSay ======SERVER RULES======;PlayerSay No Shotguns/Hand grenades;PlayerSay No BULLDOG/SCAR-H/ACE52/DMR;PlayerSay No Claymore/C4/M320/Mines;PlayerSay No RPG/SMAW/Javelin;If %pcountrykey% == ru;PlayerYell 30 [1/3] BHuMaHue BbI HapyIIIaeTe IIpaBuJIa cepBepa! HaIIuIIIuTe B 4at !rules;Not If %pcountrykey% == ru;PlayerYell 30 [1/3] Warning violation of the rules! Write in Chat !rules What about If %pcountrykey% != ru;. I don't think you can do Not If. I think I see some other issues too, but I am not exactly sure what you are trying to accomplish. Code: On Kill;Weapon U_SCAR-H Say [KILLED] %p% using SCAR-H;Kill PlayerSay ======SERVER RULES====== PlayerSay No Shotguns/Hand grenades PlayerSay No BULLDOG/SCAR-H/ACE52/DMR PlayerSay No Claymore/C4/M320/Mines PlayerSay No RPG/SMAW/Javelin; If %pcountrykey% == ru;PlayerYell 30 [1/3] BHuMaHue BbI HapyIIIaeTe IIpaBuJIa cepBepa! HaIIuIIIuTe B 4at !rules If %pcountrykey% != ru;PlayerYell 30 [1/3] Warning violation of the rules! Write in Chat !rules Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 31, 2014 Share Posted July 31, 2014 Originally Posted by wdfstryfe*: Code: #### Trigger for Surrender Rules #### On Kill;Incr %activatesurrender% On Kill;If %activatesurrender% == 350;Set %surrender% 1;say Players can now giveup the round! #### Surrender Rules #### On Kill;If %surrender% == 1; On spawn;serverfirst; set %ini_team1_abandons% 0 set %ini_team2_abandons% 0 set %ini_abandons% 0 set %ini_number_vote% 12 On say;if %surrender% == 1;team 2;text !giveup,@giveup; if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred ! if %ini_abandons_%p%% == 0;Incr %ini_team2_abandons%;say RUS !surrender is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%];yell 15 RUS !giveup is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%] if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered ! if %ini_team2_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 1 ### USA surrender ### On say;team 1;text !giveup,@giveup; if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred ! if %ini_abandons_%p%% == 0;Incr %ini_team1_abandons%;say USA !surrender is LAUNCHED [%ini_team1_abandons% / %ini_number_vote%];yell 15 USA !giveup is LAUNCHED [%ini_team1_abandons% / %ini_number_vote%] if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered ! if %ini_team1_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 2Anyone see anything wrong with this? It doesn't wait until the kill number is reached. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 1, 2014 Share Posted August 1, 2014 Originally Posted by ty_ger07*: Code: #### Trigger for Surrender Rules #### On Kill;Incr %activatesurrender% On Kill;If %activatesurrender% == 350;Set %surrender% 1;say Players can now giveup the round! #### Surrender Rules #### On Kill;If %surrender% == 1; On spawn;serverfirst; set %ini_team1_abandons% 0 set %ini_team2_abandons% 0 set %ini_abandons% 0 set %ini_number_vote% 12 On say;if %surrender% == 1;team 2;text !giveup,@giveup; if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred ! if %ini_abandons_%p%% == 0;Incr %ini_team2_abandons%;say RUS !surrender is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%];yell 15 RUS !giveup is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%] if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered ! if %ini_team2_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 1 ### USA surrender ### On say;team 1;text !giveup,@giveup; if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred ! if %ini_abandons_%p%% == 0;Incr %ini_team1_abandons%;say USA !surrender is LAUNCHED [%ini_team1_abandons% / %ini_number_vote%];yell 15 USA !giveup is LAUNCHED [%ini_team1_abandons% / %ini_number_vote%] if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered ! if %ini_team1_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 2Anyone see anything wrong with this? It doesn't wait until the kill number is reached. Look at multiline rulz in the documentation and note that those lines should not have a semicolon after them. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 1, 2014 Share Posted August 1, 2014 Originally Posted by wdfstryfe*: Code: ## Count kills to 350 On Kill;Incr %activatesurrender% On Kill;If %activatesurrender% == 350 set %ini_team1_abandons% 0 set %ini_team2_abandons% 0 set %ini_abandons% 0 set %ini_number_vote% 12 set %surrender% 1 both Players can now giveup the round! ## On say;team 2;text !giveup,@giveup; if %surrender% == 0;playersay Not enough kills recorded to start a vote! On say;team 1;text !giveup,@giveup; if %surrender% == 0;playersay Not enough kills recorded to start a vote! ## Russian Surrender On say;team 2;text !giveup,@giveup; if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred ! if %ini_abandons_%p%% == 0;Incr %ini_team2_abandons%;say RUS !surrender is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%];yell 15 RUS !giveup is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%] if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered ! if %ini_team2_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 1 ### USA surrender On say;team 1;text !giveup,@giveup; if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred ! if %ini_abandons_%p%% == 0;Incr %ini_team1_abandons%;say USA !surrender is LAUNCHED [%ini_team1_abandons% / %ini_number_vote%];yell 15 USA !giveup is LAUNCHED [%ini_team1_abandons% / %ini_number_vote%] if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered ! if %ini_team1_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 2If I read that right.. THIS should work after 350 kills are recorded. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 1, 2014 Share Posted August 1, 2014 Originally Posted by ty_ger07*: ... If I read that right.. THIS should work after 350 kills are recorded. I do not understand all of your code and find it to be overly complex. Why use %ini_% variables? A lot of %server_% variables seem to be missing. And I see some other things which I interpret to be mistakes. Try this instead: Code: ## Count kills to 350 On Kill;Incr %server_activatesurrender% On Kill;If %server_activatesurrender% == 350 Set %server_number_vote% 12 Set %server_surrender% 1 Yell Either team can now vote to !giveup the round. ## Detect Too Early to Giveup On Say;Text !giveup,@giveup;If %server_surrender% == 0 PlayerSay %p% Not enough kills recorded to start a vote! ### USA surrender On Say;Text !giveup,@giveup;Team 1;If %server_surrender% == 1 If %server_abandons_[%p%]% == 1;PlayerSay %p% Your vote is already registered! If %server_team1_abandons% == 0; Yell USA !giveup is LAUNCHED If %server_abandons_[%p%]% == 0;Set %server_abandons_[%p%]% 1;Incr %server_team1_abandons%;Say USA !giveup is at %server_team1_abandons% of %server_number_vote% votes. If %server_team1_abandons% >= %server_number_vote%;Exec mapList.endRound 2 ### RUS surrender On Say;Text !giveup,@giveup;Team 2;If %server_surrender% == 1 If %server_abandons_[%p%]% == 1;PlayerSay %p% Your vote is already registered! If %server_team2_abandons% == 0; Yell RUS !giveup is LAUNCHED If %server_abandons_[%p%]% == 0;Set %server_abandons_[%p%]% 1;Incr %server_team2_abandons%;Say RUS !giveup is at %server_team2_abandons% of %server_number_vote% votes. If %server_team2_abandons% >= %server_number_vote%;Exec mapList.endRound 1 Quote * Restored post. It could be that the author is no longer active. Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.