03.04.2015, 11:38
make a timer for that
pawn Код:
public OnGameModeInit()
{
SetTimer("RandomTextDraws", 2000, true); // in every 2mins timer will be repeated
return 1;
}
forward RandomTextDraws();
public RandomTextDraws()
{
for(new i; i < MAX_PLAYERS;i++)
{
GainXPTD[i] = TextDrawCreate(Randomxpshowpos[random(sizeof(Randomxpshowpos))][0],Randomxpshowpos[random(sizeof(Randomxpshowpos))][1], "_");
TextDrawFont(GainXPTD[i], 2);
TextDrawLetterSize(GainXPTD[i], 0.27, 2.67);
TextDrawColor(GainXPTD[i], 0x00ff5933);
TextDrawSetOutline(GainXPTD[i], 1);
TextDrawSetProportional(GainXPTD[i], 1);
}
return 1;
}