Андрей Шестаков
Участник
- Сообщения
- 10
- Реакции
- 1
как сделать так чтоб игрок введя в чате команду !steamid показывало его стим ид.
в этом скрипте только через команду вконсоли. sm_steamid
#include <sourcemod>
public Plugin:myinfo =
{
name = "Steamid",
author = "Beelzebub",
description = "This plugin lets players see there steamid",
}
public OnPluginStart()
{
RegConsoleCmd("sm_steamid", Command_steamid, "This lets players see there steamid");
}
public Action:Command_steamid(client, argc)
{
decl String:steamid[64];
GetClientAuthString(client, steamid, sizeof(steamid));
{
PrintToChat(client, "\x07FF0000 [SteamID] \x0787CEEB Ваш SteamID \x077FFF00 %s", client, steamid);
}
return Plugin_Handled;
}
в этом скрипте только через команду вконсоли. sm_steamid
#include <sourcemod>
public Plugin:myinfo =
{
name = "Steamid",
author = "Beelzebub",
description = "This plugin lets players see there steamid",
}
public OnPluginStart()
{
RegConsoleCmd("sm_steamid", Command_steamid, "This lets players see there steamid");
}
public Action:Command_steamid(client, argc)
{
decl String:steamid[64];
GetClientAuthString(client, steamid, sizeof(steamid));
{
PrintToChat(client, "\x07FF0000 [SteamID] \x0787CEEB Ваш SteamID \x077FFF00 %s", client, steamid);
}
return Plugin_Handled;
}