Иконка ресурса

Денис навныко

Участник
Сообщения
113
Реакции
3

Вложения

  • steamid.sp
    834 байт · Просмотры: 1

Palonez

бб братки
Сообщения
3,035
Реакции
1,837
Сообщения автоматически склеены:


может тут 1 надо было удалить
#include <colors> этот удолить
#include <morecolors>
Morecolors оставь

C++:
#include <sourcemod>
#include <morecolors>

public void OnPluginStart()
{
    RegConsoleCmd("sm_sid", command_steamid);   
    RegConsoleCmd("sm_uid", command_uid);   
    AutoExecConfig(true,"steamid");
}
public Action:command_steamid(client, args)
{
    decl String:auth[32];
    GetClientAuthId(client,AuthId_Steam2,auth,sizeof(auth));
    CPrintToChat(client, "{green}Ваш SteamID: {white}%s", auth);   
}
public Action:command_uid(client, args)
{
    decl String:auth2[32];
    GetClientAuthId(client,AuthId_Steam3,auth2,sizeof(auth2));
    CPrintToChat(client, "{green}Ваш UID: {white}%s", auth2);   
}
 

Денис навныко

Участник
Сообщения
113
Реакции
3
Morecolors оставь

C++:
#include <sourcemod>
#include <morecolors>

public void OnPluginStart()
{
    RegConsoleCmd("sm_sid", command_steamid); 
    RegConsoleCmd("sm_uid", command_uid); 
    AutoExecConfig(true,"steamid");
}
public Action:command_steamid(client, args)
{
    decl String:auth[32];
    GetClientAuthId(client,AuthId_Steam2,auth,sizeof(auth));
    CPrintToChat(client, "{green}Ваш SteamID: {white}%s", auth); 
}
public Action:command_uid(client, args)
{
    decl String:auth2[32];
    GetClientAuthId(client,AuthId_Steam3,auth2,sizeof(auth2));
    CPrintToChat(client, "{green}Ваш UID: {white}%s", auth2); 
}
странно все скапировал как ты кинул вставил всеравно так ж не красит плагин кампилировал
Сообщения автоматически склеены:

А как в этом ж плагине именно userid вывести ?
 
Последнее редактирование:

Похожие темы

Сверху Снизу