18.01.2018, 21:18
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
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; }