forked from UNLOZE/sm-plugins
batch remove trailing spaces and convert windows \r\n line endings to linux \n
i don't want to have to do this again, fix your shitty code editors @commiters !!!
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <sourcemod>
|
||||
#pragma semicolon 1
|
||||
|
||||
public Plugin:myinfo =
|
||||
public Plugin:myinfo =
|
||||
{
|
||||
name = "Players count in hostname",
|
||||
author = "D1maxa",
|
||||
@@ -18,7 +18,7 @@ new Handle:formatted_hostname = INVALID_HANDLE;
|
||||
public OnPluginStart()
|
||||
{
|
||||
hostname = FindConVar("hostname");
|
||||
sv_visiblemaxplayers = FindConVar("sv_visiblemaxplayers");
|
||||
sv_visiblemaxplayers = FindConVar("sv_visiblemaxplayers");
|
||||
formatted_hostname=CreateConVar("sm_formatted_hostname", "My Server %d/%d", "Formatted string for dynamic hostname",FCVAR_PLUGIN);
|
||||
}
|
||||
|
||||
@@ -26,12 +26,12 @@ public OnMapStart()
|
||||
{
|
||||
g_NumClients=0;
|
||||
}
|
||||
|
||||
|
||||
public OnConfigsExecuted()
|
||||
{
|
||||
SetNumberOfPlayersInHostname();
|
||||
}
|
||||
|
||||
|
||||
public OnClientConnected(client)
|
||||
{
|
||||
if(!IsFakeClient(client))
|
||||
@@ -44,7 +44,7 @@ public OnClientConnected(client)
|
||||
public OnClientDisconnect(client)
|
||||
{
|
||||
if(!IsFakeClient(client))
|
||||
{
|
||||
{
|
||||
g_NumClients--;
|
||||
SetNumberOfPlayersInHostname();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user