ConnectAnnounce: tiny improvements to the messages

This commit is contained in:
dogan 2020-10-31 14:21:05 +01:00
parent e354874fb8
commit d2d41e46c5

View File

@ -30,7 +30,7 @@ public Plugin myinfo = {
name = "Connect Announce",
author = "Neon + Botox + Dogan",
description = "Connect Announcer with special features for VIPS",
version = "3.1",
version = "3.2",
url = ""
}
@ -211,13 +211,13 @@ public Action Command_JoinMsg(int client, int args)
KvGetString(g_hCustomMessageFile, "message", sCustomMessage, sizeof(sCustomMessage), "");
if (StrEqual(sCustomMessage, "reset"))
{
CPrintToChat(client, "[ConnectAnnounce] No Join Message set! Use sm_joinmsg <your message here> to set one.");
CPrintToChat(client, "{cyan}[ConnectAnnounce] {white}No Join Message set! Use {red}sm_joinmsg <your message here> {white}to set one.");
return Plugin_Handled;
}
CPrintToChat(client, "[ConnectAnnounce] Your Join Message is: %s", sCustomMessage);
CPrintToChat(client, "{cyan}[ConnectAnnounce] {white}Your Join Message is: %s", sCustomMessage);
}
else
CPrintToChat(client, "[ConnectAnnounce] No Join Message set! Use sm_joinmsg <your message here> to set one.");
CPrintToChat(client, "{cyan}[ConnectAnnounce] {white}No Join Message set! Use {red}sm_joinmsg <your message here> {white}to set one.");
}
else
{
@ -227,7 +227,7 @@ public Action Command_JoinMsg(int client, int args)
if(iLength > MSGLENGTH)
{
ReplyToCommand(client, "[ConnectAnnounce] Maximum message length is %d characters!", MSGLENGTH);
CReplyToCommand(client, "{cyan}[ConnectAnnounce] {white}Maximum message length is {red}%d {white}characters!", MSGLENGTH);
return Plugin_Handled;
}
@ -243,7 +243,7 @@ public Action Command_JoinMsg(int client, int args)
KvRewind(g_hCustomMessageFile);
KeyValuesToFile(g_hCustomMessageFile, g_sCustomMessageFile);
CPrintToChat(client, "[ConnectAnnounce] Your Join Message is: %s", sArg);
CPrintToChat(client, "{cyan}[ConnectAnnounce] {white}Your Join Message is: %s", sArg);
}
KvRewind(g_hCustomMessageFile);
@ -283,7 +283,7 @@ public Action Command_ResetJoinMsg(int client, int args)
KeyValuesToFile(g_hCustomMessageFile, g_sCustomMessageFile);
CPrintToChat(client, "[ConnectAnnounce] Your Join Message got reset.");
CPrintToChat(client, "{cyan}[ConnectAnnounce] {white}Your Join Message got reset.");
return Plugin_Handled;
}