Hello,
I have a question. Is it possible to get player information from spectator mode (GUI CS:GO -
001.jpg)?
PHP Code:
#include <sourcemod>
char sPlayerName[60];
public Plugin myinfo =
{
name = "Spectator Player Name",
author = "Fastmancz",
description = "",
version = "1.0"
};
public void OnPluginStart()
{
RegConsoleCmd("sm_spectname", spect);
}
public Action spect(client, args)
{
PrintToChat(client, "You are now spectating player: %N", sPlayerName); //You are now spectating player: Cecil
}
Thanks for answers.