07.12.2012, 12:35
I am making a script that shows team scores in one of the corners. I already got it working but cant find a good way for a realtime update voor every player or at least almost realtime.
Can someone help me with this. Here is the script : "stock UpdateStatsTextdraw(playerid)"
Can someone help me with this. Here is the script : "stock UpdateStatsTextdraw(playerid)"
pawn Код:
stock UpdateStatsTextdraw(playerid)
{
new alphatxt[11], bravotxt[11], charlietxt[11], deltatxt[11];
format(alphatxt, sizeof(alphatxt), "%d", ALPHASCORE);
TextDrawSetString(Textalpha[playerid], alphatxt);
format(bravotxt, sizeof(bravotxt), "%d", BRAVOSCORE);
TextDrawSetString(Textbravo[playerid], bravotxt);
format(charlietxt, sizeof(charlietxt), "%d", CHARLIESCORE);
TextDrawSetString(Textcharlie[playerid], charlietxt);
format(deltatxt, sizeof(deltatxt), "%d", DELTASCORE);
TextDrawSetString(Textdelta[playerid], deltatxt);
}