[Ajuda] Code
#7

Nгo cheguei a testar, mas tenta aн.
PHP код:
public kickarafk()
{
    for(new 
id 0id MAX_PLAYERSid++)
    {
        if(
AFK[id] == 1)
        {
            if(!
IsPlayerAdmin(id))
            {    
                new 
nome[24];
                
GetPlayerName(idnome24);
                
format(stringsizeof(string), "[Anti-AFK:] O jogador %s[%d] foi kickado por ficar afk."nomeid);
                
SendClientMessageToAll(admstring);
                
Kick(id);
            }
            else return 
SendClientMessage(id, -1"Vocк й administrador e por isso nгo foi kickado.");
        }
    }
    return 
1;

Uso simples:
PHP код:
CMD:kickafk(playeridparams[])
{
    
kickarafk();
    print(
"Kickando todos os afks...");
    return 
1;

Reply


Messages In This Thread
Code - by GabrielMT - 03.05.2017, 04:54
Re: Code - by Toroi - 03.05.2017, 05:26
Re: Code - by moura98 - 03.05.2017, 05:34
Re: Code - by GabrielMT - 03.05.2017, 10:33
Re: Code - by moura98 - 03.05.2017, 11:14
Re: Code - by IlanZ - 03.05.2017, 18:45
Re: Code - by ipsLuan - 04.05.2017, 02:06
Re: Code - by AuhMaru - 04.05.2017, 02:18
Re: Code - by ipsLuan - 04.05.2017, 02:22
Re: Code - by AuhMaru - 04.05.2017, 02:24

Forum Jump:


Users browsing this thread: 1 Guest(s)