Raised This Month: $32 Target: $400
 8% 

Group status by Steam ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 03-01-2012 , 04:44   Group status by Steam ID
Reply With Quote #1

Would it be possible to add a function that works just like Steam_RequestGroupStatus but that instead of the client index it uses the Steam ID? I'd like to use that with the Connect extension to prevent people from joining a server if they're not part of a group, instead of doing the checks when they're already in-game and then kicking them (to avoid the "Player x connected" and "Player x has left the game (Reason: x)" messages).
__________________
napalm00 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-01-2012 , 04:50   Re: Group status by Steam ID
Reply With Quote #2

Quote:
Originally Posted by napalm00 View Post
Would it be possible to add a function that works just like Steam_RequestGroupStatus but that instead of the client index it uses the Steam ID? I'd like to use that with the Connect extension to prevent people from joining a server if they're not part of a group, instead of doing the checks when they're already in-game and then kicking them (to avoid the "Player x connected" and "Player x has left the game (Reason: x)" messages).
I can give it a shot, I seem to remember it wont work unless the player has been "registered" with the server by the backend, so it'll probably only work with the Connect extension.
__________________
asherkin is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 03-01-2012 , 05:06   Re: Group status by Steam ID
Reply With Quote #3

Quote:
Originally Posted by napalm00 View Post
I'd like to use that with the Connect extension to prevent people from joining a server if they're not part of a group
I was going to do the same until I realised that it's an async call and you wouldn't be able to reject them in that forward anyway.
__________________
GoD-Tony is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 03-01-2012 , 05:14   Re: Group status by Steam ID
Reply With Quote #4

Quote:
Originally Posted by GoD-Tony View Post
I was going to do the same until I realised that it's an async call and you wouldn't be able to reject them in that forward anyway.
Oh wow, totally forgot about that.
I guess I'll just stick to my KV file then xD
Thanks to both of you for the info ^^
__________________
napalm00 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-17-2012 , 14:54   Re: Group status by Steam ID
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
I can give it a shot, I seem to remember it wont work unless the player has been "registered" with the server by the backend, so it'll probably only work with the Connect extension.
I'm not sure why I said this, it's already possibly using the custom steam ID functionality.

The statement about it possibly not working still applies though.
__________________
asherkin 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 19:06.


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