Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

Originally Posted by _gp_*:

 

Did you mean this script?

showthread....ve-to-map-mode*

Thanks for the link, but it is not what I was looking for...

 

This limit I was referring to is not really a hack detector, just a script that sets a limit on any players wins...

 

thx,

 

_gp?

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by Level*:

 

Hello,

 

I need a Limit how Check the Rank, KD and Skill.

 

 

Players should be banned, and kick/ban message, and a whitelist would not be bad

 

I already have that:

 

SETUP LIMIT

limit_name: Simple Limit

limit_evaluation: OnJoin

limit_first_check: Code

 

CODE

Code:

//Simple Rank Limit
if( player.Rank > 70 ) {
    plugin.KickPlayerWithMessage(player.Name, "Sorry Max Rank are higher > 70");
    return true;
}

//Battlelog Kdr Kicker
if(  player.Kdr > 2.0 ) {
    plugin.KickPlayerWithMessage(player.Name, "Sorry your KD is higher > 2.0");
    return true;
}

//Battlelog Skill Kicker
if(  player.Skill > 400 ) {
    plugin.KickPlayerWithMessage(player.Name, "Sorry your Skill is higher > 400");
    return true;
}
    
return false;
limit_first_check: Disabled

 

THX Level

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

Originally Posted by maxdralle*:

 

@Level

 

hi,

your code looks good. but you dont need to ban a player. kick on join is more or less the same...

you can activate a whitelist in the insane limits settings:

PLUGIN > INSANE LIMITS > 1. SETTINGS > USE WHITE LIST > True

PLUGIN > INSANE LIMITS > 2. WHITELIST > PLAYER WHITE LIST > Playername1, PlayerNAME2, PLAYERname3

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

Originally Posted by maxdralle*:

 

Thanks but I have other limits that should not limit this whitelist

ok, then put this code as limit FIRST CHECK and your code as SECOUND CHECK. in my code you can put playernames as whitelist, e.g. playername SuperSniper0815...

 

EVALUATION: OnJoin

FIRST CHECK: Code

FIRST CHECK CODE: put my code here

 

SECOND CHECK: Code

SECOND CHECK CODE: your code (kd kick etc.)

 

CODE FOR FIRST CHECK

Code:

// VIP Liste
if (Regex.Match(player.Name, @"(_:SuperSniper0815|BerlinCamper187|Player0815|BlaBlaGamer2000)", RegexOptions.IgnoreCase).Success) {
	return false;
} else {
	return true;
}
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by moacco07*:

 

hi EntraVenuS,

 

execute a command on round end its not possible in proconrulz. but we can execute the commands when the next round is starting! i have changed the code. the vote result will be saved. the commands will be execute on the next round (on the first spawn). its not the best way, but its working...

 

new feature: with "in-game-admin-privileges" you can type !commanderon and !commanderoff in in-game-chat.

 

CODE FOR PROCONRULZ

Code:

###### 9.5 > VOTE COMMANDER FUNCTION     ###################
# INFO: The vote start automatically as soon as a team has less than xy tickets. 
# IMPORTANT: Change the # of the server slots for players (without commander, without spectators, e.g. 16,32,48,64) AND CHANGE the # of !YES votes AND CHANGE the # of tickets left:
On Spawn;PlayerFirst;
    Set %VoteCommanderServerNormalPlayerSlots% 32
    Set %VoteCommanderServerSpectatorSlots% 2
    Set %server_votesneeded% 5
    Set %VoteCommanderTicketLeft% 500

#SET VOTE RESULT ON NEW ROUND
On Spawn;ServerFirst;if %server_global_83[%SetCommanderVoteResult%]% <> 1; 
    if %ini_CommanderVoteResult_Commander% == true;Exec vars.maxPlayers %VoteCommanderServerNormalPlayerSlots%; Exec vars.commander true; Exec vars.maxSpectators %ini_CommanderVoteResult_Spectators%; Set %server_global_83[%SetCommanderVoteResult%]% 1; Log VOTE COMMANDER: Setup round completed. Set commander: TRUE - Set spectators slots: %ini_CommanderVoteResult_Spectators%
    if %ini_CommanderVoteResult_Commander% == false;Exec vars.maxPlayers %VoteCommanderServerNormalPlayerSlots%; Exec vars.commander false; Exec vars.maxSpectators %ini_CommanderVoteResult_Spectators%; Set %server_global_83[%SetCommanderVoteResult%]% 1; Log VOTE COMMANDER: Setup round completed. Set commander: FALSE - Set spectators slots: %ini_CommanderVoteResult_Spectators%

