onplayertext & mute
#1

I'm working on making a mute system the system works as needed but tells them they're muted and still lets the client send a message while muted.




warning 225: unreachable code //Line 1423
Код:
public OnPlayerText(playerid, text[])
{
//===============MUTED=================================
    muted[playerid] = 1; return SendClientMessage(playerid, COLOR_ORANGE, "SERVER: You are muted");
    //===============Normal Chat===========================
    new string1[128], PName[MAX_PLAYER_NAME]; //Line 1423
	GetPlayerName(playerid, PName, sizeof(PName));
	format(string1,sizeof(string1),"{40E0D0}{%06x}%s(%d): {FFFFFF}%s",GetPlayerColor(playerid) >>> 8, PName, playerid, text);
	SendClientMessageToAll(-1, string1);
	return 0;
}
Reply


Messages In This Thread
onplayertext & mute - by MyUndiesSmell - 18.01.2018, 21:18
Re: onplayertext & mute - by DeathCore - 18.01.2018, 21:47
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 22:32
Re: onplayertext & mute - by Fratello - 18.01.2018, 22:53
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 23:33
Re: onplayertext & mute - by RogueDrifter - 18.01.2018, 23:36
Re: onplayertext & mute - by 1fret - 18.01.2018, 23:43
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 23:44
Re: onplayertext & mute - by RogueDrifter - 18.01.2018, 23:52
Re: onplayertext & mute - by MyUndiesSmell - 19.01.2018, 00:03

Forum Jump:


Users browsing this thread: 2 Guest(s)