[HELP] Admin CMD Spy
#5

Well if i understand right then
Код:
COMMAND:togcmds
is only for power 10 and higher right?

And in this code you are searching every admin which have enabled admincmdspy and then send him message. But message won't be send if the player power is more than 19.
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerTemp[i][admincmdspy] == 1)
        if(PlayerInfo[playerid][power] < 19) //if someone got lower power than 19 his commands will be reported..
        {
            format(iStr, sizeof(iStr), "[ CMD ] %s[%d]: %s", PlayerName(playerid), playerid, cmdtext);
            SendClientMessage(i, COLOR_ORANGE, iStr);
        }
    }
    return 1;
}
Again
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerTemp[i][admincmdspy] == 1)
        if(PlayerInfo[playerid][power] < 19) //if this is true then it sends message, if not then not
        {
            format(iStr, sizeof(iStr), "[ CMD ] %s[%d]: %s", PlayerName(playerid), playerid, cmdtext);
            SendClientMessage(i, COLOR_ORANGE, iStr);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Admin CMD Spy - by Nucky - 19.03.2014, 14:10
Re: [HELP] Admin CMD Spy - by thomaswilliams - 19.03.2014, 14:26
Re: [HELP] Admin CMD Spy - by Matess - 19.03.2014, 14:29
Re: [HELP] Admin CMD Spy - by Nucky - 19.03.2014, 14:44
Re: [HELP] Admin CMD Spy - by Matess - 19.03.2014, 14:51
Re: [HELP] Admin CMD Spy - by Nucky - 19.03.2014, 15:02
Re: [HELP] Admin CMD Spy - by Matess - 19.03.2014, 15:12
Re: [HELP] Admin CMD Spy - by MrHamediT - 06.08.2016, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)