Help me
#2

Quote:
Originally Posted by michomkd
View Post
Hey guys, how can i made a script when Admin go "On duty" to display time spended from admin on duty ..

For example : Admin Micho_Mkd is on duty ! [DutyTIME: 21hr:21min]
Here is a picture : http://prnt.sc/ezh4vy
PHP Code:
enum aduty
{
    
bool:isinduty,
    
dutysec,
    
dutymin
}
new 
admintime[MAX_PLAYERS][aduty];
//Global timer >> 
settimer("duty",1000,true);
forward duty();
public 
duty()
{
    for(new 
i;i<MAX_PLAYERS;i++)
    {
        if(
IsAnAdmin(i))
        {
            if(
admintime[i][isinduty])
            {
                if(
dutysec 60)
                {
                    
admintime[i][dutysec]++;
                }
                if(
dutysec == 60)
                {
                    
admintime[i][dutysec] = 0;
                    
admintime[i][dutymin]++;
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Help me - by michomkd - 23.04.2017, 19:08
Re: Help me - by khRamin78 - 23.04.2017, 20:15
Re: Help me - by Vince - 23.04.2017, 20:35
Re: Help me - by michomkd - 24.04.2017, 12:10
Re: Help me - by michomkd - 29.04.2017, 08:29
Re: Help me - by michomkd - 02.05.2017, 14:13
Re: Help me - by Sew_Sumi - 02.05.2017, 16:22
Re: Help me - by Loinal - 02.05.2017, 17:44
Re: Help me - by michomkd - 02.05.2017, 21:02
Re: Help me - by Sew_Sumi - 02.05.2017, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)