08.02.2018, 14:04
I don't know why but when I mute someone it says
"You have muted (name here) for (nothing here)"
"You have muted (name here) for (nothing here)"
Код:
CMD:mute(playerid, params[]) { if(connected[playerid] == true) return GameTextForPlayer(playerid, "~r~Spawn First", 5000, 5); if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "{C3C3C3}(INFO) You don't have the priviliges to use this command."); { new target, str[128], name[MAX_PLAYER_NAME], reason[50]; if(Mute[target] == 1) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO) That player is already muted!"); if(sscanf(params, "us[128]", target, str)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO) /mute [id] [reason]"); if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO) That player is not connected"); GetPlayerName(target, name,sizeof(name)); format(str, sizeof(str), "{EFB509}(INFO) You have muted %s for %s", name, reason); SendClientMessage(playerid, -1, str); format(str, sizeof(str), "{EFB509}(INFO) You have been muted by an admin for: %s", reason); SendClientMessage(target, -1, str); GameTextForPlayer(playerid, "~r~Muted", 4000, 3); Mute[target] = 1; } return 1; }