28.12.2016, 18:53
With all the resources you gave I could make this:
PHP код:
if (playerData[playerid][playerMuteTime] != 0)
{
new message[128], message2[128], pName[MAX_PLAYER_NAME], tName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(playerid, tName, sizeof(tName));
format(message, sizeof(message), "{FFDC2E}[MUTED] {#ff69b4}You are muted for another {FFDC2E}%i{FFFFFF}seconds and cannot talk!", playerData[playerid][playerMuteTime]);
SendClientMessage(playerid, COLOR_WHITE, message);
format(message2, sizeof(message2), "%s is muted by %s for %i seconds!", tName, pName, playerData[playerid][playerMuteTime]);
SendClientMessageToAll(-1, message2);
return 0;
}