Jump to content

ProconRulz V44j1 - weapon limits and other event-triggered admin actions


ColColonCleaner

Recommended Posts

Originally Posted by armypoilce*:

 

Here is what I used for when in game.

Code:

On Say;Admin;Text asay;AdminSay %p% -- %text%
Also I always led with / so that it would hide from squad.

so if I typed in game only admins would get

Cheers mate it kinda like this one

page1/index.html* sept this thread went to all :sad: and this one works what u did :smile:

 

Sent from my HUAWEI G510-0100 using Tapatalk

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Alexis-Alexander*:

 

Hi ty_ger07

Be so kind to help me. I would like to monitor the current number of points for the players on the server, and keep increasing their value.

here, something like:

 

On Kill;Set %ini_score[%p%]% %ini_score?[%p%]% + %score%

On Say;Text !score;PlayerSay Score: % p% has %ini_score[%p%]% points!

If the score is the lifetime kill number on the server then use:

On Kill;Incr %ini_score[%p%]%

On Say;Text !score;PlayerSay Score: % p% has %ini_score[%p%]% points!

 

if you are looking for %score% to be used, then you probably don't want to keep adding running total score on every kill, just on the end of round. Or you could subtract as you go with a round specific variable:

On Kill;Set %ini_score[%p%]% + %score% - %server_previous_score[%p%]%;Set %server_previous_score[%p%]% %score%

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by m4gnet*:

 

If the score is the lifetime kill number on the server then use:

On Kill;Incr %ini_score[%p%]%

On Say;Text !score;PlayerSay Score: % p% has %ini_score[%p%]% points!

 

if you are looking for %score% to be used, then you probably don't want to keep adding running total score on every kill, just on the end of round. Or you could subtract as you go with a round specific variable:

On Kill;Set %ini_score[%p%]% + %score% - %server_previous_score[%p%]%;Set %server_previous_score[%p%]% %score%

There is a player, he has a score current per round, and historical. I would like both.

ie: server %previous_score% + current %score%, on the increase.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

is there a way to pimp on spawn messages using the %pt% variable ?

like, where %pt% = us army ,and than saying ,Lets kill some commies's,

or when %pt% is russian army and saying ,comrads ,lets kill some yankee's

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

is there a way to pimp on spawn messages using the %pt% variable ?

like, where %pt% = us army ,and than saying ,Lets kill some commies's,

or when %pt% is russian army and saying ,comrads ,lets kill some yankee's

yes
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

ok, sorry late response ger07, my windows say'd goodbye to me, ok .

HOW ? do i do that ?

This is very simple. I feel that you should read the plugin documentation (link in first post) if you ask such a question. At some point you need to learn so that you can ask less questions and start helping others with their questions.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LuxatenaVN*:

 

Is There a version Shotgun Limit for BF3 ?

Just like the same on Sniper Limit by Tarreltje.

My Wish there is shotgun limit is 4 :biggrin:

Code:

##### SNIPER LIMIT V2.7 ONLY BOLT ACTION #####

# SET THE MAX # OF SNIPERS HERE:
On Kill;ServerFirst;Set %server_sniperlimit% 3
On Say;ServerFirst;Set %server_sniperlimit% 3

# SNIPER LOG MESSAGES
On Spawn;If %server_sl_sniper[%p%]% == 1;Log Sniper %pt% %p% re-spawned. %server_sl_total[%ptk%]% snipers on team %ptk%
On Kill;If %server_sl_sniper[%v%]% == 1;Log Sniper %vtk% %v% killed. %server_sl_total[%vtk%]% snipers on team %vtk%

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay -;PlayerSay - %p% killed by SNIPER LIMIT max %server_sniperlimit%;PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill
If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SNIPER SLOT !!! %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerSay -;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES 
On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SNIPER slot!!!;TeamSay -;Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SNIPER slot !!!;TeamSay -;Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

# !snipers / !sniperx INFO MESSAGES
On Say;Text !snipers;
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%. Reserve slot with sniper kill, lose it with non-sniper/handgun kill.
If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS on team %pt%
If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%
If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%
If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%
If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

On Say;Text !sniperx;
PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
Sorry for my bad english :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

This is very simple. I feel that you should read the plugin documentation (link in first post) if you ask such a question. At some point you need to learn so that you can ask less questions and start helping others with their questions.

yes your right.

but i readed it.

i know the link between triger, event and action.

and did some amazing stuff with it already thanks to the documentation.

when i inpliment the docu correct, it should be,

Code:

on spawn;team us;playeryell 3 Lets kill some commies
on spawn;team russian;playeryell 3 Lets kill some yankee doodle
but for some reason, it doesnt.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I would try

If %ptk% Contains us

and

If %ptk% Contains russia

instead of

Team us

and

Team russia.

 

