19.07.2017, 04:51
(
Последний раз редактировалось ThomasEvil; 19.07.2017 в 08:33.
)
NEVER FORGET USE PlayerTextDeawDestroy ON OnPlayerDisconnect !
Solved.
Solved.
public UpdateMuteTime(playerid)
{
if(PlayerInfo[playerid][pMutedTime] < 1)
{
KillTimer(MuteTime[playerid]);
PlayerInfo[playerid][pMuted] = 0;
PlayerInfo[playerid][pMutedTime] = 0;
PlayerTextDrawHide(playerid,MuteTimeTextDraw[playerid]);
return 1;
}
new timeString[32];
format(timeString, sizeof(timeString), "Mute:%02d:%02d", PlayerInfo[playerid[pMutedTime]/60, PlayerInfo[playerid[pMutedTime]%60);
PlayerTextDrawSetString(playerid, MuteTimeTextDraw[playerid], timeString);
return 1;
}