IsabelaFernandez Posted January 8, 2019 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Share Posted January 8, 2019 Hello friends, I would like a simple script to avoid the free kill.If a player kills the same more than 30 times without dying, a global message would appear with the nicknames and both would go to jail for 1 hour. Quote Link to comment Share on other sites More sharing options...
0 n0tttt Posted January 8, 2019 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 303 Reputation: 118 Joined: 12/10/16 Last Seen: Yesterday at 05:28 AM Share Posted January 8, 2019 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; } 1 Quote Link to comment Share on other sites More sharing options...
0 IsabelaFernandez Posted January 8, 2019 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Author Share Posted January 8, 2019 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. Quote Link to comment Share on other sites More sharing options...
Question
IsabelaFernandez
Hello friends, I would like a simple script to avoid the free kill.
If a player kills the same more than 30 times without dying, a global message would appear with the nicknames and both would go to jail for 1 hour.
Link to comment
Share on other sites
2 answers to this question
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.