#GET COUNTER OF REMAINING TICKETS
On Spawn;If %server_global2[%VoteOn%]% != 1;
    Set %VoteCommanderLoserTeamScore% %server_team_score[1]%
    if %server_team_score[1]% > %server_team_score[2]%; Set %VoteCommanderLoserTeamScore% %server_team_score[2]%

#CHECK TICKET COUNTER + START VOTE
On Spawn;If %server_global2[%VoteOn%]% != 1;If %server_global2[%VoteOn%]% != 2;if %VoteCommanderTicketLeft% > %VoteCommanderLoserTeamScore%; if %VoteCommanderLoserTeamScore% > 1
    Set %server_global3[%VoteTime%]% %seconds%;Set %server_global2[%VoteOn%]% 1;Set %ini_CommanderVoteResult% 0;Set %ini_CommanderVoteResult_Commander% false; Set %ini_CommanderVoteResult_Spectators% %VoteCommanderServerSpectatorSlots%;Say ###########################;Say ###########################;Say ###########################;Say ####        VOTE COMMANDER         ####;Say ###########################;Yell Would you like a commander next round_ Vote by type !yes or !no;Say VOTE COMMANDER: Would you like a commander next round_ You can vote by type !YES or !NO

#CHECK !YES / !NO VOTES
On Say;Text !yes;If %server_global2[%VoteOn%]% == 1;
    If %VoteReg% == 1;PlayerSay VOTE COMMANDER: Your vote is already registered (Votes: %server_global71[%VoteCommanderVotes%]%/%server_votesneeded%)
    If %VoteReg% != 1;Incr %server_global71[%VoteCommanderVotes%]%;Say VOTE COMMANDER: %p% voted with !yes (Votes: %server_global71[%VoteCommanderVotes%]%/%server_votesneeded%);Set %VoteReg% 1;Set %MyLastVoteTime% %server_global3[%VoteTime%]%
    If %server_global71[%VoteCommanderVotes%]% >= %server_votesneeded%;Set %ini_CommanderVoteResult% 0;Set %ini_CommanderVoteResult_Commander% true; Set %ini_CommanderVoteResult_Spectators% 0;Yell You will have a commander next round;Say VOTE COMMANDER: You will have a commander next round; Set %server_global2[%VoteOn%]% 2;Log VOTE COMMANDER: With commander next round;

On Say;Text !no;If %server_global2[%VoteOn%]% == 1;
    If %VoteReg% == 1;PlayerSay Your vote is already registered (Votes: %server_global71[%VoteCommanderVotes%]%/%server_votesneeded%)
    If %VoteReg% != 1;Decr %server_global71[%VoteCommanderVotes%]%;Say VOTE COMMANDER: %p% voted with !no (Votes: %server_global71[%VoteCommanderVotes%]%/%server_votesneeded%);Set %VoteReg% 1;Set %MyLastVoteTime% %server_global3[%VoteTime%]%

# VOTE REMINDER ON SPAWN
On Spawn;If %server_global2[%VoteOn%]% == 1; If %VoteReg% != 1;PlayerSay VOTE COMMANDER: %p% would you like a commander next round_ Vote by type !YES or !NO

# ADMIN COMMANDS (!commanderon / !commanderoff)
On Say;Admin;
    Text !commanderon;Set %ini_CommanderVoteResult% 0;Set %ini_CommanderVoteResult_Commander% true; Set %ini_CommanderVoteResult_Spectators% 0; Say VOTE COMMANDER: You will have a commander next round
    Text !commanderoff;Set %ini_CommanderVoteResult% 0;Set %ini_CommanderVoteResult_Commander% false; Set %ini_CommanderVoteResult_Spectators% %VoteCommanderServerSpectatorSlots%; Say VOTE COMMANDER: You will have NO commander next round
Hi maxdralle,

 

For this script, has it been tested with Ultimate Map Manager? Does it work well with it? and does it work if server is running with multiple modes?

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

