AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Steam Works Group Manager (https://forums.alliedmods.net/showthread.php?t=300505)

Russian85 08-19-2017 11:30

Steam Works Group Manager
 
1 Attachment(s)
Description:

This plugin provides additional features for other plugin. Working as core.
It can check player is in steam group.

Commands:
  • swgm_check — force check all connected players.
  • swgm_list— list of players with group info.

Cvars:
  • swgm_groupid — identifier of your steam group.
  • swgm_timer — interval beetwen checks.

Requirements:

Sourcemod 1.8+
SteamWorks

Instalation:

Put files from archive into your Sourcemod folder.

Open group administration panel and copy identifier, then set it in swgm_groupid. (Don't forget edit cfg/sourcemod/swgm.cfg)

GitHub: SWGM

Archive contains these modules:
  1. Command Listener - block commands SM (some client side commands as kill may work).
  2. Admin - give specific flags or group.

Wacci 08-20-2017 06:43

Re: Steam Works Group Manager
 
Error while compiling.

Code:

//// SWGM.sp
//
// D:\csgo\scripting\SWGM.sp(165) : error 180: function return type differs from prototype. expected 'int', but got 'void'
//
// 1 Error.
//
// Compilation Time: 0,25 sec
// ----------------------------------------

Press enter to exit ...


Russian85 08-20-2017 10:02

Re: Steam Works Group Manager
 
1 Attachment(s)
Quote:

Originally Posted by Wacci (Post 2543028)
Error while compiling.

Code:

//// SWGM.sp
//
// D:\csgo\scripting\SWGM.sp(165) : error 180: function return type differs from prototype. expected 'int', but got 'void'
//
// 1 Error.
//
// Compilation Time: 0,25 sec
// ----------------------------------------

Press enter to exit ...


Try:

Hallucinogenic Troll 08-20-2017 11:32

Re: Steam Works Group Manager
 
1 error log found in my test server (with bots).

Code:

L 08/20/2017 - 16:30:59: [SM] Exception reported: iClient index 2 is a bot
L 08/20/2017 - 16:30:59: [SM] Blaming: SWGM.smx
L 08/20/2017 - 16:30:59: [SM] Call stack trace:
L 08/20/2017 - 16:30:59: [SM]  [0] ThrowNativeError
L 08/20/2017 - 16:30:59: [SM]  [1] Line 212, C:\csgo\1.7\addons\sourcemod\scripting\1.8\SWGM.sp::Native_InGroup
L 08/20/2017 - 16:30:59: [SM]  [3] SWGM_InGroup
L 08/20/2017 - 16:30:59: [SM]  [4] Line 33, D:\CS Files\Compiler\swgm_groupsteamwarning.sp::Event_PlayerTeam
L 08/20/2017 - 16:31:12: Error log file session closed.


Russian85 08-20-2017 12:06

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Hallucinogenic Troll (Post 2543082)
1 error log found in my test server (with bots).

Code:

L 08/20/2017 - 16:30:59: [SM] Exception reported: iClient index 2 is a bot
L 08/20/2017 - 16:30:59: [SM] Blaming: SWGM.smx
L 08/20/2017 - 16:30:59: [SM] Call stack trace:
L 08/20/2017 - 16:30:59: [SM]  [0] ThrowNativeError
L 08/20/2017 - 16:30:59: [SM]  [1] Line 212, C:\csgo\1.7\addons\sourcemod\scripting\1.8\SWGM.sp::Native_InGroup
L 08/20/2017 - 16:30:59: [SM]  [3] SWGM_InGroup
L 08/20/2017 - 16:30:59: [SM]  [4] Line 33, D:\CS Files\Compiler\swgm_groupsteamwarning.sp::Event_PlayerTeam
L 08/20/2017 - 16:31:12: Error log file session closed.


Use IsFakeClient for check.

Cripix 08-20-2017 13:33

Re: Steam Works Group Manager
 
1 Attachment(s)
Hi !

I tried to use the Command Listener plugin but it does not work though I followed the installation

Code:

"Command_Listener"
{
        "sm_gloves" {}
        "sm_glove" {}
        "sm_gl" {}
}

Code:

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


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

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

But every time I make the command it tells me that I am not in the group but I am there.

Can you help me or fix it?

PS:Add an s to the translate folder and French Translate ! :bacon!::bacon!:

Hallucinogenic Troll 08-20-2017 13:42

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Cripix (Post 2543110)
Hi !

I tried to use the Command Listener plugin but it does not work though I followed the installation

Code:

"Command_Listener"
{
        "sm_gloves" {}
        "sm_glove" {}
        "sm_gl" {}
}

Code:

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


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

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

But every time I make the command it tells me that I am not in the group but I am there.

Can you help me or fix it?

PS:Add an s to the translate folder and French Translate ! :bacon!::bacon!:

I believe you set a ClanID64, instead of a ClanID32.

I tested with my group and it was working very good:

Go to your group and click on Edit Group Profile:

http://i.imgur.com/oxBQHiB.png

Check your Group ID:

http://i.imgur.com/jBDQOcj.png

Cripix 08-20-2017 15:27

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Hallucinogenic Troll (Post 2543113)
I believe you set a ClanID64, instead of a ClanID32.

I tested with my group and it was working very good:

Go to your group and click on Edit Group Profile:

http://i.imgur.com/oxBQHiB.png

Check your Group ID:

http://i.imgur.com/jBDQOcj.png

Thanks Bro !

It's working now!

Russian85 08-20-2017 15:42

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Cripix (Post 2543110)
PS:Add an s to the translate folder and French Translate ! :bacon!::bacon!:

Thank you for translation!

Added new module - Admin Flags/Group.

WmakiWmak 08-25-2017 09:15

Re: Steam Works Group Manager
 
Wow! so cool idea, nice release

Obyboby 09-19-2017 00:39

Re: Steam Works Group Manager
 
Is it possible to give group members an in-game bonus at the beginning of each round?
I'm currently using the plugin Tag benefits to give $150 in game at each round, to whoever is using my group's tag.
Thought it would help to just award the bonus if the player is inside my group, regardless of the tag.

Russian85 09-19-2017 08:03

Re: Steam Works Group Manager
 
2 Attachment(s)
Quote:

Originally Posted by Obyboby (Post 2549604)
Is it possible to give group members an in-game bonus at the beginning of each round?
I'm currently using the plugin Tag benefits to give $150 in game at each round, to whoever is using my group's tag.
Thought it would help to just award the bonus if the player is inside my group, regardless of the tag.

Yes. Something like this.

Use "sm_swgm_bonus_money" to set amount.

Ultralord 09-19-2017 08:35

Re: Steam Works Group Manager
 
thanks for this is possible to do with sourcebans group or something? because i cant get it work with admin_group.cfg or sourcebans group..

thanks.

Russian85 09-19-2017 09:07

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Ultralord (Post 2549671)
thanks for this is possible to do with sourcebans group or something? because i cant get it work with admin_group.cfg or sourcebans group..

thanks.

I don't understand your problem.

Did you mean "Admin" module ?

Obyboby 09-19-2017 10:28

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Russian85 (Post 2549662)
Yes. Something like this.

Use "sm_swgm_bonus_money" to set amount.

Is this an update, or a separate, plugin, or an add-on to the main plugin?

Russian85 09-19-2017 10:51

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Obyboby (Post 2549696)
Is this an update, or a separate, plugin, or an add-on to the main plugin?

Add-on/Module.

Obyboby 09-19-2017 10:53

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Russian85 (Post 2549701)
Add-on/Module.

Thanks!
I'll try it in a minute.
One more thing: if possible, it would be nice to display a message if the user is not in the steam group, so:

- Plugin checks group subscription
- If positive: give bonus + show message (you got [insert bonus here] for being in our steam group!)
- If negative: join our steam group to get an in-game bonus!


:)

EDIT: Should I leave the plugin here?

/csgo/addons/sourcemod/plugins/swgm

Perhaps it doesn't really matter..

EDIT2:

Ok so I put it in /csgo/addons/sourcemod/plugins/swgm and it's running now.

Some suggestions:

- Display messages like I mentioned above
- Have a CFG to set different awards
- Skip rounds (warmup, first round on each side)

Russian85 09-19-2017 11:26

Re: Steam Works Group Manager
 
2 Attachment(s)
Quote:

Originally Posted by Obyboby (Post 2549702)
Thanks!
I'll try it in a minute.
One more thing: if possible, it would be nice to display a message if the user is not in the steam group, so:

- Plugin checks group subscription
- If positive: give bonus + show message (you got [insert bonus here] for being in our steam group!)
- If negative: join our steam group to get an in-game bonus!


:)

