18.01.2012, 20:05
Код:
new Text:IRStextdraw[MAX_PLAYERS]; // change this // move this to OnPlayerConnect, change it, too IRStextdraw[playerid] = TextDrawCreate(500.000000, 12.000000, "127 IRS"); TextDrawBackgroundColor(IRStextdraw[playerid], 255); TextDrawFont(IRStextdraw[playerid], 1); TextDrawLetterSize(IRStextdraw[playerid], 0.280000, 1.000000); TextDrawColor(IRStextdraw[playerid], -1767449089); TextDrawSetOutline(IRStextdraw[playerid], 1); TextDrawSetProportional(IRStextdraw[playerid], 1); // stock UpdateIRS() { new string[256]; for(new i=0;i<MAX_PLAYERS;i++) { if(IRSupdate[i] == 1) { format(string,sizeof(string),"%d IRS",IRS[i]); TextDrawSetString(IRStextdraw[i],string); TextDrawShowForPlayer(i,IRStextdraw[i]); IRSupdate[i]=0; } } }