Originally Posted by Smellblood95*:

 

Hi Smellblood95,

its easier in proconrulz. Try this code in proconrulz and put your playername in the vip list (e.g. SuperSniper).

 

Code:

On Say;
    PlayerFirst;Set %VIPListe% "@@SuperSniper@@BigBoyBerlin@@TopCamper0815@@LostFluppy1984@@"
    Text !kill;If %VIPListe% contains @@%p%@@;TargetPlayer;TargetAction kill;Say %t% was KILLED by admin
hi Maxdralle,

 

thanks for your reply. I know that this is possible in proconrulz, nonetheless I thank you for your solution. Problem is with proconrulz that you cannot add colors in the proconchat with that. (or is there_)

That is one of the reasons I dearly want this in Insanelimits as I am working with colors in proconchat to quickly distinguish messages that matter more than others.

 

So again, I am asking if this is possible to make in Insanelimits?

 

Thank you in advance,

 

Smellblood95

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

Originally Posted by maxdralle*:

 

hi guys,

 

a question: it is possible to get the current class from a player? something like "player.class = Supporter" in insane limits...

 

 

@smellblood95

i dont know

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

Originally Posted by God_Zilla*:

 

Hi guys, i have new Limits Requests.

 

The limit is needed for the clan members and server friends.

 

Limit tracks online and allows players from the white list connect to the server if is full. It looks like a standard server function "reserve slot", but a little different.

 

The logic of the script:

 

//settings

maxonline=40 // the max value online players at which the script begins to work

kickmessage=Sorry but for the full server can connect only members // kick message if server maxonline is greater than the specified

vipjoinkickmessage=Sorry but your place was occupied by the Vip Players // player kick message when member is join on full server

kickby=name // kick type (by name, GUID, IP)

whitelist=members.txt // file name in procon directory with members (Vip) NickNames

 

//script

onJoin

serveronline return false;

serveronline >

{

if

is not member then with a message

else

is member then random player (not a other member!) with a message

};

 

Grovax* this request is very similar to your previous limit*, can you help?

 

 

Thank you!

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

Originally Posted by ColColonCleaner*:

 

Hi guys, i have new Limits Requests.

 

The limit is needed for the clan members and server friends.

 

Limit tracks online and allows players from the white list connect to the server if is full. It looks like a standard server function "reserve slot", but a little different.

 

The logic of the script:

 

//settings

maxonline=40 // the max value online players at which the script begins to work

kickmessage=Sorry but for the full server can connect only members // kick message if server maxonline is greater than the specified

vipjoinkickmessage=Sorry but your place was occupied by the Vip Players // player kick message when member is join on full server

kickby=name // kick type (by name, GUID, IP)

whitelist=members.txt // file name in procon directory with members (Vip) NickNames

 

//script

onJoin

serveronline

serveronline >

{

if

is not member then with a message

else

is member then random player (not a other member!) with a message

};

 

Grovax* this request is very similar to your previous limit*, can you help?

 

 

Thank you!

The server already can do what you are asking if I'm understanding it correctly, just turn on aggressive reserved slots, it's a server setting. It will kick non reserved players from the server if a reserved player attempts to join. Cheers.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by God_Zilla*:

 

The server already can do what you are asking if I'm understanding it correctly, just turn on aggressive reserved slots, it's a server setting. It will kick non reserved players from the server if a reserved player attempts to join. Cheers.

Yes, you're right.

But we have other limits that cant use ReservedSlot, and need to set the maximum not a member players are that may be present on the server, for example: Server for 64 players, but it can connect maximum 40 not a member players.

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

Originally Posted by EntraVenuS*:

 

I did a quick search but i couldnt find anything. Is there a limit available to limit kills i.e max kills of 50 per round (this is to stop the farmers) .. if a kill after 50 could be a admin kill on themselves, Or a kick i dont mind .. i dont want a ban this is a bit over the top.

 

Reason for this is other players tend to rage quit when pro farmers/ players get 50 plus kills. we dont want to ban the farmers /pro players. just want to slow them down a bit ..

 

Thanks in advance

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

Originally Posted by Grovax*:

 

