20.03.2014, 20:56
I have this script to send player commands uses msg to admins like "Nick(1) used /tele"
I want a command to enable or disable this text for admins with /text /textoff. I even tried with bools but it didn't work, can anyone help? :/
pawn Код:
MessageToAdmins(playerid, command[], text[])
{
new Name[24], Msg[128];
for (new i; i < MAX_PLAYERS; i++) {
if (APlayerData[i][PlayerLevel] >= 3) {
GetPlayerName(playerid, Name, sizeof(Name));
format(Msg, 128, "** Player %s(%d) used: %s %s", Name, playerid, command, text);
SendClientMessage(i, 0x808080FF, Msg); } }
}