Raised This Month: $51 Target: $400
 12% 

[CS:GO] Steam group money reward


Post New Thread Reply   
 
Thread Tools Display Modes
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 02-12-2016 , 08:15   Re: [CS:GO] Steam group money reward
Reply With Quote #11

Quote:
Originally Posted by 8guawong View Post
did you miss something?
cuz the current source you posted just add kills to every1

PHP Code:
public Action Event_PlayerDeath(Handle event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(event"attacker"));
    
    
int money Client_GetMoney(client);
    
Client_SetMoney(clientmoney iMoneyPerKill);
        

Whoops, that was quite big mistake. Fixed it, but didn't tested it. You can check it, if it now works.
boomix is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-12-2016 , 08:48   Re: [CS:GO] Steam group money reward
Reply With Quote #12

Quote:
Originally Posted by boomix View Post
Whoops, that was quite big mistake. Fixed it, but didn't tested it. You can check it, if it now works.
i wasn't trying to install your plugin but was just trying to learn how you get if player is in a steam group

but i don't think its working

here is your code modified for testing

PHP Code:
#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR "boomix"
#define PLUGIN_VERSION "1.1"

#include <sourcemod>
#include <SteamWorks>

Handle GroupID;

#define LoopAllPlayers(%1) for(int %1=1;%1<=MaxClients;++%1)\
if(IsClientInGame(%1) && !IsFakeClient(%1))

bool b_InGroup[MAXPLAYERS 1];

public 
void OnPluginStart()
{
    
RegConsoleCmd("sm_status"SteamStatus);
    
GroupID =    CreateConVar("sm_groupid""103582791434876187""Group ID 64");
}

public 
Action SteamStatus(int clientint args)
{
    if (
b_InGroup[client])
        
PrintToChat(client"In Group");
    else
        
PrintToChat(client"Not In Group");        
}


public 
void OnClientPutInServer(int client)
{
    
b_InGroup[client] = false;
    
SteamWorks_GetUserGroupStatus(clientGetConVarInt(GroupID));
}

public 
int SteamWorks_OnClientGroupStatus(int authidint groupidbool isMemberbool isOfficer)
{
    
PrintToServer("authid: %d, groupid: %d"authidgroupid);
    
int client GetUserFromAuthID(authid);
    
    if(
isMember)
    {
        
b_InGroup[client] = true;
    }
    
}

int GetUserFromAuthID(int authid)
{
    
    
LoopAllPlayers(i)
    {
        
char authstring[50];
        
GetClientAuthId(iAuthId_Steam3authstringsizeof(authstring));    
        
        
char authstring2[50];
        
IntToString(authidauthstring2sizeof(authstring2));
        
        if(
StrContains(authstringauthstring2) != -1)
        {
            return 
i;
        }
    }
    
    return -
1;


__________________
8guawong is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-12-2016 , 09:42   Re: [CS:GO] Steam group money reward
Reply With Quote #13

Quote:
Originally Posted by 8guawong View Post
i wasn't trying to install your plugin but was just trying to learn how you get if player is in a steam group

but i don't think its working

here is your code modified for testing

Spoiler
Go to https://steamcommunity.com/gid/103582791434876187/edit -

At the very fist line, you'll see your group id. That's the group id SteamWorks requires.

If you'd care to read a few posts above of yours, you would have seen that...

Also note that SteamWorks (and SteamTools) tells you that people are a member of your group, as soon as they have received an invite, even if they clicked "Ignore".
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 02-12-2016 at 09:44.
DarkDeviL is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-12-2016 , 18:00   Re: [CS:GO] Steam group money reward
Reply With Quote #14

Quote:
Originally Posted by arne1288 View Post
Go to https://steamcommunity.com/gid/103582791434876187/edit -

At the very fist line, you'll see your group id. That's the group id SteamWorks requires.

If you'd care to read a few posts above of yours, you would have seen that...

Also note that SteamWorks (and SteamTools) tells you that people are a member of your group, as soon as they have received an invite, even if they clicked "Ignore".
yes i read that post but that guy didn't say how to get the groupid

and looking at the source and author's instruction

Code:
HookConVarChange(GroupID 		=	AutoExecConfig_CreateConVar("sm_groupid", "xxxxxxxxxxxxxxxxxx", "Group ID 64"),
Quote:
Your group ID you can find here
http://steamcommunity.com/groups/{YOUR GROUP NAME}/memberslistxml/?xml=1
__________________

Last edited by 8guawong; 02-12-2016 at 18:01.
8guawong is offline
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 02-13-2016 , 09:27   Re: [CS:GO] Steam group money reward
Reply With Quote #15

Quote:
Originally Posted by 8guawong View Post
yes i read that post but that guy didn't say how to get the groupid
Sorry, didn't think that it was so difficult to do tbh. Hope arne1288 clarified it for you
__________________

Last edited by yash1441; 02-13-2016 at 09:30.
yash1441 is offline
Send a message via Skype™ to yash1441
lay295
Senior Member
Join Date: Sep 2013
Old 02-13-2016 , 09:41   Re: [CS:GO] Steam group money reward
Reply With Quote #16

Quote:
Originally Posted by 8guawong View Post
i wasn't trying to install your plugin but was just trying to learn how you get if player is in a steam group
In a similar plugin I have I just query cl_clainid and just check that their tag isn't empty and the clanid is my group's so they're actually in the group. This will only work if they set your group as their clan tag group which some might not like, but if im rewarding people for being in my group i'd like them to be wearing the group tag too.

A client can set his cl_clainid to whatever he wants, but his tag will only show up if he's an actual member of the group.
__________________

lay295 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-13-2016 , 11:14   Re: [CS:GO] Steam group money reward
Reply With Quote #17

Quote:
Originally Posted by yash1441 View Post
Sorry, didn't think that it was so difficult to do tbh. Hope arne1288 clarified it for you
yes he didi
but yea it's pretty difficult and confusing
searching Google only returns finding grouped 64

https://www.google.com/search?q=how+...obile&ie=UTF-8
__________________
8guawong is offline
supreeda
Senior Member
Join Date: Jul 2015
Old 02-14-2016 , 21:51   Re: [CS:GO] Steam group money reward
Reply With Quote #18

Quote:
Originally Posted by boomix View Post
Will see, maybe I will make it.

Tik tok tik tok tik tok .....
supreeda is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-14-2016 , 22:33   Re: [CS:GO] Steam group money reward
Reply With Quote #19

Quote:
Originally Posted by supreeda View Post
Tik tok tik tok tik tok .....
Patience, my friend...

- He said "maybe", that is not a guarantee.

- If you don't want to show respect to people for wasting their time on working for you at no cost, then you have these two options:

a) make it yourself.
b) pay someone enough money to do it for you in a time that you can accept.

Your "tik tok"-crap is disrespectful and rude.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
supreeda
Senior Member
Join Date: Jul 2015
Old 02-15-2016 , 05:06   Re: [CS:GO] Steam group money reward
Reply With Quote #20

Quote:
Originally Posted by arne1288 View Post
Patience, my friend...

- He said "maybe", that is not a guarantee.

- If you don't want to show respect to people for wasting their time on working for you at no cost, then you have these two options:

a) make it yourself.
b) pay someone enough money to do it for you in a time that you can accept.

Your "tik tok"-crap is disrespectful and rude.
Ok, i want to pay this 5$ of CSGO item

Someone make me please Thank
supreeda is offline
Reply



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 14:43.


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