/admins
#6

first you need to make a global per player var
PHP Code:
new IamAFK[MAX_PLAYERS char]; 
second you need to make afk command
PHP Code:
CMD:afk(playeridparams[])
{
    
//....
    
IamAFKplayerid } = 1;

and back command
PHP Code:
CMD:back(playeridparams[])
{
    
//....
    
IamAFKplayerid } = 0;

then use if statement to check if player is afk and give him afk tag here's a ex
PHP Code:
CMD:admins(playeridparams[])
{
    (
loopwith i var )
    
//... your codes if connected checker, admin level checker....
    
if(IamAFK})
    {
      
// he is afk wow!
    
}
    else
    {
       
// he is not afk ._. bad player.
    
}

Reply


Messages In This Thread
/admins - by wRoberTw - 08.09.2016, 16:55
Re: /admins - by kelvinis - 08.09.2016, 17:17
Re: /admins - by wRoberTw - 08.09.2016, 17:22
Re: /admins - by Ultraz - 08.09.2016, 18:51
Re: /admins - by wRoberTw - 08.09.2016, 20:21
Re: /admins - by jlalt - 08.09.2016, 20:27
Re: /admins - by wRoberTw - 09.09.2016, 15:48
Re: /admins - by Gotham - 09.09.2016, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)