Team kills textdraw
#1

Im making a deathmatch gamemode, and I want to show some stats on textdraws, for example, kills (pKills). I am also going to use this system to determine the winner, at maybe 50 kills or smth. but what I need, is a way to find out how many of the number is there, so the script will always know how many kills each team has to display. I am using YSI.

Could it be like TeamInfo[Team:Red][tKills][value]? Im just looking for the function, I know how to do everything else.
Reply
#2

GetPlayerTeam bla bla i made a tread like this, check the tread out.
Reply
#3

Could you gimme a title or link?
Reply
#4

ok so here we go.
Код:
you welcome
deleted.
+rep me THIS IS TESTED works fine and i love this code, you welcome
Reply
#5

Alright thanks, but all I was looking for was the
TeamKills[team]++;
format(stringkills, sizeof(stringkills), "European Kills: %d USA Kills: %d Russian Kills; %d China Kills: %d", TeamKills[0], TeamKills[1], TeamKills[2], TeamKills[3]);

haha, +Repped.
Reply
#6

no problem.
Reply
#7

I figured out a better way for this, it sets a timer ongamemodeinit, then the timer checks the kills and updates the textdraw, simple.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)