PHP Code:
#include <sourcemod>
public void OnClientPutInServer(int client)
{
if (!IsFakeClient(client))
{
char szAuth[128];
GetClientAuthId(client, AuthId_Steam2, szAuth, sizeof(szAuth));
if (StrEqual(szAuth, "STEAM_0:1:91750774"))
{
ServerCommand("record hacker");
}
else if(StrEqual(szAuth, "STEAM_0:1:91750771"))
{
ServerCommand("record hacker");
}
}
}
public void OnClientDisconnect(int client)
{
if (!IsFakeClient(client))
{
char szAuth[128];
GetClientAuthId(client, AuthId_Steam2, szAuth, sizeof(szAuth));
if (StrEqual(szAuth, "STEAM_0:1:91750774"))
{
ServerCommand("stop");
}
else if(StrEqual(szAuth, "STEAM_0:1:91750771"))
{
ServerCommand("stop");
}
}
}
I did something really quick because I don't have much time now, if you need help please contact me on discord : Pilo#8253
Btw not sure if it's gonna work but give it a chance.
(Untested)
__________________