View Single Post
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 12-28-2019 , 20:39   Re: Display chat message to players joining group
Reply With Quote #4

Quote:
Originally Posted by ThatOneGuy View Post
I'm not aware of anything you can hook for when they join a group, as that has nothing to do with the server. My suggestion would be to add a command for rechecking if they are in the group and then add instructions to tell players to use the command after joining or wait for map change. Alternately, you could recheck players on a repeat timer, but then you are using more resources.
Quote:
Originally Posted by Nexd View Post
I think you can do something like

PHP Code:
#include <swgm>

public void SWGM_OnJoinGroup(int clientbool ismemberbool isofficer)
{
    
PrintToChat(client"Thank you for joining the steam group! Your vip privileges will be available from next map!");

That code appears to use this plugin (which checks on a repeat timer if all clients are in the group): https://forums.alliedmods.net/showthread.php?t=300505
__________________
ThatOneGuy is offline