Posts: 288
Threads: 36
Joined: May 2010
Reputation:
0
Hi all, I am trying to make a double-kill/triple-kill/etc. system. I am wondering how to make it so that if a player kills another player it would start a timer and if a player gets a kill within the time (5 seconds) the timer will reset and it will add to the players 'killstreak'. If the killstreak is 2 it will say double-kill and if the streak is 3 it will say triple-kill and anything after that it will say rampage. Once the timer ends the killstreak is set back to '0'.
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
You'd be better off with using ticks than a timer. Just create two variables or use PVar's. One to keep up with their killstreak, and one to keep up with the ticks.
Posts: 288
Threads: 36
Joined: May 2010
Reputation:
0
I'm not very familiar with how to use ticks. Could you give me an example?
Posts: 288
Threads: 36
Joined: May 2010
Reputation:
0
I'm wondering how I would make it so that if a player gets 2 kills for example it would send a message saying double kill and if 3 triple kill and anything above 3 it would say rampage.