Posts: 765
Threads: 183
Joined: Sep 2011
Reputation:
0
i need your help to make a function in which when maps finishes a gametext appears with the name of highest killer and if there is two or more than two killers a gametext appears with the draw message.
Thank You.
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
Extremely easy to make, use the search bar, I'm sure you'll be able to find something.
Whenever you kill someone, add 1 to a kill variable for a player, and then loop through all the players and check who has the highest. Then, check if more than 1 person has the highest score, and if so, show the draw message.
Really easy, and I don't feel like making it for someone who doesn't want to search.
Posts: 765
Threads: 183
Joined: Sep 2011
Reputation:
0
Working great. I have put this in the end of the map. but a problem this loop appears in the end of the round and i have a doubt that does it calculates whole player kills or map kills, because i want only killls of map.
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
Then whenever you get a kill on a map, increase a player variable, and then use that variable for the example loop thing I showed above. Then, if you want to erase it, just set it to 0 whenever the new round starts.
Posts: 765
Threads: 183
Joined: Sep 2011
Reputation:
0
Thank you for this kind help. May i contact you if i get any problems regarding to this?
+ REP.
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
Sure, PM me if anything comes up.