I did a quick search but i couldnt find anything. Is there a limit available to limit kills i.e max kills of 50 per round (this is to stop the farmers) .. if a kill after 50 could be a admin kill on themselves, Or a kick i dont mind .. i dont want a ban this is a bit over the top.

 

Reason for this is other players tend to rage quit when pro farmers/ players get 50 plus kills. we dont want to ban the farmers /pro players. just want to slow them down a bit ..

 

Thanks in advance

Example for a 50+ kills kick

 

SETUP LIMIT#1

limit_evaluation: OnKill

limit_first_check: Expression

limit_first_check_code: paste the CODE#1 here

 

CODE#1

Code:

(player.KillsRound >= 50)
ENABLE SECOND CHECK

limit_second_check: Code

limit_second_check_code: paste the CODE#2 here

 

CODE#2:

Code:

plugin.KickPlayerWithMessage(killer.Name, "Vehicle farming is not allowed!");
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

sometimes we have a little problem with the supporter-players on our server. you are "out of ammo" and the teammate dont drop the ammobox... :mad:

 

for this special teammates i wrote a nice function. :biggrin:

it is a YELL message for the supporters in your team. on any ammo request from a teammate the supporters (only players with LMG) will see this YELL message DROP AMMO - we need a ammobox

 

 

CODE FOR INSANE LIMITS - PART 1

EVALUATION: OnAnyChat

FIRST_CHECK: Code

FIRST_CHECK_CODE: put here code part 1

 

Code:

// DropAmmoYellOnRequest - PART 1 //
if (player.LastChat == "ID_CHAT_REQUEST_AMMO") {
	//plugin.SendGlobalMessage(player.Name + " AMMO - Drop Ammobox");
	List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
	if (player.TeamId == 1) players.AddRange(team1.players);
	if (player.TeamId == 2) players.AddRange(team2.players);
	if (player.TeamId == 3) players.AddRange(team3.players);
	if (player.TeamId == 4) players.AddRange(team4.players);
	if (!plugin.RoundData.issetObject("SoldierClassList")) plugin.RoundData.setObject("SoldierClassList", new List<String>());
	List<String> PlayerClass = (List<String>)plugin.RoundData.getObject("SoldierClassList");
	int tmpAmmoGuys = 0;
	foreach(PlayerInfoInterface player_info in players) {
		if (PlayerClass.Contains(player_info.Name) && player_info.TeamId == player.TeamId && player_info.Name != player.Name) { tmpAmmoGuys++;
			plugin.SendPlayerYell(player_info.Name, player_info.Name + " DROP AMMO - we need a ammobox", 4);
		}
	}
	plugin.SendPlayerMessage(player.Name, plugin.R("AMMO REQUEST: " + tmpAmmoGuys.ToString() + " Supporter in your Team"));
}
CODE FOR INSANE LIMITS - PART 2

EVALUATION:

OnKill

FIRST_CHECK: Code

FIRST_CHECK_CODE: put here code part 2

 

Code:

//DropAmmoYellOnRequest - PART 2 //
if (kill.Category == "LMG") {
	if (!plugin.RoundData.issetObject("SoldierClassList")) plugin.RoundData.setObject("SoldierClassList", new List<String>());
	List<String> PlayerClass = (List<String>)plugin.RoundData.getObject("SoldierClassList");
	if (!PlayerClass.Contains(killer.Name)) PlayerClass.Add(killer.Name);
} 
if ((kill.Category == "AssaultRifle") || (kill.Category == "Carabine") || (kill.Category == "DMR") || (kill.Category == "SniperRifle")) {
	if (!plugin.RoundData.issetObject("SoldierClassList")) plugin.RoundData.setObject("SoldierClassList", new List<String>());
	List<String> PlayerClass = (List<String>)plugin.RoundData.getObject("SoldierClassList");
	if (PlayerClass.Contains(killer.Name)) PlayerClass.Remove(killer.Name);
}
it is a shame, that procon/insane limits can not read the current class
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mamba334*:

 

Is there a proconrulz script or an insane limit that I can set that will adjust the TIME ONLY according to the Game Mode?

 

We run CTF and it's fine.

We run CQL and it's fine.

We run Obliteration and Rush and it has a time limit on it and you don't have enough time to accomplish much.

 

Is there a way to make Rush longer?

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

