Code:
for(new i=0; i<MAX_PLAYERS; i++)
{
new PausedSeconds = gettime()-PauseTime[i], string[50];
if(PausedSeconds > 2) // 5
if(PausedSeconds > 60) // check if it's above 1 minute.
{
format(string, sizeof(string), ""COL_YELLOW"Paused for (%d) minutes\n|\nV\n", SecondsToMinutes(PausedSeconds));
Update3DTextLabelText(masklabel[i], GREY, string);
masklabel[i] = Create3DTextLabel(""COL_YELLOW"Paused for (%d) minutes\n|\nV\n", GREY, -1.0, -1.0, -1.0, -1.0, 0, SecondsToMinutes(PausedSeconds));
Attach3DTextLabelToPlayer(masklabel[i], i, 0.0, 0.0, 0.7);
}
else if(PausedSeconds < 60 && PausedSeconds > 0) // checks if it's below 1 minute but above 0 seconds.
{
format(string, sizeof(string), ""COL_YELLOW"Paused for (%d) seconds\n|\nV\n", PausedSeconds);
Update3DTextLabelText(masklabel[i], GREY, string);
masklabel[i] = Create3DTextLabel(""COL_YELLOW"Paused for (%d) seconds\n|\nV\n", GREY, -1.0, -1.0, -1.0, -1.0, 0, PausedSeconds);
Attach3DTextLabelToPlayer(masklabel[i], i, 0.0, 0.0, 0.7);
}
}
This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.
3dlabel doesnt show
Aucun commentaire:
Enregistrer un commentaire