Здравствуйте, скажите пожалуйста как сделать чтоб время афк было вот такое, а не как у меня у меня через ConvertSeconds
PHP код:
stock AFKSystem(){
for(new playerid;playerid < GetMaxPlayers();playerid++){
if(IsPlayerConnected(playerid)){
if(GetPVarInt(playerid,"PlayerInAFK") == 0)SetPVarInt(playerid,"PlayerInAFK", -1);
else if(GetPVarInt(playerid,"PlayerInAFK") == -1){
SetPVarInt(playerid,"PlayerInAFK",1);
new string[56];
f(string,"[AFK]\n%s",ConvertSeconds(GetPVarInt(playerid,"PlayerInAFK")));
SetPlayerChatBubble(playerid,string,COLOR_WHITE,20.0,1500);}
else if(GetPVarInt(playerid,"PlayerInAFK") > 0){
new string[128];
SetPVarInt(playerid,"PlayerInAFK",GetPVarInt(playerid,"PlayerInAFK")+1);
f(string,"[AFK]\n%s",ConvertSeconds(GetPVarInt(playerid,"PlayerInAFK")));
SetPlayerChatBubble(playerid,string,COLOR_WHITE,20.0,1500);
if(GetPVarInt(playerid,"PlayerInAFK") == 900 && Player[playerid][pAdmin] < 9){
send(playerid,COLOR_YELLOW,"Ты был(а) кикнут(а) античитом. Причина: AFK более 15 минут.");
f(string,"Античит: %s[%d] был(а) кикнут(а). Причина: AFK более 15 минут.",Player[playerid][pName],playerid);
ABroadCast(COLOR_YELLOW,string);Kick(playerid);
DisablePlayerCheckpoint(playerid);SaveAccount(playerid);}}}}}