Team is the same thing as %pt% which I believe is only stuff like "attack" or "defense". I think you need %ptk% (player team key) to get the string value of the player team name.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Alexis-Alexander*:

 

There is a player, he has a score current per round, and historical. I would like both.

ie: server %previous_score% + current %score%, on the increase.

%score% will go up without rules changing it. The ini is the lifetime score on server.

If someone is on kill 1 lets say the have a %score% of 100. And at kill 5 a %score% of 500. On kill 5 you don't want to add all the points from kills 1-4,since you did that already on those kills. So adding a previous score variable is how to subtract out the points that would be duplicate.

 

So score in file + score on board - score on board at last kill.

 

Another thing is that if someone gets a lot of points between their last kill and end of round then they won't get credit for that.

 

There may be an onRound you can use, but I've not tried those on individual players.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

I would try

If %ptk% Contains us

and

If %ptk% Contains russia

instead of

Team us

and

Team russia.

 

Team is the same thing as %pt% which I believe is only stuff like "attack" or "defense". I think you need %ptk% (player team key) to get the string value of the player team name.

hmm, i didntsee the if statements in docu, but yes, your right.

lets try it...

 

Code:

on spawn;if %pt% contains russian;playeryell 3 Comrads Lets kill some yankee doodle;playersay Comrads Lets kill some yankee doodle
on spawn;not if %pt% contains russian;playeryell 3 Lets kill some commies;playersay Lets kill some commies
This works xD ,without the k in %pt%

* edit * ups,, THIS does work.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I don't think it is a very good idea. You should only store a short list of information with Proconrulz. For instance, if you wanted to store a list of top 10 scores, fine. But storing scores for everyone, not fine. You should use a plugin like XpKiller's which stores to a database for doing that. Databases are used instead of text files for a reason. If you try to use Proconrulz to do this, it will work fine for a while, but will get too large and then start crashing the plugin or causing severe lag. At that point you will lose all your progress and will have to use XpKiller's plugin and start over. You might as well start with the correct plugin from the start.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Alexis-Alexander*:

 

I was storing player rounds and player kicks to ini file. I'm sure it hit 10,000 lines. I"d sometimes purge the very low round players.

 

It didn't crash the plugin, but I don't know if it caused lag.

 

Game servers.com has lifetime server scores. Is that accessible in any way?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

To make the ingame admins it a but more easy, i made below rule set.

nothing wrong with it, but for the exeption that when a ingame admin (added in adkats) type's !info

he gets the access denied rule

when i type it ,it works as it should be.

the only difrence is ,that i also connect to a proconlayer, so, is my rule set mistaken, or is procon having a hickup.

 

Code:

on say;admin;text !info;playersay /kill donkey /baserape (baserape kill) 
on say;admin;text !info;playersay /tban rules /kick rules <name string>
on say;admin;text !info;playersay Keep in mind, /kick rules = KICK /tban rules = TEMP BAN
on say;not admin;text !info;playersay ADMINS ONLY ACCESS DENIED YOU DONKEY;playeryell 3 ADMINS ONLY ACCESS DENIED YOU DONKEY
on say;admin;text /kill donkey;targetplayer;yell 3 %t% is a donkey;targetaction kill 2000
on say;admin;text /baserape;targetplayer;yell 3 %t% is a donkey NO BASERAPE !;targetaction kill 2000
on say;admin;text /kick rules;targetplayer;yell 3 %t% is kicked for not playing by the rules;targetaction kick %t% play by the rules
on say;admin;text /tban rules;targetplayer;yell 3 %t% is a donkey, tempory ban for not reading, and following the rules;targetaction tempban 240 play by the rules
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mamba334*:

 

I hope I didn't miss this, but I've read so many threads and can't find it.

 

Is there a code to have it to where you can only get 3 kills max with U_SMAW or U_RPG-7 on Metro?

 

Is it ... On Kill;Map MP_Subway;Weapon U_SMAW;Count 3;Kick %p% was kicked for kill limit using SMAW!

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by m4gnet*:

 

I don't think it is a very good idea. You should only store a short list of information with Proconrulz. For instance, if you wanted to store a list of top 10 scores, fine. But storing scores for everyone, not fine. You should use a plugin like XpKiller's which stores to a database for doing that. Databases are used instead of text files for a reason. If you try to use Proconrulz to do this, it will work fine for a while, but will get too large and then start crashing the plugin or causing severe lag. At that point you will lose all your progress and will have to use XpKiller's plugin and start over. You might as well start with the correct plugin from the start.

No, no! We are not talking about the plugin. The top 10_! good idea. If possible, detail )
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hi ty_ger07

Set %c% 0

On Kill;Not Weapon blablabla;Count 5;Kick

On Kill;Not Weapon blablabla;If %c% > 5;Kick

How to reset counter?