Originally Posted by Wiggles*:

 

i wanted to have a limit that says different things in the chatbox on different maps, i.e. "b flag only" on metro and "c flag only" on locker when certain criterias are met (gametype, number of players).

 

i have some other limits that have a bit of the code each and made (with my limited skills) something that works with the maps i select, gamemode, and number of players, but i dont know how to differentiate it for different maps without making multiple limits.

 

onintervalserver, action to none

 

1st to expression

Code:

( Regex.Match(server.Gamemode, @"(Conquest)").Success
    && Regex.Match(server.MapFileName, @"(_:XP0_Metro)").Success
    && server.PlayerCount < 12
)
2nd to code

Code:

List<PlayerInfoInterface> allPlayers = new List<PlayerInfoInterface>();
allPlayers.AddRange(team1.players);
allPlayers.AddRange(team2.players);
List<String> spam = new List<String>();
spam.Add("Only B flag until 5 vs 5");
spam.Add("B only with less than 10 players");
// add more messages here ... use \n for new line


String kSpamIndex = "SPAM_index";

int message = 0;
if (server.Data.issetInt(kSpamIndex)) message = server.Data.getInt(kSpamIndex);

message = (message % spam.Count);

DateTime sanityCheck = DateTime.Now;
String kSanityCheck = "SPAM_check";
if (server.Data.issetObject(kSanityCheck)) {
	sanityCheck = (DateTime)server.Data.getObject(kSanityCheck);
	TimeSpan sane = DateTime.Now.Subtract(sanityCheck);
	if (sane.TotalMinutes < 5) {
	}
}
server.Data.setObject(kSanityCheck, DateTime.Now);
server.Data.setInt(kSpamIndex, message+1);


{
            plugin.SendGlobalMessage(spam[message]);
}

return false;
can anyone help me out here?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ColColonCleaner*:

 

you cant detect levolution events as far as i know

You are correct, there is no way to automatically detect that. Usually servers marked with no levelution, have active admins to watch for rule breakers.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Wiggles*:

 

i wanted to have a limit that says different things in the chatbox on different maps, i.e. "b flag only" on metro and "c flag only" on locker when certain criterias are met (gametype, number of players).

 

i have some other limits that have a bit of the code each and made (with my limited skills) something that works with the maps i select, gamemode, and number of players, but i dont know how to differentiate it for different maps without making multiple limits.

 

onintervalserver, action to none

 

1st to expression

Code:

( Regex.Match(server.Gamemode, @"(Conquest)").Success
    && Regex.Match(server.MapFileName, @"(_:XP0_Metro)").Success
    && server.PlayerCount < 12
)
2nd to code

Code:

List<PlayerInfoInterface> allPlayers = new List<PlayerInfoInterface>();
allPlayers.AddRange(team1.players);
allPlayers.AddRange(team2.players);
List<String> spam = new List<String>();
spam.Add("Only B flag until 5 vs 5");
spam.Add("B only with less than 10 players");
// add more messages here ... use \n for new line


String kSpamIndex = "SPAM_index";

int message = 0;
if (server.Data.issetInt(kSpamIndex)) message = server.Data.getInt(kSpamIndex);

message = (message % spam.Count);

DateTime sanityCheck = DateTime.Now;
String kSanityCheck = "SPAM_check";
if (server.Data.issetObject(kSanityCheck)) {
	sanityCheck = (DateTime)server.Data.getObject(kSanityCheck);
	TimeSpan sane = DateTime.Now.Subtract(sanityCheck);
	if (sane.TotalMinutes < 5) {
	}
}
server.Data.setObject(kSanityCheck, DateTime.Now);
server.Data.setInt(kSpamIndex, message+1);


{
            plugin.SendGlobalMessage(spam[message]);
}

return false;
can anyone help me out here?
does someone know how this can be done?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Smellblood95*:

 

Hello everyone,

 

I recently got the following 3 limits from this page* for the Teamkill Punish mechanism.

It works great, however on the third limit (punish limit) I want to add an exclusion that excludes a list of admin names to not be punishable. I tried a lot, but I cannot seem to make it work. Can anyone help adding this?

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

Originally Posted by Grovax*:

 

Please, BFH knife only CODE insane limits , please where to find ? Thank you so much.

