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

[REQ] [CS:GO] Welcome chat message for users with A flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 09-15-2016 , 01:41   [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #1

There's a lot of plugins out there regarding welcome messages, I've gone through every one in the plugins list that have anything to do with "welcome" but it's always a welcome message for every user. If I missed one please point me to it!

I'm looking for a simple welcome message that will only show to users with the A flag.

Last edited by sneaK; 09-15-2016 at 01:41.
sneaK is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 09-15-2016 , 01:59   Re: [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #2

Spoiler

Couldn't compile it due to includes it needed, code taken from: https://forums.alliedmods.net/showthread.php?p=2138503

However something like this could be extended to a more extendable config. Say multiple different welcome messages.
Mitchell is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 09-23-2016 , 00:59   Re: [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #3

Thanks Mitchell, finally got some extra moments at my home computer to test it out.

Unfortunately it throws several errors compiling (the original code without your edits compiles with only a couple warnings).

Errors:
Spoiler


With 1.6 compiler the only errors are undefined symbol "CPrintToChat".

I fixed the array index out of bounds (ConVar) error by raising it to 8 instead of 7 on line 15 (not sure why the number of cvars is hardcoded), but the rest of the errors remain. Using 1.8 includes and latest compiler

Last edited by sneaK; 09-23-2016 at 01:41.
sneaK is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 09-23-2016 , 02:37   Re: [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #4

It compiles, but still needs some adjusting.
Hand off!
Spoiler

Last edited by Maxximou5; 09-23-2016 at 02:37.
Maxximou5 is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 09-23-2016 , 06:14   Re: [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #5

Okay I get the message guys... I'll update the plugin. Jesus. lol
Drixevel is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 09-23-2016 , 10:42   Re: [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #6

Quote:
Originally Posted by redwerewolf View Post
Okay I get the message guys... I'll update the plugin. Jesus. lol
Time to make it more ultimate!
Mitchell is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-24-2016 , 05:44   Re: [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #7

...hey, check is client valid clientd index after GetClientOfUserId, before check IsClientInGame.
*edit
GetClientOfUserId return 0 if not found.

Last edited by Bacardi; 09-24-2016 at 05:45.
Bacardi is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 09-24-2016 , 07:47   Re: [REQ] [CS:GO] Welcome chat message for users with A flag
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
...hey, check is client valid clientd index after GetClientOfUserId, before check IsClientInGame.
*edit
GetClientOfUserId return 0 if not found.
The code is as old as The Big Bang.
Drixevel 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 11:59.


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