IsabelaFernandez Posted January 8, 2019 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
0 n0tttt Posted January 8, 2019 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
0 IsabelaFernandez Posted January 8, 2019 Author 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
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.
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.