not displaying on connect anymore, changed my mind
This commit is contained in:
parent
02a990a29f
commit
8ca6ecae97
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
Database g_hDatabase;
|
Database g_hDatabase;
|
||||||
char g_cTimeRecords[18][256];
|
char g_cTimeRecords[18][256];
|
||||||
StringMap g_SteamIDShown;
|
|
||||||
|
|
||||||
public Plugin myinfo =
|
public Plugin myinfo =
|
||||||
{
|
{
|
||||||
@ -18,7 +17,6 @@ public Plugin myinfo =
|
|||||||
|
|
||||||
public void OnPluginStart()
|
public void OnPluginStart()
|
||||||
{
|
{
|
||||||
g_SteamIDShown = new StringMap();
|
|
||||||
if (!g_hDatabase)
|
if (!g_hDatabase)
|
||||||
{
|
{
|
||||||
Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats");
|
Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats");
|
||||||
@ -189,21 +187,3 @@ public int MenuHandler1(Menu menu, MenuAction action, int param1, int param2)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnClientPostAdminCheck(int client)
|
|
||||||
{
|
|
||||||
if (StrEqual(g_cTimeRecords[0], ""))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
char steamId[64];
|
|
||||||
GetClientAuthId(client, AuthId_Steam2, steamId, sizeof(steamId));
|
|
||||||
bool nothing;
|
|
||||||
if (g_SteamIDShown.GetValue(steamId, nothing))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Command_topactivity(client, 0);
|
|
||||||
g_SteamIDShown.SetValue(steamId, 1);
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user