16.09.2011, 09:42
Textdraws are overlapping because you never destroy them..
What I mean is that you should use TextDrawDestroy(); before you do TextDrawCreate(); again.
Example:
OR:
Use TextDrawCreate in OnFilterScriptInit() or OnGameModeInit() then use TextDrawSetString();
What I mean is that you should use TextDrawDestroy(); before you do TextDrawCreate(); again.
Example:
pawn Код:
if(team[killerid]==1 && team[playerid]!=1)
{
MaxScore1++;
new out[128];
TextDrawHideForAll(Textdraw6);
format(out,128,"~r~%i",MaxScore1);
TextDrawDestroy(Textdraw6); //<- this!
Textdraw6 = TextDrawCreate(580.000000, 309.000000, out);
TextDrawLetterSize(Textdraw6, 0.509998, 1.299999);
TextDrawShowForAll(Textdraw6);
}
Use TextDrawCreate in OnFilterScriptInit() or OnGameModeInit() then use TextDrawSetString();