Team reward rep +
#1

How to make reward for team who get 50 kills in server and reset team kills after win?
Teams are defined C1 and T1
Reply
#2

You have to create a global variable like teams[2]; (or team1; and team2.
Then you have to check on OnPlayerDeath if the killerid is in one of the two teams and if yes teams[0] or teams[1] (depending on which is the team of the killerid) will be increased by one.
When teams[0] or teams[1] reach 50, you can reset it to 0 with teams[0] = 0; or teams[1] = 0.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)