08.08.2015, 17:04
Quote:
COMMAND:calar(playerid, params[]) { new Msg[128], Name[24], AdminName[24], Reason[128], OtherPlayer; SendAdminText(playerid, "/calar", params); if (APlayerData[playerid][LoggedIn] == true) { if (APlayerData[playerid][PlayerLevel] >= 1) { if (sscanf(params, "us[128]", OtherPlayer, Reason)) SendClientMessage(playerid, 0xFF0000AA, "Use: /calar [id] [motivo]"); else { if (IsPlayerConnected(OtherPlayer)) { GetPlayerName(playerid, AdminName, sizeof(AdminName)); GetPlayerName(OtherPlayer, Name, sizeof(Name)); APlayerData[OtherPlayer][Muted] = true; format(Msg, 128, "{FFFFFF}%s {FF0000}foi calado por {FFFFFF}%s. {FF0000}Motivo: {FFFFFF}%s", Name, AdminName, Reason); SendClientMessageToAll(0xFFFFFFFF, Msg); PlayerFile_Save(OtherPlayer); } else SendClientMessage(playerid, 0xFFFFFFFF, "{A9C4E4}O jogador nгo estб online."); } } else return 0; } else return 0; return 1; } |