Not tested, but must work. User get a Timeban after 3 non-knife kills (only knifes allowed, not melee weapons)

 

or u can test this command, found it in the server manual:

 

Curated Unlock List

Starting with XP4 we are providing curated lists of unlocks that can be used to further customize the gameplay experience. Use vars.curatedUnlockList to enable it.

Currently there are two active curated lists:

- Pistols – Players can just equip Pistols and Melee weapons (Index 1)

- Melee – Players can just equip Melee weapons (Index 2)

 

SETUP LIMIT#1

limit_evaluation: OnKill

limit_first_check: Expression

limit_first_check_code: paste the CODE#1 here

 

CODE#1

Code:

(Regex.Match(kill.Weapon, @"(_:KNIFE)", RegexOptions.IgnoreCase).Success)
ENABLE SECOND CHECK

limit_second_check: Code

limit_second_check_code: paste the CODE#2 here

 

CODE#2:

Code:

if (limit.Activations(killer.Name, TimeSpan.FromSeconds(2)) > 1) return false;
String kCounter = killer.Name + "_Knife_Count";
int warnings = 0;
if (server.RoundData.issetInt(kCounter)) warnings = server.RoundData.getInt(kCounter);
warnings += 1;
server.RoundData.setInt(kCounter, warnings);
if (warnings <= 2) {
    String globalMessage = killer.Name + " killed for non-knife use! Warning (" + warnings + "/3)";
    plugin.SendGlobalMessage(globalMessage);
    plugin.PRoConChat("MortarRestriction > Say > " + killer.Name + " > " + globalMessage);
    String privateMessage = "ONLY KNIFES ALLOWED! READ OUR RULES: !rules";
    plugin.SendPlayerYell(killer.Name, privateMessage, 10);
    plugin.PRoConChat("KnifeRestriction > Yell[10] > " + killer.Name + " > " + privateMessage);
    plugin.KillPlayer(killer.Name, 1);
}
else if (warnings == 3) {
	plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, killer.Name, 20, "Timeban (20m) for ignoring warnings and non-knife use!");
}
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by JopaJM*:

 

Not tested, but must work. User get a Timeban after 3 non-knife kills (only knifes allowed, not melee weapons)

 

or u can test this command, found it in the server manual:

 

Curated Unlock List

Starting with XP4 we are providing curated lists of unlocks that can be used to further customize the gameplay experience. Use vars.curatedUnlockList to enable it.

Currently there are two active curated lists:

- Pistols – Players can just equip Pistols and Melee weapons (Index 1)

- Melee – Players can just equip Melee weapons (Index 2)

 

SETUP LIMIT#1

limit_evaluation: OnKill

limit_first_check: Expression

limit_first_check_code: paste the CODE#1 here

 

CODE#1

Code:

(Regex.Match(kill.Weapon, @"(_:KNIFE)", RegexOptions.IgnoreCase).Success))
ENABLE SECOND CHECK

limit_second_check: Code

limit_second_check_code: paste the CODE#2 here

 

CODE#2:

Code:

if (limit.Activations(killer.Name, TimeSpan.FromSeconds(2)) > 1) return false;
String kCounter = killer.Name + "_Knife_Count";
int warnings = 0;
if (server.RoundData.issetInt(kCounter)) warnings = server.RoundData.getInt(kCounter);
warnings += 1;
server.RoundData.setInt(kCounter, warnings);
if (warnings <= 2) {
    String globalMessage = killer.Name + " killed for non-knife use! Warning (" + warnings + "/3)";
    plugin.SendGlobalMessage(globalMessage);
    plugin.PRoConChat("MortarRestriction > Say > " + killer.Name + " > " + globalMessage);
    String privateMessage = "ONLY KNIFES ALLOWED! READ OUR RULES: !rules";
    plugin.SendPlayerYell(killer.Name, privateMessage, 10);
    plugin.PRoConChat("KnifeRestriction > Yell[10] > " + killer.Name + " > " + privateMessage);
    plugin.KillPlayer(killer.Name, 1);
}
else if (warnings == 3) {
	plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, killer.Name, 20, "Timeban (20m) for ignoring warnings and non-knife use!");
}
return false;
Not work man :sad:
* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further replies.




×
×
  • 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.