Untitled diff

Created Diff never expires
7 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
10 lines
49 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
52 lines
public void OnClientDisconnect(int client) {
#pragma semicolon 1
char g_sid[32], g_nazwa[64];


#define DEBUG
GetClientAuthId(client, AuthId_Steam2, g_sid, sizeof(g_sid));

GetClientName(client, g_nazwa, sizeof(g_nazwa));
#define PLUGIN_AUTHOR "Roberrtooo"
#define PLUGIN_VERSION "0.0.1"
PrintToChatAll("Gracz %s rozlaczyl sie z serwerem! \n Jego SID to: %s", g_nazwa, g_sid);

#include <sourcemod>

#pragma newdecls required

char g_cSteamID[64][64];

EngineVersion g_Game;

public Plugin myinfo =
{
name = "[Roberrt] Client Info on Disconnect",
author = PLUGIN_AUTHOR,
description = "",
version = PLUGIN_VERSION,
url = "roberrt.eu"
};


public void OnPluginStart()
{
g_Game = GetEngineVersion();
if (g_Game != Engine_CSGO && g_Game != Engine_CSS)
{
SetFailState("This plugin is for CSGO/CSS only.");
}
}
public void OnClientAuthorized(int client, const char[] auth)
{
if (client == 0)
{
return;
}
Format(g_cSteamID[client], 64, auth);
PrintToConsoleAll("[ CS-4Frags.PL ] Gracz %N [%s] wchodzi na serwer...", client, g_cSteamID[client]);
PrintToServer("[ CS-4Frags.PL ] Gracz %N [%s] wchodzi na serwer...", client, g_cSteamID[client]);
}
}
public void OnClientDisconnect(int client)
{
if (client == 0)
{
return;
}
PrintToConsoleAll("[ CS-4Frags.PL ] Gracz %N [%s] opuścił serwer...", client, g_cSteamID[client]);
PrintToServer("[ CS-4Frags.PL ] Gracz %N [%s] opuścił serwer...", client, g_cSteamID[client]);
Format(g_cSteamID[client], 64, " ");
}