Text Draw For Teams
#1

I'm Interested of building 2 TDs which will show in the left side of the screen:

Team A: (Score)
Team B: (Score)

And I also want to build a command that will change the TD colors, for example /scta (setcolorteamA) will open a dialog and will show a list of colors that will change "Team A" text, same /sctb for "Team B".

I want to edit Team's Score Manually by doing a command (like /setscorea \ /setscoreb) and it will change the (Score) to a specific value which I'll choose.
Reply
#2

use
pawn Код:
TextDrawSetString(Text:text,string[]);
Reply
#3

Where it belongs to? Explain more please.
Reply
#4

Example Only:

new text Score[max_players];

score[i] = textdrawcreate

Then onplayerupdate you need to gather the scores of each team
and string it like the following

new newtext[900];
format(newtext, sizeof(newtext), "~r~Red Team: %d~n~~b~Blue Team: %d", redteamscore, blueteamscore);
TextDrawSetString(Score, newtext);
TextDrawShowForPlayer(playerid, Score);
Reply
#5

if(gTeam[playerid] == TEAM_USA)
{
new newtext[900];
format(team1, sizeof(team1), "~r~Red Team: %d~n~~b~Blue Team: %d", redteamscore, blueteamscore);
TextDrawSetString(Score, team1);
TextDrawShowForPlayer(playerid, Score);
return 1;
}

Easily
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)