Team kills textdraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Team kills textdraw (
/showthread.php?tid=444257)
Team kills textdraw -
Mattakil - 16.06.2013
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.
Re: Team kills textdraw -
SwisherSweet - 16.06.2013
GetPlayerTeam bla bla i made a tread like this, check the tread out.
Re: Team kills textdraw -
Mattakil - 16.06.2013
Could you gimme a title or link?
Re: Team kills textdraw -
SwisherSweet - 16.06.2013
ok so here we go.
Код:
you welcome
deleted.
+rep me THIS IS TESTED works fine and i love this code, you welcome
Re: Team kills textdraw -
Mattakil - 16.06.2013
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.
Re: Team kills textdraw -
SwisherSweet - 16.06.2013
no problem.
Re: Team kills textdraw -
Mattakil - 16.06.2013
I figured out a better way for this, it sets a timer ongamemodeinit, then the timer checks the kills and updates the textdraw, simple.