TextDraw HitList !
#1

Hello i got a problem with the hitlist i made a textdraw for the hitlist but it shows only one player whoo has hit not all the players
here is my /hits command

CMD:hits(playerid, params[])
{
new string[256];
new count = 0;
if(gTeam[playerid] != TEAM_HITMAN)return SCM(playerid, COLOR_RED, "You are not a HitMan!");
{
foreach(Player, i)
{
if(HasHit[i] > 0)
{
format(string, sizeof(string), "Player: %s(%d) Price: $%d~n~", GetName(i), i, HasHit[i]);
TextDrawSetString(name12, string);
TextDrawShowForPlayer(playerid, name12);
TextDrawShowForPlayer(playerid, usebox);
TextDrawShowForPlayer(playerid, hits);
TextDrawShowForPlayer(playerid, lmb);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_RED, "[ HIT LIST: There are currently no hit contracts at the moment. ]");
}
}
return 1;
}
Reply


Messages In This Thread
TextDraw HitList ! - by TuFF12 - 29.11.2015, 10:37
Re: TextDraw HitList ! - by ATGOggy - 29.11.2015, 11:20
Re: TextDraw HitList ! - by TuFF12 - 29.11.2015, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)