PlaytimeStats: change sm_playtime reply

chat --> msay
This commit is contained in:
Dogan 2019-10-05 18:04:17 +02:00
parent 22bec0735e
commit 997f77cdbd

View File

@ -1,7 +1,6 @@
#pragma semicolon 1
#include <sourcemod>
#include <multicolors>
Database g_hDatabase;
@ -12,7 +11,7 @@ public Plugin myinfo =
name = "PlaytimeStats",
author = "Dogan",
description = "Retreives total playtime on multiple servers for clients",
version = "1.0.0",
version = "1.1.0",
url = ""
}
@ -134,7 +133,22 @@ public void SQL_OnQueryCompletedTime(Database db, DBResultSet results, const cha
else
Format(sTime, sizeof(sTime), "%d Seconds", iSeconds);
CPrintToChat(client, "{cyan}[UNLOZE Time] {white}You have played %s on UNLOZE Servers so far! {lightgreen}(data collected since Octobre 2019)", sTime);
char sTitle[64];
Format(sTitle, sizeof(sTitle), "[UNLOZE Playtime] Player %N:", client);
Panel mSayPanel = new Panel(GetMenuStyleHandle(MenuStyle_Radio));
mSayPanel.SetTitle(sTitle);
mSayPanel.DrawItem("", ITEMDRAW_SPACER);
mSayPanel.DrawText(sTime);
mSayPanel.DrawItem("", ITEMDRAW_SPACER);
mSayPanel.DrawText("(Data collected since Octobre 2019)");
mSayPanel.DrawItem("", ITEMDRAW_SPACER);
mSayPanel.DrawItem("1. Got it!", ITEMDRAW_RAWLINE);
mSayPanel.SetKeys(1023);
mSayPanel.Send(client, Handler_Menu, 0);
delete mSayPanel;
}
public void SQL_OnQueryCompletedTopTime(Database db, DBResultSet results, const char[] error, int iSerial)
@ -154,7 +168,7 @@ public void SQL_OnQueryCompletedTopTime(Database db, DBResultSet results, const
char sBuffer[12][128];
Panel mSayPanel = new Panel(GetMenuStyleHandle(MenuStyle_Radio));
mSayPanel.SetTitle("[UNLOZE Time] Record Holders:");
mSayPanel.SetTitle("[UNLOZE Playtime] Record Holders:");
mSayPanel.DrawItem("", ITEMDRAW_SPACER);
for(int i = 1; i <= 12; i++)