diff --git a/custom-chatcolors/scripting/custom-chatcolors.sp b/custom-chatcolors/scripting/custom-chatcolors.sp index a02fa63..5335d52 100644 --- a/custom-chatcolors/scripting/custom-chatcolors.sp +++ b/custom-chatcolors/scripting/custom-chatcolors.sp @@ -101,7 +101,7 @@ public void OnPluginStart() if (SayText2 == INVALID_MESSAGE_ID) { - SetFailState("This game doesn't support SayText2 user messages."); + SetFailState("This game doesnt support SayText2 user messages."); } HookUserMessage(SayText2, Hook_UserMessage, true); @@ -333,11 +333,11 @@ bool ForceColor(int client, char Key[64]) SetColor(SID, Key, sCol, -1, true); if (!strcmp(Key, "namecolor")) - CPrintToChat(client, "{green}[{red}C{green}C{blue}C{green}-ADMIN]{default} Successfully set {green}%N's{default} name color to: \x07%s#%s{default}!", iTarget, sCol[1], sCol[1]); + CPrintToChat(client, "{green}[{red}C{green}C{blue}C{green}-ADMIN]{default} Successfully set {green}%Ns{default} name color to: \x07%s#%s{default}!", iTarget, sCol[1], sCol[1]); else if (!strcmp(Key, "tagcolor")) - CPrintToChat(client, "{green}[{red}C{green}C{blue}C{green}-ADMIN]{default} Successfully set {green}%N's{default} tag color to: \x07%s#%s{default}!", iTarget, sCol[1], sCol[1]); + CPrintToChat(client, "{green}[{red}C{green}C{blue}C{green}-ADMIN]{default} Successfully set {green}%Ns{default} tag color to: \x07%s#%s{default}!", iTarget, sCol[1], sCol[1]); else - CPrintToChat(client, "{green}[{red}C{green}C{blue}C{green}-ADMIN]{default} Successfully set {green}%N's{default} text color to: \x07%s#%s{default}!", iTarget, sCol[1], sCol[1]); + CPrintToChat(client, "{green}[{red}C{green}C{blue}C{green}-ADMIN]{default} Successfully set {green}%Ns{default} text color to: \x07%s#%s{default}!", iTarget, sCol[1], sCol[1]); } else { @@ -2543,7 +2543,7 @@ public void OnClientPostAdminCheck(int client) Call_Finish(); } -public Action Hook_UserMessage(UserMsg msg_id, Handle bf, const players[], int playersNum, bool reliable, bool init) +public Action Hook_UserMessage(UserMsg msg_id, Handle bf, const int[] players, int playersNum, bool reliable, bool init) { char sAuthorTag[64]; g_msgAuthor = BfReadByte(bf); @@ -2718,7 +2718,7 @@ public Action Event_PlayerSay(Handle event, const char[] name, bool dontBroadcas { if (IsClientInGame(client) && GetClientTeam(client) == team) { - if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] && MessageForward(client, g_msgAuthor, g_msgText)) + if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] /*&& MessageForward(client, g_msgAuthor, g_msgText)*/ ) players[playersNum++] = client; } } @@ -2729,7 +2729,7 @@ public Action Event_PlayerSay(Handle event, const char[] name, bool dontBroadcas { if (IsClientInGame(client)) { - if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] && MessageForward(client, g_msgAuthor, g_msgText)) + if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] /* && MessageForward(client, g_msgAuthor, g_msgText)*/ ) players[playersNum++] = client; } } @@ -3121,4 +3121,4 @@ public int Native_UpdateIgnoredArray(Handle plugin, int numParams) GetNativeArray(1, g_Ignored, sizeof(g_Ignored)); return 1; -} \ No newline at end of file +}