Raised This Month: $30 Target: $400
 7% 

Steam Works Group Manager


Post New Thread Reply   
 
Thread Tools Display Modes
alphaearth
Senior Member
Join Date: Feb 2018
Location: Turkey
Old 04-18-2019 , 10:11   Re: Steam Works Group Manager
Reply With Quote #71

I want only steam group members to enter the server. I adjusted it this way. there are these errors.

I've added codes starting with this line:
public void OnClientPutInServer(int iClient)

PHP Code:
// C:\Users\User\Desktop\yazēlēm\SM+++\addons\sourcemod\scripting\SWGM.sp(99) : warning 219: local variable "iClient" shadows a variable at a preceding level 
PHP Code:
#include <steamworks>
#include <swgm>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo =
{
    
name "Steam Works Group Manager",
    
author "Someone",
    
description "Steam group membership check features for plugins",
    
version "1.9",
    
url "http://hlmod.ru | https://discord.gg/UfD3dSa"
};

Handle     g_hForward_OnLeaveCheck,         g_hForward_OnJoinCheckg_hTimer;
int         g_iGroupID,                     g_iAccountID[MAXPLAYERS+1];
Status     g_iPlayerStatus[MAXPLAYERS+1];

public 
APLRes AskPluginLoad2(Handle myselfbool latechar[] sErrorint err_max)
{
    
g_hForward_OnLeaveCheck CreateGlobalForward("SWGM_OnLeaveGroup",     ET_IgnoreParam_Cell);
    
g_hForward_OnJoinCheck     CreateGlobalForward("SWGM_OnJoinGroup",     ET_IgnoreParam_CellParam_Cell);

    
CreateNative("SWGM_InGroup",             Native_InGroup);
    
CreateNative("SWGM_InGroupOfficer",     Native_InGroupOfficer);
    
CreateNative("SWGM_GetPlayerStatus",     Native_GetPlayerStatus);
    
CreateNative("SWGM_CheckPlayer",         Native_CheckPlayer);
    
CreateNative("SWGM_IsPlayerValidated",     Native_IsPlayerValidated);

    
RegPluginLibrary("SWGM");

    return 
APLRes_Success;
}

public 
void OnPluginStart()
{
    
ConVar CVAR;

    (
CVAR CreateConVar("sm_swgm_groupid",        "4150535",    "Steam Group ID.",                        _,         true,         0.0)).AddChangeHook(OnGroupChange);
    
g_iGroupID CVAR.IntValue;
    
    (
CVAR CreateConVar("sm_swgm_timer",        "120.0",    "Interval beetwen steam group checks.",    _,         true,         0.0)).AddChangeHook(OnTimeChange);
    
g_hTimer CreateTimer(CVAR.FloatValue,         Check_Timer,                                     _,     TIMER_REPEAT        );
    
    
RegAdminCmd("sm_swgm_check",     CMD_Check,     ADMFLAG_ROOT);

    
AutoExecConfig(true"swgm""sourcemod/swgm");
}

public 
void OnGroupChange(ConVar convar, const char[] oldValue, const char[] newValue)
{
    
g_iGroupID convar.IntValue;
    
    for(
int i 1<= MaxClients; ++i)    if(IsClientInGame(i) && !IsFakeClient(i))
    {
        
SteamWorks_GetUserGroupStatusAuthID(GetSteamAccountID(i), g_iGroupID);
    }
}

