19.03.2014, 14:51
Well if i understand right then
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.
Again
Код:
COMMAND:togcmds
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;
}
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;
}