21.10.2010, 14:27
How can i use this with zcmd so when someone type a command it will show admin what he typed. Need i use any callback or something ? ZCMD callback?
pawn Код:
new string[256];
format(string, sizeof(string), "**** %s (%d) has typed: %s", pNameL(playerid),playerid,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if( (PlayerInfo[i][AdminLevel] > PlayerInfo[playerid][AdminLevel]) && (PlayerInfo[i][AdminLevel] > 2) && (i != playerid) )
{
SendClientMessage(i, ANY_COLOR, string);
}
}
}