Jump to content

Question

2 answers to this question

Recommended Posts

  • 0
Posted

I recommend to fuse this with another OnPCKillEvent to avoid having a large event queue.

-	script	Anti_FreeKill	-1,{

OnPCKillEvent:

	if(@last_kill == killedrid) {
		if(++@last_killamt >= 29) {
			atcommand "@jailfor 1h "+strcharinfo(0);
			announce strcharinfo(0)+" has been cheating with "+rid2name(@last_kill)+".",bc_all;
			@last_killamt = 0;
			@last_kill = 0;
			end;
		}
	} else {
		@last_killamt = 0;
	}
	@last_kill = killedrid;
	end;

OnPCDieEvent:

	@last_killamt = 0;
	end;

}

 

  • Love 1
  • 0
Posted
46 minutes ago, n0tttt said:

I recommend to fuse this with another OnPCKillEvent to avoid having a large event queue.


-	script	Anti_FreeKill	-1,{

OnPCKillEvent:

	if(@last_kill == killedrid) {
		if(++@last_killamt >= 29) {
			atcommand "@jailfor 1h "+strcharinfo(0);
			announce strcharinfo(0)+" has been cheating with "+rid2name(@last_kill)+".",bc_all;
			@last_killamt = 0;
			@last_kill = 0;
			end;
		}
	} else {
		@last_killamt = 0;
	}
	@last_kill = killedrid;
	end;

OnPCDieEvent:

	@last_killamt = 0;
	end;

}

 

 

best scripter! Thank you very much, it worked exactly as I wanted it to. :meow:

Join the conversation

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

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...