Use something other than %c%. %c% is a special variable in proconrulz.

 

On Kill;Not Weapon blablabla;Incr %counter%;If %counter% >= 5;Set %counter% 0;Kick

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by m4gnet*:

 

Use something other than %c%. %c% is a special variable in proconrulz.

 

On Kill;Not Weapon blablabla;Incr %counter%;If %counter% >= 5;Set %counter% 0;Kick

Ah, OK! Thank you)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gunslinger1973*:

 

Hi there. I run a Gunmaster Server. There are 5 Gunmaster presets

 

(vars.gunMasterWeaponsPreset "0" to vars.gunMasterWeaponsPreset "4")

 

I need a script that cycles through this presets from 0 to 4 and back to 0 again. Or, if possible some randomization between 0 to 4. I know how to set it on round start but I don't know how to create the counter that will stay over the end of the round. Any1 can help or, since I'm not a big scripter, create a script for this?

 

Thanks a lot for giving it some thought :smile:

 

BTW. you will find the presets here --> http://battlelog.battlefield.com/bf4...4793265165954/

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by moacco07*:

 

Hi there. I run a Gunmaster Server. There are 5 Gunmaster presets

 

(vars.gunMasterWeaponsPreset "0" to vars.gunMasterWeaponsPreset "4")

 

I need a script that cycles through this presets from 0 to 4 and back to 0 again. Or, if possible some randomization between 0 to 4. I know how to set it on round start but I don't know how to create the counter that will stay over the end of the round. Any1 can help or, since I'm not a big scripter, create a script for this?

 

Thanks a lot for giving it some thought :smile:

 

BTW. you will find the presets here --> http://battlelog.battlefield.com/bf4...4793265165954/

Hi Gunslinger1973,

 

This link is your answer.

 

myrcon.net/.../insane-limits-bf4-gunmaster-random-presets

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Alexis-Alexander*:

 

Hi there. I run a Gunmaster Server. There are 5 Gunmaster presets

 

(vars.gunMasterWeaponsPreset "0" to vars.gunMasterWeaponsPreset "4")

 

I need a script that cycles through this presets from 0 to 4 and back to 0 again. Or, if possible some randomization between 0 to 4. I know how to set it on round start but I don't know how to create the counter that will stay over the end of the round. Any1 can help or, since I'm not a big scripter, create a script for this?

 

Thanks a lot for giving it some thought :smile:

 

BTW. you will find the presets here --> http://battlelog.battlefield.com/bf4...4793265165954/

You can save the variable to a file with ini prefix on variable to save across rounds.

On Round;vars.gunMasterWeaponsPreset %ini_gunmode%;Incr %ini_gunmode%;If %ini_gunmode% > 4;Set %ini_gunmode% 0

 

I haven't tried it, so if the variable needs to be a string vs a number then can do 5 separate lines to set to "0", " 1", etc

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gunslinger1973*:

 

You can save the variable to a file with ini prefix on variable to save across rounds.

On Round;vars.gunMasterWeaponsPreset %ini_gunmode%;Incr %ini_gunmode%;If %ini_gunmode% > 4;Set %ini_gunmode% 0

 

I haven't tried it, so if the variable needs to be a string vs a number then can do 5 separate lines to set to "0", " 1", etc

I am trying right now but you need to have and Exec in there as well :smile:

 

On Round;Exec vars.gunMasterWeaponsPreset %ini_gunmode%;Incr %ini_gunmode%;If %ini_gunmode% > 3;Set %ini_gunmode% 0

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Alexis-Alexander*:

 

I am trying right now but you need to have and Exec in there as well :smile:

 

On Round;Exec vars.gunMasterWeaponsPreset %ini_gunmode%;Incr %ini_gunmode%;If %ini_gunmode% > 3;Set %ini_gunmode% 0

Ah right, trying this from phone, exec needed.

The reason to go > 4 is that >3 will skip mode 4

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gunslinger1973*:

 

Ah right, trying this from phone, exec needed.

The reason to go > 4 is that >3 will skip mode 4

Unfortunately it does not work. I put in >3 to skip mode 4 (have you played that one *smile*).

It is possible that 4netplayers does not allow to create an ini - i don't see one in the files.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by moacco07*:

 

unfortunately not since this is a script for insane limits and not procon rulz... I don't want to deal with both scripting tools :smile:

Ok then, just wanna help. Good luck!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Alexis-Alexander*:

 

Unfortunately it does not work. I put in >3 to skip mode 4 (have you played that one *smile*).

It is possible that 4netplayers does not allow to create an ini - i don't see one in the files.

See if it is storing with

On Say;Text GetMode;Say The mode is %ini_gunmode%

 

That returns 0 I think if it wasn't ever set so if 0 then try this and see if not 0

On Say;Text SetMode;Incr %ini_gunmode%

* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.