public 
void OnTimeChange(ConVar convar, const char[] oldValue, const char[] newValue)
{
    if(
g_hTimerKillTimer(g_hTimer); g_hTimer null;
    
g_hTimer CreateTimer(convar.FloatValueCheck_Timer_TIMER_REPEAT);
}

public 
Action Check_Timer(Handle hTimer)
{
    
Check();
    return 
Plugin_Continue;
}

public 
void OnConfigsExecuted()
{
    if(
g_iGroupID == 0)
    {
        
LogError("[SWGM] Set yours Steam group ID. Group ID `0` is default value. Example: sm_swgm_groupid `ID`.");
    }
}

public 
Action CMD_Check(int iClientint args)
{
    
Check();
    
ReplyToCommand(iClient"[SWGM] All players have been checked.");
    return 
Plugin_Handled;
}

void Check()
{
    static 
int i;
    for (
1<= MaxClients; ++i) if(g_iPlayerStatus[i] != UNASSIGNED && g_iPlayerStatus[i] != LEAVER)
    {
        
SteamWorks_GetUserGroupStatusAuthID(g_iAccountID[i], g_iGroupID);
    }
}

public 
void OnClientPutInServer(int iClient)
{
    for (
int iClient 1iClient <= MaxClientsiClient++)
    if(
IsClientInGame(iClient))
    {
        if(
SWGM_IsPlayerValidated(iClient) && !SWGM_InGroup(iClient))
        {
            
Check();
            
KickClient(iClient"Sunucuda oynayabilmek icin steam grubumuza uye olmalisiniz.");
        }
    }
}

public 
void OnClientDisconnect(int iClient)
{
    
g_iAccountID[iClient] = 0;
    
g_iPlayerStatus[iClient] = UNASSIGNED;
}

public 
void SteamWorks_OnValidateClient(int iOwnerAuthIDint iAccountID)
{
    
SteamWorks_GetUserGroupStatusAuthID(iAccountIDg_iGroupID);
}

public 
void SteamWorks_OnClientGroupStatus(int iAccountIDint iGroupIDbool bIsMemberbool bIsOfficer)
{
    static 
int iClient;
    if(
iGroupID == g_iGroupID && (iClient GetUserFromAccountID(iAccountID)) != -1)
    {
        if(!
bIsMember && g_iPlayerStatus[iClient] > LEAVER)
        {
            
g_iPlayerStatus[iClient] = LEAVER;

            
Call_StartForward(g_hForward_OnLeaveCheck);
            
Call_PushCell(iClient);
            
Call_Finish();
        }
        else if(
bIsMember && (g_iPlayerStatus[iClient] == NO_GROUP || g_iPlayerStatus[iClient] == UNASSIGNED))
        {
            
g_iPlayerStatus[iClient] =  bIsOfficer OFFICER:MEMBER;
            
            
Call_StartForward(g_hForward_OnJoinCheck);
            
Call_PushCell(iClient);
            
Call_PushCell(bIsOfficer);
            
Call_Finish();
        }
    }
}

public 
int GetUserFromAccountID(int iAccountID)
{
    static 
int i;
    for (
1<= MaxClients; ++i) if(IsClientInGame(i) && !IsFakeClient(i))
    {
        if(
g_iAccountID[i] == 0)
        {
            
g_iPlayerStatus[i] = NO_GROUP;
            if((
g_iAccountID[i] = GetSteamAccountID(i)) == iAccountID)
            {
                return 
i;
            }
        }
        else if(
g_iAccountID[i] == iAccountID)
        {
            return 
i;
        }
    }
    return -
1;
}

public 
int Native_InGroup(Handle hPluginint iClient)
{
    return 
CheckClient((iClient GetNativeCell(1)), "InGroup") ? (g_iPlayerStatus[iClient] > LEAVER):false;
}

public 
int Native_InGroupOfficer(Handle hPluginint iClient)
{
    return 
CheckClient((iClient GetNativeCell(1)), "InGroupOfficer") ? (g_iPlayerStatus[iClient] == OFFICER):false;
}

public 
int Native_GetPlayerStatus(Handle hPluginint iClient)
{
    return 
CheckClient((iClient GetNativeCell(1)), "GetPlayerStatus"false) ? view_as<int>(g_iPlayerStatus[iClient]):-1;
}

public 
int Native_CheckPlayer(Handle hPluginint iClient)
{
    if (
CheckClient((iClient GetNativeCell(1)), "CheckPlayer"false))
    {
        
SteamWorks_GetUserGroupStatusAuthID(g_iAccountID[iClient], g_iGroupID);
    }
}

public 
int Native_IsPlayerValidated(Handle hPluginint iClient)
{
    return ((
iClient GetNativeCell(1)) > || iClient <= MaxClients) ? view_as<int>((g_iPlayerStatus[iClient] != UNASSIGNED)):
                                                                        
ThrowNativeError(SP_ERROR_NATIVE
                                                                        
"[IsPlayerValidated] Client index %i is invalid."
                                                                        
iClient);
}


bool CheckClient(int iClient, const char[] sFunctionbool bCheckValidation true)
{
    static 
int iClientError;
    static const 
char sError[][] = {    "invalid"
                                        
"not validated"
                                        
"a bot"                };

    if((
iClientError Function_GetClientError(iClientbCheckValidation)) != 3)    
    {
                                        
ThrowNativeError(SP_ERROR_NATIVE
                                        
"[%s] Client index %i is %s."
                                        
sFunctioniClient
                                        
sError[iClientError]);
    }
    return 
true;
}

int Function_GetClientError(int iClientbool bCheckValidation)
{
    if (
iClient || iClient MaxClients)                                                return 0;
    else if (
bCheckValidation && g_iPlayerStatus[iClient] == UNASSIGNED)                    return 1;
    else if (
IsFakeClient(iClient))                                                            return 2;
    return 
3;

__________________

Last edited by alphaearth; 04-18-2019 at 10:46.
alphaearth is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 04-18-2019 , 12:39   Re: Steam Works Group Manager
Reply With Quote #72

Quote:
Originally Posted by alphaearth View Post
I want only steam group members to enter the server. I adjusted it this way. there are these errors.

I've added codes starting with this line:
public void OnClientPutInServer(int iClient)

PHP Code:
// C:\Users\User\Desktop\yazēlēm\SM+++\addons\sourcemod\scripting\SWGM.sp(99) : warning 219: local variable "iClient" shadows a variable at a preceding level 
PHP Code:
#include <steamworks>
#include <swgm>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo =
{
    
name "Steam Works Group Manager",
    
author "Someone",
    
description "Steam group membership check features for plugins",
    
version "1.9",
    
url "http://hlmod.ru | https://discord.gg/UfD3dSa"
};

Handle     g_hForward_OnLeaveCheck,         g_hForward_OnJoinCheckg_hTimer;
int         g_iGroupID,                     g_iAccountID[MAXPLAYERS+1];
Status     g_iPlayerStatus[MAXPLAYERS+1];

public 
APLRes AskPluginLoad2(Handle myselfbool latechar[] sErrorint err_max)
{
    
g_hForward_OnLeaveCheck CreateGlobalForward("SWGM_OnLeaveGroup",     ET_IgnoreParam_Cell);
    
g_hForward_OnJoinCheck     CreateGlobalForward("SWGM_OnJoinGroup",     ET_IgnoreParam_CellParam_Cell);

    
CreateNative("SWGM_InGroup",             Native_InGroup);
    
CreateNative("SWGM_InGroupOfficer",     Native_InGroupOfficer);
    
CreateNative("SWGM_GetPlayerStatus",     Native_GetPlayerStatus);
    
CreateNative("SWGM_CheckPlayer",         Native_CheckPlayer);
    
CreateNative("SWGM_IsPlayerValidated",     Native_IsPlayerValidated);

    
RegPluginLibrary("SWGM");

    return 
APLRes_Success;
}

public 
void OnPluginStart()
{
    
ConVar CVAR;

    (
CVAR CreateConVar("sm_swgm_groupid",        "4150535",    "Steam Group ID.",                        _,         true,         0.0)).AddChangeHook(OnGroupChange);
    
g_iGroupID CVAR.IntValue;
    
    (
CVAR CreateConVar("sm_swgm_timer",        "120.0",    "Interval beetwen steam group checks.",    _,         true,         0.0)).AddChangeHook(OnTimeChange);
    
g_hTimer CreateTimer(CVAR.FloatValue,         Check_Timer,                                     _,     TIMER_REPEAT        );
    
    
RegAdminCmd("sm_swgm_check",     CMD_Check,     ADMFLAG_ROOT);

    
AutoExecConfig(true"swgm""sourcemod/swgm");
}

public 
void OnGroupChange(ConVar convar, const char[] oldValue, const char[] newValue)
{
    
g_iGroupID convar.IntValue;
    
    for(
int i 1<= MaxClients; ++i)    if(IsClientInGame(i) && !IsFakeClient(i))
    {
        
SteamWorks_GetUserGroupStatusAuthID(GetSteamAccountID(i), g_iGroupID);
    }
}

public 
void OnTimeChange(ConVar convar, const char[] oldValue, const char[] newValue)
{
    if(
g_hTimerKillTimer(g_hTimer); g_hTimer null;
    
g_hTimer CreateTimer(convar.FloatValueCheck_Timer_TIMER_REPEAT);
}

public 
Action Check_Timer(Handle hTimer)
{
    
Check();
    return 
Plugin_Continue;
}

public 
void OnConfigsExecuted()
{
    if(
g_iGroupID == 0)
    {
        
LogError("[SWGM] Set yours Steam group ID. Group ID `0` is default value. Example: sm_swgm_groupid `ID`.");
    }
}

public 
Action CMD_Check(int iClientint args)
{
    
Check();
    
ReplyToCommand(iClient"[SWGM] All players have been checked.");
    return 
Plugin_Handled;
}

void Check()
{
    static 
int i;
    for (
1<= MaxClients; ++i) if(g_iPlayerStatus[i] != UNASSIGNED && g_iPlayerStatus[i] != LEAVER)
    {
        
SteamWorks_GetUserGroupStatusAuthID(g_iAccountID[i], g_iGroupID);
    }
}

public 
void OnClientPutInServer(int iClient)
{
    for (
int iClient 1iClient <= MaxClientsiClient++)
    if(
IsClientInGame(iClient))
    {
        if(
SWGM_IsPlayerValidated(iClient) && !SWGM_InGroup(iClient))
        {
            
Check();
            
KickClient(iClient"Sunucuda oynayabilmek icin steam grubumuza uye olmalisiniz.");
        }
    }
}

public 
void OnClientDisconnect(int iClient)
{
    
g_iAccountID[iClient] = 0;
    
g_iPlayerStatus[iClient] = UNASSIGNED;
}

public 
void SteamWorks_OnValidateClient(int iOwnerAuthIDint iAccountID)
{
    
SteamWorks_GetUserGroupStatusAuthID(iAccountIDg_iGroupID);
}

public 
void SteamWorks_OnClientGroupStatus(int iAccountIDint iGroupIDbool bIsMemberbool bIsOfficer)
{
    static 
int iClient;
    if(
iGroupID == g_iGroupID && (iClient GetUserFromAccountID(iAccountID)) != -1)
    {
        if(!
bIsMember && g_iPlayerStatus[iClient] > LEAVER)
        {
            
g_iPlayerStatus[iClient] = LEAVER;

            
Call_StartForward(g_hForward_OnLeaveCheck);
            
Call_PushCell(iClient);
            
Call_Finish();
        }
        else if(
bIsMember && (g_iPlayerStatus[iClient] == NO_GROUP || g_iPlayerStatus[iClient] == UNASSIGNED))
        {
            
g_iPlayerStatus[iClient] =  bIsOfficer OFFICER:MEMBER;
            
            
Call_StartForward(g_hForward_OnJoinCheck);
            
Call_PushCell(iClient);
            
Call_PushCell(bIsOfficer);
            
Call_Finish();
        }
    }
}

public 
int GetUserFromAccountID(int iAccountID)
{
    static 
int i;
    for (
1<= MaxClients; ++i) if(IsClientInGame(i) && !IsFakeClient(i))
    {
        if(
g_iAccountID[i] == 0)
        {
            
g_iPlayerStatus[i] = NO_GROUP;
            if((
g_iAccountID[i] = GetSteamAccountID(i)) == iAccountID)
            {
                return 
i;
            }
        }
        else if(
g_iAccountID[i] == iAccountID)
        {
            return 
i;
        }
    }
    return -
1;
}

public 
int Native_InGroup(Handle hPluginint iClient)
{
    return 
CheckClient((iClient GetNativeCell(1)), "InGroup") ? (g_iPlayerStatus[iClient] > LEAVER):false;
}

public 
int Native_InGroupOfficer(Handle hPluginint iClient)
{
    return 
CheckClient((iClient GetNativeCell(1)), "InGroupOfficer") ? (g_iPlayerStatus[iClient] == OFFICER):false;
}

public 
int Native_GetPlayerStatus(Handle hPluginint iClient)
{
    return 
CheckClient((iClient GetNativeCell(1)), "GetPlayerStatus"false) ? view_as<int>(g_iPlayerStatus[iClient]):-1;
}

public 
int Native_CheckPlayer(Handle hPluginint iClient)
{
    if (
CheckClient((iClient GetNativeCell(1)), "CheckPlayer"false))
    {
        
SteamWorks_GetUserGroupStatusAuthID(g_iAccountID[iClient], g_iGroupID);
    }
}

public 
int Native_IsPlayerValidated(Handle hPluginint iClient)
{
    return ((
iClient GetNativeCell(1)) > || iClient <= MaxClients) ? view_as<int>((g_iPlayerStatus[iClient] != UNASSIGNED)):
                                                                        
ThrowNativeError(SP_ERROR_NATIVE
                                                                        
"[IsPlayerValidated] Client index %i is invalid."
                                                                        
iClient);
}


bool CheckClient(int iClient, const char[] sFunctionbool bCheckValidation true)
{
    static 
int iClientError;
    static const 
char sError[][] = {    "invalid"
                                        
"not validated"
                                        
"a bot"                };

    if((
iClientError Function_GetClientError(iClientbCheckValidation)) != 3)    
    {
                                        
ThrowNativeError(SP_ERROR_NATIVE
                                        
"[%s] Client index %i is %s."
                                        
sFunctioniClient
                                        
sError[iClientError]);
    }
    return 
true;
}

int Function_GetClientError(int iClientbool bCheckValidation)
{
    if (
iClient || iClient MaxClients)                                                return 0;
    else if (
bCheckValidation && g_iPlayerStatus[iClient] == UNASSIGNED)                    return 1;
    else if (
IsFakeClient(iClient))                                                            return 2;
    return 
3;

So I understand that you leave your private server only for those who are in the steam group, if this is the case, this plugin does not do this, it lets the players only use such commands that you configure only if you are in the steam group.

To deprive the server to let only players from the steam group enter the server I believe just another plugin.
paulo_crash is offline
alphaearth
Senior Member
Join Date: Feb 2018
Location: Turkey
Old 04-21-2019 , 11:14   Re: Steam Works Group Manager
Reply With Quote #73

I was able to give money and armor to the players in my STEAM group. Using this plugin.

PHP Code:
#include <sourcemod>
#include <cstrike>
#include <sdktools>
#include <SteamWorks>
#include <SWGM>

#pragma semicolon 1
#pragma newdecls required

#define MESSAGE_PREFIX "[SM]"

Handle RoundStartMoney;

int iRoundStartMoney;

public 
Plugin myinfo 
{
    
name "Round start and per kill money",
    
author "B3none, LazHoroni",
    
description "",
    
version "1.0.0",
    
url ""
};

public 
void OnPluginStart()
{
    
HookEvent("round_start"OnRoundStart);
    
HookEvent("player_death"OnPlayerDeath);
    
    
RoundStartMoney CreateConVar("sm_roundstartmoney""1000""Round start money");
}

public 
void OnMapStart()
{
    
iRoundStartMoney GetConVarInt(RoundStartMoney);
}

public 
Action OnRoundStart(Handle hEvent, const char[] Namebool dontbroadcast)
{
    if (
IsWarmup())
    {
        return;
    }
    
    if (
IsRoundBlah(GetCurrentRound()))
    {
        for (
int iClient 1iClient <= MaxClientsiClient++)
        {
            if(
IsClientInGame(iClient))
            {
                if(
SWGM_IsPlayerValidated(iClient) && !SWGM_InGroup(iClient))
                {
                    
PrintToChat(iClient"%s \x04You can win \x07+$%i \x04by joining the group."MESSAGE_PREFIXiRoundStartMoney);
                    
PrintToChat(iClient"%s \x04Click on the \x07server website button\x04 in the score table."MESSAGE_PREFIX);
                    
SetEntProp(iClientProp_Send"m_bHasHelmet"100);
                    
SetEntProp(iClientProp_Send"m_ArmorValue"100);
                }
                else
                {
                    
PrintToChat(iClient"%s \x04You won \x07+$%i \x04for joining the group."MESSAGE_PREFIXiRoundStartMoney);
                    
int money GetEntProp(iClientProp_Send"m_iAccount");
                    
SetEntProp(iClientProp_Send"m_iAccount"money iRoundStartMoney);
                    
SetEntProp(iClientProp_Send"m_bHasHelmet"100);
                    
SetEntProp(iClientProp_Send"m_ArmorValue"100);
                }
            }
        }
    }
    else
    {
        for (
int iClient 1iClient <= MaxClientsiClient++)
        {
            if(
IsClientInGame(iClient))
            {
                if(
SWGM_IsPlayerValidated(iClient) && !SWGM_InGroup(iClient))
                {
                    
PrintToChat(iClient"%s \x04You can win \x07+$%i \x04by joining the group."MESSAGE_PREFIXiRoundStartMoney);
                    
PrintToChat(iClient"%s \x04Click on the \x07server website button\x04 in the score table."MESSAGE_PREFIX);
                }
                else
                {
                    
PrintToChat(iClient"%s \x04First 3 round \x07+$%i, helmet, armor \x04prize is disabled."MESSAGE_PREFIXiRoundStartMoney);
                }
            }
        }
    }        
}

bool IsRoundBlah(int iRound)
{
    return 
iRound != && iRound != && iRound != && iRound != 15 && iRound != 16 && iRound != 17;
}

bool IsWarmup()
{
    return 
GameRules_GetProp("m_bWarmupPeriod") != 0;
}

int GetCurrentRound()
{
    return 
CS_GetTeamScore(CS_TEAM_T) + CS_GetTeamScore(CS_TEAM_CT);

__________________

Last edited by alphaearth; 04-21-2019 at 11:15. Reason: edit code
alphaearth is offline
francisb
Junior Member
Join Date: Oct 2018
Location: Finland
Old 05-21-2019 , 07:37   Re: Steam Works Group Manager
Reply With Quote #74

Is it possible to add colors to translations?

I tried adding #include <morecolors> and recompiling SWGM_Command_Listener, didn't manage to get it work, got this error:

Code:
[SM] Plugin SWGM_Command_Listener.smx failed to reload: Native "SWGM_IsPlayerValidated" was not found.
francisb is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 05-21-2019 , 15:30   Re: Steam Works Group Manager
Reply With Quote #75

Quote:
Originally Posted by francisb View Post
Is it possible to add colors to translations?

I tried adding #include <morecolors> and recompiling SWGM_Command_Listener, didn't manage to get it work, got this error:

Code:
[SM] Plugin SWGM_Command_Listener.smx failed to reload: Native "SWGM_IsPlayerValidated" was not found.
I did this in a version that I use, I just did not have time to make a request of Pull Request in GitHub author of the plugin, in any case I will be attaching here the plugin with the option of colors in the translation.

Just download the zipped file, there have the compiled plugins.

Last edited by paulo_crash; 06-03-2020 at 14:38.
paulo_crash is offline
Rafa10
Junior Member
Join Date: Jul 2019
Old 07-08-2019 , 16:48   Re: Steam Works Group Manager
Reply With Quote #76

Where i put my groupid? Can someone help me?
Rafa10 is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 07-08-2019 , 18:47   Re: Steam Works Group Manager
Reply With Quote #77

Quote:
Originally Posted by Rafa10 View Post
Where i put my groupid? Can someone help me?
I believe that's what you mean...
Quote:
Originally Posted by Hallucinogenic Troll View Post
Go to your group and click on Edit Group Profile:



Check your Group ID:

paulo_crash is offline
savage
Junior Member
Join Date: Sep 2019
Old 10-03-2019 , 16:07   Re: Steam Works Group Manager
Reply With Quote #78

11 "Sound Commands" (1.9.0.6276) by AlliedModders LLC
12 "Admin Menu" (1.9.0.6276) by AlliedModders LLC
13 "Basic Chat" (1.9.0.6276) by AlliedModders LLC
14 "Chat Processor - Simple Chat Processor Wrapper" (1.0.0) by Keith Warren (Shaders Allen)
15 "Basic Comm Control" (1.9.0.6276) by AlliedModders LLC
16 "Anti-Flood" (1.9.0.6276) by AlliedModders LLC
17 "Basic Votes" (1.9.0.6276) by AlliedModders LLC
18 "Basic Ban Commands" (1.9.0.6276) by AlliedModders LLC
19 "[Source 2013] Custom Chat Colors" (3.1.0 CP) by Dr. McKay, Fixed up by Keith Warren (Drixevel)
20 "MapChooser" (1.9.0.6276) by AlliedModders LLC
21 "[SWGM] Admin" (1.0) by Someone
22 "Advanced Noscop" (1.0.1) by Mish0UU
23 "Get5" (0.7.1) by splewis
24 "[SWGM] Command Listener" (1.1) by Someone
25 "Fun Votes" (1.9.0.6276) by AlliedModders LLC
26 "Reserved Slots" (1.9.0.6276) by AlliedModders LLC
27 "Insta-Defuse" (1.2) by Jacoblairm
28 "Map Nominations" (1.9.0.6276) by AlliedModders LLC
29 "Basic Commands" (1.9.0.6276) by AlliedModders LLC
30 "Admin Help" (1.9.0.6276) by AlliedModders LLC
31 "Player Commands" (1.9.0.6276) by AlliedModders LLC
32 "Nextmap" (1.9.0.6276) by AlliedModders LLC
33 "Basic Info Triggers" (1.9.0.6276) by AlliedModders LLC
34 "DR.API AFK MANAGER" (1.0.1) by Dr. Api
35 "RankMe" (3.0.3.Kento.31.2) by lok1, Scooby, Kento, pracc, Kxnrl, CrazyHackGUT
36 "Chat-Processor" (2.2.0) by Keith Warren (Drixevel)
37 "Weapons & Knives" (1.4.0) by kgns | oyunhost.net
38 "Test Messages" (1.0.0) by Keith Warren (Shaders Allen)





"Command_Listener"
{
"sm_gloves" {}
"sm_glove" {}
"sm_gl" {}
"sm_knifes" {}
"sm_knife" {}
"sm_ws" {}
}





ConVar CVAR;

(CVAR = CreateConVar("sm_swgm_admin_mode", "0", "Mode. 0 - Group | 1 - Flags.")).AddChangeHook(ChangeCvar_Mode);
g_bMode = CVAR.BoolValue;

char sBuffer[22];




// Steam Group ID.
// -
// Default: "XXXXXXXX"
swgm_groupid "35764318"

// Interval beetwen steam group checks.
// -
// Default: "60.0"
swgm_timer "10.0"




// This file was auto-generated by SourceMod (v1.9.0.6276)
// ConVars for plugin "SWGM_Admin.smx"


// Admin flags.
// -
// Default: "a"
sm_swgm_admin_flags "a"

// Admin group.
// -
// Default: "Steam"
sm_swgm_admin_group "Steam"

// Mode. 0 - Group | 1 - Flags.
// -
// Default: "1"
sm_swgm_admin_mode "0"











still not working....

who joined steam group they got VIP instet od commend lisener..

!knife !ws working without joining group
savage is offline
savage
Junior Member
Join Date: Sep 2019
Old 10-03-2019 , 16:29   Re: Steam Works Group Manager
Reply With Quote #79

Quote:
Originally Posted by jotaerrecs View Post
Hi!

When someone that is not in my Steam Group enters the server, he can do anything just like the one is in the group. what am i doing wrong?

command_listener.ini

"Command_Listener"
{
"sm_rs"{}
"sm_resetscore"{}
"sm_shop"{}
"sm_ws"{}
"sm_gloves"{}
"sm_knife"{}
}

swgm.cfg

// This file was auto-generated by SourceMod (v1.10.0.6372)
// ConVars for plugin "SWGM.smx"


// Steam Group ID.
// -
// Default: "XXXXXXXX"
swgm_groupid "32762487"

// Interval beetwen steam group checks.
// -
// Default: "60.0"
swgm_timer "60.0"


same issue NEED HELP

Last edited by savage; 10-03-2019 at 16:31.
savage is offline
flashing
Senior Member
Join Date: Jul 2019
Location: India
Old 11-02-2019 , 07:25   Re: Steam Works Group Manager
Reply With Quote #80

help its not working no error logs
flashing is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:55.


Powered by vBulletin®
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Theme made by Freecode