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

Display chat message to players joining group


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alex101192
Senior Member
Join Date: Aug 2018
Old 12-27-2019 , 10:51   Display chat message to players joining group
Reply With Quote #1

I use this plugin which gives players who join steam group, flag a. The problem is that the flag only applies after the map has changed, so when people join the group to get access to vip commands, but they see they still can't use them, they might think nothing has happened.

Is there a way to make it so that after they join group, a message in chat tells them "Thank you for joining the steam group! Your vip privileges will be avaiable from next map!

Last edited by Alex101192; 12-27-2019 at 10:51.
Alex101192 is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 12-27-2019 , 20:03   Re: Display chat message to players joining group
Reply With Quote #2

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.
__________________
ThatOneGuy is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 12-28-2019 , 11:22   Re: Display chat message to players joining group
Reply With Quote #3

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!");

Nexd is offline
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
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 01-02-2020 , 15:05   Re: Display chat message to players joining group
Reply With Quote #5

Quote:
Originally Posted by ThatOneGuy View Post
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
Quote:
Originally Posted by Alex101192 View Post
I use this plugin which gives players who join steam group, flag a. The problem is that the flag only applies after the map has changed, so when people join the group to get access to vip commands, but they see they still can't use them, they might think nothing has happened.
Nexd is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 01-02-2020 , 17:52   Re: Display chat message to players joining group
Reply With Quote #6

Didn't see a link in the original post. That makes a bit more sense now.
__________________
ThatOneGuy 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 17:51.


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