ImportBot Posted August 27, 2014 Share Posted August 27, 2014 Originally Posted by Brodatv*: Some of vehicles are listed with cartain name like LAV25 or Gameplay/Vehicles/LAV25/LAV25, but rulz below should do it. Try it, maybe it will be working: Damage VehicleTransport Damage VehicleLight Damage VehicleHeavy Damage VehicleAir Damage VehicleWater Remember to have BF4.def updated Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 28, 2014 Share Posted August 28, 2014 Originally Posted by m4gnet*: Hi! Somebody tell me? Why the third counter Dogtags does not display the result? shown: 0 0 (PlayerSay ~m4gnet~) o==),::::::> DOGTAGS HUNTER'S <::::::>(PlayerSay ~m4gnet~) [1st] AutoCraft 2654-Dogtags [2nd] Vampir47 2371-Dogtags [3rd] 0 0-Dogtags Like all written logical. But_!!! ________________________________________________? _________________________________________? On Kill;Incr %ini_kills_kills[%p%]% On Kill;Weapon knv-1;Incr %ini_knives_knives[%p%]% On Kill; If %ini_kills_kills[%p%]% > %ini_server_killsfirst%;Set %ini_server_killsfirst% %ini_kills_kills[%p%]%;Set %ini_server_playerfirst% %p% If %ini_kills_kills[%p%]% %ini_server_killssecond%;Set %ini_server_killssecond% %ini_kills_kills[%p%]%;Set %ini_server_playersecond% %p% If %ini_kills_kills[%p%]% %ini_server_killsthird%;Set %ini_server_killsthird% %ini_kills_kills[%p%]%;Set %ini_server_playerthird% %p% If %ini_kills_kills[%p%]% %ini_server_killsfourth%;Set %ini_server_killsfourth% %ini_kills_kills[%p%]%;Set %ini_server_playerfourth% %p% If %ini_kills_kills[%p%]% > %ini_server_mostkills%;Set %ini_server_mostkills% %ini_kills_kills[%p%]%;Set %ini_server_mostkillsplayer% %p% if %ini_server_playersecond% == %ini_server_playerfirst%;Set %ini_server_playersecond% %ini_server_playerthird%;Set %ini_server_killssecond% %ini_server_killsthird% if %ini_server_playerthird% == %ini_server_playersecond%;Set %ini_server_playerthird% %ini_server_playerfourth%;Set %ini_server_killsthird% %ini_server_killsfourth% On Kill; If %ini_knives_knives[%p%]% > %ini_server_knivesfirst%;Set %ini_server_knivesfirst% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfirst% %p% If %ini_knives_knives[%p%]% %ini_server_knivessecond%;Set %ini_server_knivessecond% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayersecond% %p% If %ini_knives_knives[%p%]% %ini_server_knivessthird%;Set %ini_server_knivesthird% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerthird% %p% If %ini_knives_knives[%p%]% %ini_server_knivesfourth%;Set %ini_server_knivesfourth% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfourth% %p% If %ini_knives_knives[%p%]% > %ini_server_mostknives%;Set %ini_server_mostknives% %ini_knives_knives[%p%]%;Set %ini_server_mostknivesplayer% %p% if %ini_server_knivesplayersecond% == %ini_server_knivesplayerfirst%;Set %ini_server_knivesplayersecond% %ini_server_knivesplayerthird%;Set %ini_server_knivessecond% %ini_server_knivesthird% if %ini_server_knivesplayerthird% == %ini_server_knivesplayersecond%;Set %ini_server_knivesplayerthird% %ini_server_knivesplayerfourth%;Set %ini_server_knivesthird% %ini_server_knivesfourth% #TRIGGER FOR SHOWING SERVERS BEST 3 PLAYERS On Say;Text !best PlayerSay ~~~~~~~~~~ History of 3 Players Max Kills ~~~~~~~~~~ PlayerSay [1st] %ini_server_playerfirst% %ini_server_killsfirst%-Kills [2nd] %ini_server_playersecond% %ini_server_killssecond%-Kills [3rd] %ini_server_playerthird% %ini_server_killsthird%-Kills On Say;Text !dogtags PlayerSay o==),::::::> DOGTAGS HUNTER'S <::::::> PlayerSay [1st] %ini_server_knivesplayerfirst% %ini_server_knivesfirst%-Dogtags [2nd] %ini_server_knivesplayersecond% %ini_server_knivessecond%-Dogtags [3rd] %ini_server_knivesplayerthird% %ini_server_knivesthird%-Dogtags Max Kills - works fine. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 28, 2014 Share Posted August 28, 2014 Originally Posted by 397Seth*: Hi, I switched to another procon server and reconfigured the plug-ins. I know that proconrulz comes with preconfigured messages. I have them disabled but I still get the message: [ADMIN] type !rules for Server Rules Where can I disable that. It spammes every 30 seconds and it's driving me nuts Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 29, 2014 Share Posted August 29, 2014 Originally Posted by ty_ger07*: Did you disable and re-enable ProconRulz or restart the Procon layer server after you deleted/emptied the ProconRulz text files? Changes to the ProconRulz text files don't do anything until ProconRulz is disabled and re-enabled or Procon layer is restarted. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 30, 2014 Share Posted August 30, 2014 Originally Posted by m4gnet*: Hi LjMjollnir! Maybe you know the solution? On Kill;Incr %ini_kills_kills[%p%]% On Kill;Weapon knv-1;Incr %ini_knives_knives[%p%]% On Kill; If %ini_kills_kills[%p%]% > %ini_server_killsfirst%;Set %ini_server_killsfirst% %ini_kills_kills[%p%]%;Set %ini_server_playerfirst% %p% If %ini_kills_kills[%p%]% %ini_server_killssecond%;Set %ini_server_killssecond% %ini_kills_kills[%p%]%;Set %ini_server_playersecond% %p% If %ini_kills_kills[%p%]% %ini_server_killsthird%;Set %ini_server_killsthird% %ini_kills_kills[%p%]%;Set %ini_server_playerthird% %p% If %ini_kills_kills[%p%]% %ini_server_killsfourth%;Set %ini_server_killsfourth% %ini_kills_kills[%p%]%;Set %ini_server_playerfourth% %p% If %ini_kills_kills[%p%]% > %ini_server_mostkills%;Set %ini_server_mostkills% %ini_kills_kills[%p%]%;Set %ini_server_mostkillsplayer% %p% if %ini_server_playersecond% == %ini_server_playerfirst%;Set %ini_server_playersecond% %ini_server_playerthird%;Set %ini_server_killssecond% %ini_server_killsthird% if %ini_server_playerthird% == %ini_server_playersecond%;Set %ini_server_playerthird% %ini_server_playerfourth%;Set %ini_server_killsthird% %ini_server_killsfourth% On Kill; If %ini_knives_knives[%p%]% > %ini_server_knivesfirst%;Set %ini_server_knivesfirst% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfirst% %p% If %ini_knives_knives[%p%]% %ini_server_knivessecond%;Set %ini_server_knivessecond% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayersecond% %p% If %ini_knives_knives[%p%]% %ini_server_knivessthird%;Set %ini_server_knivesthird% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerthird% %p% If %ini_knives_knives[%p%]% %ini_server_knivesfourth%;Set %ini_server_knivesfourth% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfourth% %p% If %ini_knives_knives[%p%]% > %ini_server_mostknives%;Set %ini_server_mostknives% %ini_knives_knives[%p%]%;Set %ini_server_mostknivesplayer% %p% if %ini_server_knivesplayersecond% == %ini_server_knivesplayerfirst%;Set %ini_server_knivesplayersecond% %ini_server_knivesplayerthird%;Set %ini_server_knivessecond% %ini_server_knivesthird% if %ini_server_knivesplayerthird% == %ini_server_knivesplayersecond%;Set %ini_server_knivesplayerthird% %ini_server_knivesplayerfourth%;Set %ini_server_knivesthird% %ini_server_knivesfourth% #TRIGGER FOR SHOWING SERVERS BEST 3 PLAYERS On Say;Text !best PlayerSay ~~~~~~~~~~ History of 3 Best Players ~~~~~~~~~~ PlayerSay [1st] %ini_server_playerfirst% %ini_server_killsfirst%-Kills [2nd] %ini_server_playersecond% %ini_server_killssecond%-Kills [3rd] %ini_server_playerthird% %ini_server_killsthird%-Kills On Say;Text !knife;PlayerSay %p% has %ini_knives_knives[%p%]% Knife Kills On Say;Text !dogtags PlayerSay o==),::::::> DOGTAGS HUNTER'S <::::::> PlayerSay [1st] %ini_server_knivesplayerfirst% %ini_server_knivesfirst%-Dogtags [2nd] %ini_server_knivesplayersecond% %ini_server_knivessecond%-Dogtags [3rd] %ini_server_knivesplayerthird% %ini_server_knivesthird%-Dogtags Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 30, 2014 Share Posted August 30, 2014 Originally Posted by LjMjollnir*: @m4gnet Ill have a look at it tomorrow if i get a chance.. on another note when posting code can you put it in [ code][ /code] blocks next time.. makes it alot easier to read (remove the spaces in the code tags...) Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 31, 2014 Share Posted August 31, 2014 Originally Posted by EliteSniperForce*: Hi, Why "On Kill;Weapon Glock18;Log %p% kicked;Kick %p% No G18 Kick G17 players too.... And how change that? : ( Thx We have same problem in our server.Pls help. Thank you. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 31, 2014 Share Posted August 31, 2014 Originally Posted by MorpheusX(AUT)*: The gameserver reports kills with the G17 as Glock18 (as also mentioned in the two posts after the one you quoted from 355 pages back: myrcon.net/...proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions#entry10694) Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 31, 2014 Share Posted August 31, 2014 Originally Posted by AgentHawk*: Anyone have a working script for No explosives? (includes Nades,rockets,ucavs,airburst,etc) Thanks alot Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 31, 2014 Share Posted August 31, 2014 Originally Posted by trans-am*: @AgentHawk: you can try this 1st & 2nd kill on Explosives - Slay player - warning (playerSay & playerYell) given to player 3rd kill on Explosives - Kick 4th kill on Explosives - 30mins ban Excluded: Flashbang kill. Code: # INFORMATION ON FIRST SPAWN On Spawn;PlayerFirst;PlayerSay EXPLOSIVES ARE NOT ALLOWED;PlayerYell EXPLOSIVES ARE NOT ALLOWED # KILL AND KICK RULES On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 3;Log %p% was BANNED for using a %w%;Say BANNED: %p% for using a %w%;TempBan 1800 %p%, No EXPLOSIVES! (30m ban)! You used a %w%. On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log %p% was KICKED for using a %w%;Say KICKED: %p% for using a %w%;Kick %p%, No EXPLOSIVES! You used a %w%. On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log %p% has %c%/2 offenses (%w%);Set %warnyell% 2;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Log %p% has %c% offenses (%w%);Set %warnyell% 1;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log :Explosive: warning yell 1/2 given to %p%;PlayerYell %p%, you've 1/2 offenses!No EXPLOSIVES!;PlayerSay %p%, you've 1/2 offenses!No EXPLOSIVES!;Set %warnyell% 0 On Spawn;If %warnyell% == 2;Log :Explosive: warning yell 2/2 given to %p%;PlayerYell %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;PlayerSay %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;Set %warnyell% 0 Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 1, 2014 Share Posted September 1, 2014 Originally Posted by AgentHawk*: Thank you Sir. Works great! Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 2, 2014 Share Posted September 2, 2014 Originally Posted by LjMjollnir*: @m4gnet My god that logic broke my brain... and that is a problem ... firstly the way you are updating the information you actually lose important data every time someone takes a spot on the leaderboard ... it does get recovered if the player that lost its data gets a kill.. but its horrible bad code... there is no real easy way to write what you are after without massive IF chains in proconrulz and right at the moment i am in no mental state to attempt it... nor do i even have a server to test with right now 8(.. but you need to check for things such as playerkills > firstkills.. if player == first player if so update that players stats playerkills > firstkills.. if player != first player; if player == second player.. SWAP first player and second player stats playerkills > firstkills.. if player != first player; if player == thirdplayer Swap Second with third.. then swap second with first (rare but it is possible for the 3rd placer to skip to second place on tied kills for example) then you need to do similar checks for the second player (while also checking to make sure you didnt already change it the first series) playerkills > secondkills .. if player == second player.. update stats playerkills > secondkills .. if player != second player if player= third player.. SWAP stats then lastly you need to check the third player (if nothing changed in the first 2 sets) if playerkills > thirdplayer .. if player == thirdplayer .. update stats if playerkills > thirdplayer .. if player != thirdplayer .. set new player as third spot I didnt get around to checking why you dont have information on the 3rd dogtager.. but its possibly related to the above problem.. i seen the logic issues in both sets of code.. and with it showing 0's it just means there is no data in those variables. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 4, 2014 Share Posted September 4, 2014 Originally Posted by Beastman*: who knows how to realize this ? when playerA killed playerB , how to realize display playeryell playerA's Kills/death/KPM/RANK/scores for playerB ? Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 4, 2014 Share Posted September 4, 2014 Originally Posted by JR_Skryllex*: Hello everyone, I'm not very good with the log of procon. I would like to set up my server (24 slots in operation locker) are knife, pistol and defib (no shorty) no assault weapon, no sniper weapon, no support weapon and no mechanical weapon. but only handgun for these classes. 2 warnings, and at the third ---> player kick!! Someone can paste the full log? thank you Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 5, 2014 Share Posted September 5, 2014 Originally Posted by BUG*: I've done some looking around for something to kill a player if they use a weapon with lock-on function, and on 2nd time temporary ban him. So far with code below i atleast know it will kill the player, but havnt had chance to try if it will actually ban on 2nd kill, you think it will work? Code: # NO FIM-92 STINGER On Kill;Weapon U_FIM92;PlayerCount 1;Log %p% Temporary banned 24h for using FGM-92 STINGER;TempBan 86400 %p% FGM-184 JAVELIN On Kill;Weapon U_FIM92;PlayerSay %p% FGM-92 STINGER not allowed, next time ban will be issued.;Kill 100Also some weapons dont have their own lock-on function like the SRAW, but can lock-on with help of gadgets, is it possible to track if someone is killed with help of SOFLAM or PLD, and have the rules react like in code above? Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 6, 2014 Share Posted September 6, 2014 Originally Posted by LjMjollnir*: Also some weapons dont have their own lock-on function like the SRAW, but can lock-on with help of gadgets, is it possible to track if someone is killed with help of SOFLAM or PLD, and have the rules react like in code above?Nope. well could be a way via checking scores n such.. but very unreliable... and not worth the effort. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 8, 2014 Share Posted September 8, 2014 Originally Posted by BUG*: Ok, thx LjMjollnir. Suspected it wasnt possible. Anotheer question, trying to make a welcome message then a player joins the server. Tried with using the "vars.serverMessage" in startup.txt but wont display for me. Better luck with ProconRulz, but not been able to work with "On Join" but working then i use "On Spawn" but sometimes it looks like its been showing several times, not 100% on that. Also it don't seem to activate chat window so a player wont see it unless he activates chat self, also seem to keep chat visible all time. Cant be sure all above is related to that rule, but any suggestion welcome. Code: On Spawn;PlayerOnce;PlayerSay Welcome to the server %p%. Type !rules to read them. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 8, 2014 Share Posted September 8, 2014 Originally Posted by LjMjollnir*: @Bug.. vars.serverMessage was working on my server i had also set vars.serverDescription aswell.. That rule looks fine to me... you could try PlayerYell instead of the Say to display it as a yell for the first time they log in The reason it doesnt work with On Join is because the player doesnt actually exist on the server at that point in time rather silly.. but yeah it triggers that rule as a play hits the connect button to join your server and as such they are often in loading screens and not actually in the server as such. you have no control over the players chat window.. so if you really have to get a message across Yell is the only option.. tho dont use it too often it pisses people off sometimes and you can only have 1 Yell per player up at a time (any following Yells will immediately overwrite the Yell and wont be seen) on a side note.. Yell doesnt work on dead people.. so dont use it then... Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 9, 2014 Share Posted September 9, 2014 Originally Posted by Madatme2*: OK this is probably a noob question, but searching brings up so many results I thought it would be easier to ask. I use the following code to yell a welcome message to the player as they spawn. Code: On Spawn;PlayerOnce;PlayerYell 5 Welcome to our server %p%! Commands available are !rules & !snipersThis works perfectly. No problems.However I wanted to use colour or bold text in the message to make bits stand out like the commands. I tried this to turn the commands red Code: On Spawn;PlayerOnce;PlayerYell 5 Welcome to our server %p%! Commands available are ^8!rules ^0& ^8!snipersHowever all the player sees is those characters rather than colours, so "Welcome to our server Player! Commands available are ^8!rules ^0& ^8!snipers" Wanted to do something similar with the !rules messages as well in the chat. Is this possible ? Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 10, 2014 Share Posted September 10, 2014 Originally Posted by LjMjollnir*: BF4 doesnt support Colour/Formatting codes at all thats for Procon only. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 10, 2014 Share Posted September 10, 2014 Originally Posted by usermac*: Rules for Battlefield 4 Please can some one give me the rules for metro ware you all Rockets i.e RPG etc and Airburts are not aloud. Ideally a warning kill and then if they do it again a kick. Many thanks Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 10, 2014 Share Posted September 10, 2014 Originally Posted by m4gnet*: my code started with the line Code: On Join;Not Rate 2 30;admin;Say Admin - %p% is joining the server.;set %ini_joining_[%p%]% 1 On Join;Not Rate 2 30;Not Admin;Say a new player is joining - %p%;set %ini_joining_[%p%]% 1make sure you put it all in there. ahhh i see you copied from the second example and i forgot to add those lines... Hi LjMjollnir!!!My version BFBC2; On Join;Not Admin;Incr %ini_joining?[%p%]% On Join;ServerFirst;Not Admin;If %ini_joining?[%p%]% == 1;Say a new player is joining - %p% Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 11, 2014 Share Posted September 11, 2014 Originally Posted by LjMjollnir*: Hi LjMjollnir!!! My version BFBC2; On Join;Not Admin;Incr %ini_joining?[%p%]% On Join;ServerFirst;Not Admin;If %ini_joining?[%p%]% == 1;Say a new player is joining - %p% No no... that can fail specifically the line Code: On Join;Not Admin;Incr %ini_joining_[%p%]%What that does is just increase the variable each time... so when it gets to the second line it might not be == 1 for examplejoining == 0 , Player attempts to join for the first time joining == 1, Connection fails, Player attempts to rejoin, joining == 2 etc etc.. make sure you Set it to 1 then clear after they join.. otherwise it will only ever show the once (sometimes never) Also that set of code was for counting the number of times someone has joined... you have removed all the useful stuff... if all you want to do is announce a player is joining you could just use Code: On Join;Not Admin;Say a new player is joining %p% On Join;Admin;Say Admin %p% is joining Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 11, 2014 Share Posted September 11, 2014 Originally Posted by trans-am*: @ usermac: 1st & 2nd kill on Explosives - Slay player - warning (playerSay & playerYell) given to player 3rd kill on Explosives - Kick 4th kill on Explosives - 30mins ban Expect for this: Flashbang kill. If you wanna include Flashbang, remove the code in red. Code: # INFORMATION ON FIRST SPAWN On Spawn;PlayerFirst;PlayerSay EXPLOSIVES ARE NOT ALLOWED;PlayerYell EXPLOSIVES ARE NOT ALLOWED # KILL AND KICK RULES On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 3;Log %p% was BANNED for using a %w%;Say BANNED: %p% for using a %w%;TempBan 1800 %p%, No EXPLOSIVES! (30m ban)! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log %p% was KICKED for using a %w%;Say KICKED: %p% for using a %w%;Kick %p%, No EXPLOSIVES! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log %p% has %c%/2 offenses (%w%);Set %warnyell% 2;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Log %p% has %c% offenses (%w%);Set %warnyell% 1;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log :Explosive: warning yell 1/2 given to %p%;PlayerYell %p%, you've 1/2 offenses!No EXPLOSIVES!;PlayerSay %p%, you've 1/2 offenses!No EXPLOSIVES!;Set %warnyell% 0 On Spawn;If %warnyell% == 2;Log :Explosive: warning yell 2/2 given to %p%;PlayerYell %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;PlayerSay %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;Set %warnyell% 0 Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 11, 2014 Share Posted September 11, 2014 Originally Posted by m4gnet*: LjMjollnir So the fact of the matter is that a new player joins only once. Repeat old players? the server does not advertise it. It is logical. # Join/Leave Announcer On Join;Not Admin;Yell 3000 %p% joined... On Leave;Yell 3000 %p% left... On Join;Not Admin;Incr %ini_joining?[%p%]% On Join;ServerFirst;Not Admin;If %ini_joining?[%p%]% == 1;Yell 5000 A New Player is Joining - %p% On Join;Set %server_friends% ~m4gnet~ On Spawn;If %server_friends% contains %p%; On Spawn;PlayerOnce;If %p% == ~m4gnet~;Yell 5000 Owner %p% joined the Server! I have everything working perfectly (BFBC2). Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 11, 2014 Share Posted September 11, 2014 Originally Posted by trans-am*: @ JR_Skryllex 1st & 2nd kill - Slay player - warning (playerSay & playerYell) given to player 3rd kill - Kick 4th kill - 30mins ban Code: # INFORMATION ON FIRST SPAWN On Spawn;PlayerFirst;PlayerSay Knife,Pistol & Defib ONLY!!;PlayerYell Knife,Pistol & Defib ONLY!! # KILL AND KICK RULES On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;PlayerCount 3;Log %p% was BANNED for using a %w%;Say BANNED: %p% for using a %w%;TempBan 1800 %p%, Knife,Pistol & Defib ONLY! (30m ban)! You used a %w%. On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;PlayerCount 2;Log %p% was KICKED for using a %w%;Say KICKED: %p% for using a %w%;Kick %p%, Knife,Pistol & Defib ONLY! You used a %w%. On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;PlayerCount 1;Log %p% has %c%/2 offenses (%w%);Set %warnyell% 2;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;Log %p% has %c% offenses (%w%);Set %warnyell% 1;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log :Explosive: warning yell 1/2 given to %p%;PlayerYell %p%, you've 1/2 offenses!Knife,Pistol & Defib ONLY!;PlayerSay %p%, you've 1/2 offenses!Knife,Pistol & Defib ONLY!;Set %warnyell% 0 On Spawn;If %warnyell% == 2;Log :Explosive: warning yell 2/2 given to %p%;PlayerYell %p%, you've 2/2 offenses!Knife,Pistol & Defib ONLY! NEXT WILL BE A KICK;PlayerSay %p%, you've 2/2 offenses!Knife,Pistol & Defib ONLY! NEXT WILL BE A KICK;Set %warnyell% 0 ************************************************** Please take note: 1) This code have not been tested 2) Repair tool is include, remove the code in red if you want to exclude it 3) I remember that some pistol kill are not counted as pistol but doesn't remember which are those pistols ************************************************** Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 12, 2014 Share Posted September 12, 2014 Originally Posted by chipeater01*: Hi Trans-am This is on behalf of Usermac - I put that code in but was getting following error. "22:34:18 58] ProconRulz: System.NullReferenceException: Object reference not set to an instance of an object. at PRoConEvents.ProconRulz.check_condition(ParsedRule rule, ConditionClass c, Int32 player_team_id, String player_name, Inventory inv, Kill k, String msg, Dictionary`2& keywords)" Any idea why? Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 12, 2014 Share Posted September 12, 2014 Originally Posted by LjMjollnir*: @m4gnet I guess if you only want to Say hey a new player has joined once and only ever once then that is correct... Code: On Join;Set %server_friends% ~m4gnet~ On Spawn;If %server_friends% contains %p%; On Spawn;PlayerOnce;If %p% == ~m4gnet~;Yell 5000 Owner %p% joined the Server!^^^ could be much shorter...Code: On Spawn;PlayerOnce;If %p% == ~m4gnet~;Yell 5000 Owner %p% joined the Server!Line 1 of the Code (unless you are using %server_friends% someplace else) is rather pointlessalso it assigns that Variable EVERY TIME a person joins.. since its a constant you could ignore the variable and just hard code your name in (unless you are adding to it later.. but then still it gets over written each time someone joins so im assuming it doesnt) Better use would be using On Init instead of On Join (variable gets setup once per round) Line 2 Code: On Spawn;If %server_friends% contains %p%;Has no action.. line ends with a ; (terminates the follow on effect of rules)... This line does absolutely nothing. and even if it didnt end with a ; the next line has a trigger so therefore the rule still does not follow on ...basically all this line does is do.. Someone Spawned.. is the person that Spawned the same person as the name contained in %server_friends%.. if not Do nothing.. if yes.. do nothing... Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 12, 2014 Share Posted September 12, 2014 Originally Posted by _lecro_*: Hi guys , We have been told by one player tonight that CS5(new sniper from Dragon tooth DLC) is not on sniper rifles list and he could use it without getting killed when not having sniper slot, how can this be rectified ? Cheers. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted September 12, 2014 Share Posted September 12, 2014 Originally Posted by trans-am*: @ chipeater01 i have no idea what that error is. 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.