Cmd help
#1

How I can make if a player write a command the admins to can see it
Reply
#2

Put in the init of the callback OnPlayerCommandText:
pawn Код:
new str[64], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
format(str, 64, "%s has sent the command: \"%s\".", name, cmdtext);
for(new i = 0, j = GetMaxPlayers(); i < j; i++)
{
    if(IsPlayerAdmin(i))
    {      
        SendClientMessage(i, 0xFFFFFFAA, str);
    }
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)