EDIT: Should I leave the plugin here?

/csgo/addons/sourcemod/plugins/swgm

Perhaps it doesn't really matter..

EDIT2:

Ok so I put it in /csgo/addons/sourcemod/plugins/swgm and it's running now.

Some suggestions:

- Display messages like I mentioned above
- Have a CFG to set different awards
- Skip rounds (warmup, first round on each side)

Added messages and round skip.

sm_swgm_change_side_round - set second pistol round.

Quote:

Originally Posted by Obyboby (Post 2549702)
- Have a CFG to set different awards

Not understood.

Obyboby 09-19-2017 11:30

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Russian85 (Post 2549709)
Added messages and round skip.

sm_swgm_change_side_round - set second pistol round.


Not understood.

I mean, you can choose to give money, give extra health, give free armor...Idk, just an idea.
I will only be using money as an award personally, but someone else might have better ideas. :)

Russian85 09-19-2017 11:37

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Obyboby (Post 2549711)
I mean, you can choose to give money, give extra health, give free armor...Idk, just an idea.
I will only be using money as an award personally, but someone else might have better ideas. :)

In this case I have SWGM VIP. Gives VIP to player if He participating in Steam group.
For VIP Core by R1KO, that has many modules.

Obyboby 09-19-2017 11:42

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Russian85 (Post 2549715)
In this case I have SWGM VIP. Gives VIP to player if He participating in Steam group.
For VIP Core by R1KO, that has many modules.

