18.01.2018, 23:36
scm will not return 0 lol here's what you actually need to do
see how i used return 0 afterwards to stop the message from being sent?
PHP код:
public OnPlayerText(playerid, text[])
{
if(muted[playerid] == 1)
{
SendClientMessage(playerid, COLOR_ORANGE, "SERVER: You are muted");
return 0;//see this
}
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;
}