17.10.2014, 13:15
how to make afk time.
Default is the time in scm - SendClientMessage and how to make it in 3dtextlabel
Default:
Label:
I try to make that system like this but don't work
Default is the time in scm - SendClientMessage and how to make it in 3dtextlabel
Default:
Code:
if(IsPlayerConnected(i)) { if(AFK[i] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); new Float:time = AFKTime[i]; format(string, 256, "{FF6347}%s (%d) {FFFFFF}| Afk vrijeme:{FF6347}%.1fmin", sendername, i,time); SCM(playerid, COLOR_WHITE, string); } }
Code:
AFK[i] = 1; AfkLabel[i] = Create3DTextLabel("[AFK - Nisam u igrici!]",0xFF000099,0,0,0,50,-1,1); Attach3DTextLabelToPlayer(AfkLabel[i], i, 0,0,0);
Code:
AfkLabel[i] = Create3DTextLabel("[AFK - Nisam u igrici %.1fmin!]",0xFF000099,0,0,0,50,-1,1,time);