Ok, gotcha. THanks for your work so far.

PHP Code:

"sm_swgm_bonus_money" "1.000000" def"150" min0.000000 max1.000000    Bonus money for Steam group users

Is this normal?

I've added sm_swgm_bonus_money 150 into my server.cfg but there seems to be a bug.
It says default 150 but the min and max values available are 0 and 1.

EDIT: ok I realized it's a bit pointless to add the cvar in my CFG since the default is already the desired amount (150) but still wanted to point out this "bug"

Russian85 09-19-2017 11:50

Re: Steam Works Group Manager
 
2 Attachment(s)
Quote:

Originally Posted by Obyboby (Post 2549718)
Ok, gotcha. THanks for your work so far.

PHP Code:

"sm_swgm_bonus_money" "1.000000" def"150" min0.000000 max1.000000    Bonus money for Steam group users

Is this normal?

I've added sm_swgm_bonus_money 150 into my server.cfg but there seems to be a bug.
It says default 150 but the min and max values available are 0 and 1.

EDIT: ok I realized it's a bit pointless to add the cvar in my CFG since the default is already the desired amount (150) but still wanted to point out this "bug"

Fixed.

Obyboby 09-19-2017 11:57

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Russian85 (Post 2549720)
Fixed.

Thanks dude!!

One question:

How can I add a phrases file for translations, but still be sure that the bonus is read from your plugin?

PHP Code:

PrintToChat(iClient"[SWGM] You got $%i bonus for participating in our Steam group."g_iBonus); 

I mean this phrase here.

If I move it to the phrases file, will the plugin still be able to read the cash bonus "g_iBonus"?
Hopefully I made myself clear, sorry for the terrible explanation :/


EDIT: here's what I'm trying to do. This would be my phrases file:

PHP Code:

"Phrases"
{
"mex_1"
{
"en" "[SWGM] You got {Green}$%i bonus {Default}for participating in our Steam group, thank you!"
"it" "[SWGM] Hai ricevuto {Green}$%i {Default}di bonus  di bonus per essere nel nostro gruppo Steam, grazie!"
}
"mex_2"
{
"en" "[SWGM] Join our Steam group for an in-game BONUS! Type {Green}!group {Default}to join now"
"it" "[SWGM] Usa la tag {Green}nudonudo{Default} per un BONUS in-game! Scrivi {Green}!group per unirti ora"
}


Would the "%i" be able to read from the plugin and display the correct bonus amount in game?
Yes I did add

PHP Code:

#include <multicolors> 


Russian85 09-19-2017 12:33

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Obyboby (Post 2549723)
Thanks dude!!

One question:

How can I add a phrases file for translations, but still be sure that the bonus is read from your plugin?

PHP Code:

PrintToChat(iClient"[SWGM] You got $%i bonus for participating in our Steam group."g_iBonus); 

I mean this phrase here.

If I move it to the phrases file, will the plugin still be able to read the cash bonus "g_iBonus"?
Hopefully I made myself clear, sorry for the terrible explanation :/


EDIT: here's what I'm trying to do. This would be my phrases file:

PHP Code:

"Phrases"
{
"mex_1"
{
"en" "[SWGM] You got {Green}$%i bonus {Default}for participating in our Steam group, thank you!"
"it" "[SWGM] Hai ricevuto {Green}$%i {Default}di bonus  di bonus per essere nel nostro gruppo Steam, grazie!"
}
"mex_2"
{
"en" "[SWGM] Join our Steam group for an in-game BONUS! Type {Green}!group {Default}to join now"
"it" "[SWGM] Usa la tag {Green}nudonudo{Default} per un BONUS in-game! Scrivi {Green}!group per unirti ora"
}


Would the "%i" be able to read from the plugin and display the correct bonus amount in game?
Yes I did add

PHP Code:

#include <multicolors> 


PHP Code:

"Phrases"
{
    
"mex_1"
    
{
        
"#format"        "{1:i}"
        "en" "[SWGM] You got {Green}
${1} bonus {Default}for participating in our Steam group, thank you!"
        "it" "[SWGM] Hai ricevuto {Green}
${1} {Default}di bonus  di bonus per essere nel nostro gruppo Steam, grazie!"
    
}
    
"mex_2"
    
{
        
"en" "[SWGM] Join our Steam group for an in-game BONUS! Type {Green}!group {Default}to join now"
        "it" "[SWGM] Usa la tag {Green}nudonudo{Default} per un BONUS in-game! Scrivi {Green}!group per unirti ora"
    
}



Obyboby 09-19-2017 12:50

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Russian85 (Post 2549738)
PHP Code:

"Phrases"
{
    
"mex_1"
    
{
        
"#format"        "{1:i}"
        "en" "[SWGM] You got {Green}
${1} bonus {Default}for participating in our Steam group, thank you!"
        "it" "[SWGM] Hai ricevuto {Green}
${1} {Default}di bonus  di bonus per essere nel nostro gruppo Steam, grazie!"
    
}
    
"mex_2"
    
{
        
"en" "[SWGM] Join our Steam group for an in-game BONUS! Type {Green}!group {Default}to join now"
        "it" "[SWGM] Usa la tag {Green}nudonudo{Default} per un BONUS in-game! Scrivi {Green}!group per unirti ora"
    
}



Thanks!!

I'm afraid I need a server restart now, as it's not applying my changes :p will report back if it works


EDIT:

I've done something wrong because the plugin is not showing anything in chat now.

PHP Code:

#include <sdktools_gamerules>
#include <cstrike>
#include <swgm>
#include <multicolors>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo 
{
    
name "[SWGM] Bonus Money",
    
author "Someone",
    
version "1.2",
    
url "http://hlmod.ru/"
};

int g_iBonusg_iFirst;

public 
void OnPluginStart()
{
    
LoadTranslations("ez_swgm_bonus.phrases.txt"); 
    
//HookEvent("player_spawn", Event_PlayerSpawn);
    
    
HookEvent("round_start"Event_RoundStart);
    
    
ConVar CVAR;
    (
CVAR    CreateConVar("sm_swgm_bonus_money""150""Bonus money for Steam group users."_true0.0)).AddChangeHook(ChangeCvar_Bonus);
    
g_iBonus CVAR.IntValue;
    
    (
CVAR    CreateConVar("sm_swgm_change_side_round""15""Ignore this round."_true0.0)).AddChangeHook(ChangeCvar_Round);
    
g_iFirst CVAR.IntValue;
}

public 
void ChangeCvar_Bonus(ConVar convar, const char[] oldValue, const char[] newValue)
{
    
g_iBonus convar.IntValue;
}

public 
void ChangeCvar_Round(ConVar convar, const char[] oldValue, const char[] newValue)
{
    
g_iFirst convar.IntValue;
}

/*
public void Event_PlayerSpawn(Event hEvent, const char[] sName, bool bDontBoradcast)
{
    int iScore;
    if(g_iBonus > 0 && GameRules_GetProp("m_bWarmupPeriod") == 0 && (iScore = CS_GetTeamScore(3) + CS_GetTeamScore(2)) != 1 && iScore != g_iFirst)    RequestFrame(FrameSpawn, GetClientOfUserId(hEvent.GetInt("userid")));
}
*/

public void Event_RoundStart(Event hEvent, const char[] sNamebool bDontBoradcast)
{
    
int iScore;
    if(
g_iBonus && GameRules_GetProp("m_bWarmupPeriod") == && (iScore CS_GetTeamScore(3) + CS_GetTeamScore(2)) != && iScore != g_iFirst)
    {
        
//int iScore = CS_GetTeamScore(3) + CS_GetTeamScore(2);
        
for(int i 1<= MaxClientsi++)    if(IsClientInGame(i) && !IsFakeClient(i))
        {
            
RequestFrame(FrameSpawni);
        }
    }
}

void FrameSpawn(int iClient)
{
    if(
SWGM_InGroup(iClient))
    {
        
SetEntProp(iClientProp_Send"m_iAccount"GetEntProp(iClientProp_Send"m_iAccount") + g_iBonus);
        
CPrintToChat(iClient"%t""mex_1");
        
//PrintToChat(iClient, "[SWGM] You got $%i bonus for participating in our Steam group.", g_iBonus);
    
}
    else 
CPrintToChat(iClient"%t""mex_2");
    
//else PrintToChat(iClient, "[SWGM] You can got $%i bonus for participating in our Steam group.", g_iBonus);



Russian85 09-19-2017 14:01

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Obyboby (Post 2549742)
Thanks!!

I'm afraid I need a server restart now, as it's not applying my changes :p will report back if it works


EDIT:

I've done something wrong because the plugin is not showing anything in chat now.

PHP Code:

#include <sdktools_gamerules>
#include <cstrike>
#include <swgm>
#include <multicolors>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo 
{
    
name "[SWGM] Bonus Money",
    
author "Someone",
    
version "1.2",
    
url "http://hlmod.ru/"
};

int g_iBonusg_iFirst;

public 
void OnPluginStart()
{
    
LoadTranslations("ez_swgm_bonus.phrases.txt"); 
    
//HookEvent("player_spawn", Event_PlayerSpawn);
    
    
HookEvent("round_start"Event_RoundStart);
    
    
ConVar CVAR;
    (
CVAR    CreateConVar("sm_swgm_bonus_money""150""Bonus money for Steam group users."_true0.0)).AddChangeHook(ChangeCvar_Bonus);
    
g_iBonus CVAR.IntValue;
    
    (
CVAR    CreateConVar("sm_swgm_change_side_round""15""Ignore this round."_true0.0)).AddChangeHook(ChangeCvar_Round);
    
g_iFirst CVAR.IntValue;
}

public 
void ChangeCvar_Bonus(ConVar convar, const char[] oldValue, const char[] newValue)
{
    
g_iBonus convar.IntValue;
}

public 
void ChangeCvar_Round(ConVar convar, const char[] oldValue, const char[] newValue)
{
    
g_iFirst convar.IntValue;
}

/*
public void Event_PlayerSpawn(Event hEvent, const char[] sName, bool bDontBoradcast)
{
    int iScore;
    if(g_iBonus > 0 && GameRules_GetProp("m_bWarmupPeriod") == 0 && (iScore = CS_GetTeamScore(3) + CS_GetTeamScore(2)) != 1 && iScore != g_iFirst)    RequestFrame(FrameSpawn, GetClientOfUserId(hEvent.GetInt("userid")));
}
*/

public void Event_RoundStart(Event hEvent, const char[] sNamebool bDontBoradcast)
{
    
int iScore;
    if(
g_iBonus && GameRules_GetProp("m_bWarmupPeriod") == && (iScore CS_GetTeamScore(3) + CS_GetTeamScore(2)) != && iScore != g_iFirst)
    {
        
//int iScore = CS_GetTeamScore(3) + CS_GetTeamScore(2);
        
for(int i 1<= MaxClientsi++)    if(IsClientInGame(i) && !IsFakeClient(i))
        {
            
RequestFrame(FrameSpawni);
        }
    }
}

void FrameSpawn(int iClient)
{
    if(
SWGM_InGroup(iClient))
    {
        
SetEntProp(iClientProp_Send"m_iAccount"GetEntProp(iClientProp_Send"m_iAccount") + g_iBonus);
        
CPrintToChat(iClient"%t""mex_1");
        
//PrintToChat(iClient, "[SWGM] You got $%i bonus for participating in our Steam group.", g_iBonus);
    
}
    else 
CPrintToChat(iClient"%t""mex_2");
    
//else PrintToChat(iClient, "[SWGM] You can got $%i bonus for participating in our Steam group.", g_iBonus);



PHP Code:

CPrintToChat(iClient"%t""mex_1"g_iBonus); 


Ultralord 09-19-2017 14:40

Re: Steam Works Group Manager
 
Quote:

Originally Posted by Russian85 (Post 2549679)
I don't understand your problem.

Did you mean "Admin" module ?

yes i on admin module i put the flag q to have the steam friends when is on group and on admin overrides i put the custom flag for steam friends group but they havent access on that command like the admin group isnt recognized something..

Russian85 09-20-2017 08:18

Re: Steam Works Group Manager
 
2 Attachment(s)
Quote:

Originally Posted by Ultralord (Post 2549756)
yes i on admin module i put the flag q to have the steam friends when is on group and on admin overrides i put the custom flag for steam friends group but they havent access on that command like the admin group isnt recognized something..

If I understood correctly.

wjrrr 10-02-2017 09:12

Re: Steam Works Group Manager
 
Only people who are in the group were allowed to give certain commands but this plugin is releasing all the functions of vip and not just those of the command listener. How to solve?

I want that when entering the group the players can give only the commands listed in the command_listener

Russian85 10-04-2017 13:32

Re: Steam Works Group Manager
 
Quote:

Originally Posted by wjrrr (Post 2552086)
Only people who are in the group were allowed to give certain commands but this plugin is releasing all the functions of vip and not just those of the command listener. How to solve?

I want that when entering the group the players can give only the commands listed in the command_listener

No way, I think. But, if you are use VIP Core by R1KO I can post there module, that gives VIP status for group.

my11 10-04-2017 15:00

Re: Steam Works Group Manager
 
any way to detect people thas is not in the group and invite them with an option? and open with webshortcuts_csgo?

paulo_crash 10-04-2017 15:20

Re: Steam Works Group Manager
 
Suggestions:
- Check if the player is in the group and is not automatically inviting it to the group;

I updated the translations as well, added the language pt:
Code:

"Phrases"
{
        "JoinSteam"
        {
                "en"                "[SWGM] First join our Steam group!"
                "pt"                "[SWGM] Primeiro, junte-se ao nosso Grupo Steam!"
                "ru"                "[SWGM] Сначала вступите в нашу Steam группу!"
                "fr"                "[SWGM] En premier, rejoignez notre groupe Steam!"
        }
}


Cruze 10-04-2017 16:54

Re: Steam Works Group Manager
 
Please help me compile this plugin with multicolors
It gives me this error :
http://prntscr.com/gtcfg0

wjrrr 10-05-2017 16:30

Re: Steam Works Group Manager
 
It is giving permissions in addition to what I've set in command_listener for the other players.
Example:
Gloves is for VIPs only, and is releasing when the player enters the group.

michaelrw 10-14-2017 01:59

Re: Steam Works Group Manager
 
[QUOTE=Cripix;2543110]Hi !

I tried to use the Command Listener plugin but it does not work for me2, even though I followed the installation instructions

Code:

"Command_Listener"
{
        "sm_ws"{}
        "sm_knife"{}
        "sm_shop"{}
        "sm_gloves"{}
        "sm_nc"{}
}

Code:

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


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

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

swgm_check and swgm_list both work as they should, and give me the correct list of who is in the group and who isnt. I have both the SWGM_Command_Listener.smx and SWGM.smx plugins loaded

I get this error in my sourcemod error log

PHP Code:

[SMException reportedLanguage phrase "JoinSteam" not found
[SMBlamingSWGM_Command_Listener.smx
[SMCall stack trace:
[
SM]   [0PrintToChat
[SM]   [1Line 30C:\csgo\1.7\addons\sourcemod\scripting\1.8\SWGM_Command_Listener.sp::Check
Error log file session closed
.
SourceMod error session started
Info 
(map "bhop_cobblestone_rg1") (file "errors_20171014.log")
[
SMFatal error encountered parsing translation file "swgm_cl.phrases.txt"
[SMError (line 0column 0): Stream failed to open
[SMException reportedLanguage phrase "JoinSteam" not found
[SMBlamingSWGM_Command_Listener.smx
[SMCall stack trace:
[
SM]   [0PrintToChat
[SM]   [1Line 30C:\csgo\1.7\addons\sourcemod\scripting\1.8\SWGM_Command_Listener.sp::Check 


Cripix 10-14-2017 03:19

Re: Steam Works Group Manager
 
Quote:

Originally Posted by michaelrw (Post 2554382)
Hi !

I tried to use the Command Listener plugin but it does not work for me2, even though I followed the installation instructions

Code:

"Command_Listener"
{
        "sm_ws"{}
        "sm_knife"{}
        "sm_shop"{}
        "sm_gloves"{}
        "sm_nc"{}
}

Code:

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


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

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

swgm_check and swgm_list both work as they should, and give me the correct list of who is in the group and who isnt. I have both the SWGM_Command_Listener.smx and SWGM.smx plugins loaded

I get this error in my sourcemod error log

PHP Code:

[SMException reportedLanguage phrase "JoinSteam" not found
[SMBlamingSWGM_Command_Listener.smx
[SMCall stack trace:
[
SM]   [0PrintToChat
[SM]   [1Line 30C:\csgo\1.7\addons\sourcemod\scripting\1.8\SWGM_Command_Listener.sp::Check
Error log file session closed
.
SourceMod error session started
Info 
(map "bhop_cobblestone_rg1") (file "errors_20171014.log")
[
SMFatal error encountered parsing translation file "swgm_cl.phrases.txt"
[SMError (line 0column 0): Stream failed to open
[SMException reportedLanguage phrase "JoinSteam" not found
[SMBlamingSWGM_Command_Listener.smx
[SMCall stack trace:
[
SM]   [0PrintToChat
[SM]   [1Line 30C:\csgo\1.7\addons\sourcemod\scripting\1.8\SWGM_Command_Listener.sp::Check 


Missing a translation phrase

[SM] Fatal error encountered parsing translation file "swgm_cl.phrases.txt"
[SM] Error (line 0, column 0): Stream failed to open
[SM] Exception reported: Language phrase "JoinSteam" not found

Cruze 10-14-2017 03:53

Re: Steam Works Group Manager
 
add
PHP Code:

"JoinSteam"
{
     
"en"   "Join our steam group first!"


in
Code:

swgm_cl.phrases.txt

michaelrw 10-14-2017 15:36

Re: Steam Works Group Manager
 
seems the translations was wrong in the release package. also why is there two of the listener plugins, one in /plugins and the other in /plugins/swgm

anyways, i got it working

paulo_crash 10-26-2017 22:30

Re: Steam Works Group Manager
 
I put the following plugin so players have access when they join the Steam Group.
Quote:

"Command_Listener"
{
"sm_ws"{}
"sm_knifes"{}
}
Problem is that of the privilege for all the other plugins, such as the one of gloves, sprays and others that I did not put in the config.

How can I fix this? Was it a bug?

wjrrr 10-27-2017 10:31

Re: Steam Works Group Manager
 
I have the same problem. It is generating flag "a" or "r" for all players who join the group.


All times are GMT -4. The time now is 05:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.