Raised This Month: $ Target: $400
 0% 

Response messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 04-11-2011 , 12:10   Response messages
Reply With Quote #1

Hi

I run a couple of sql plugins (feedback, player reporting) which allow players to report players or leave comments about the server. What I would like to do is to respond to some of those messages/reports by leaving a reply which is sent to the player in chat the next time he/she joins the server.

I want to add a 'reply' entry to the sql db from my web front end and have a plugin that queries the replies by steamid, then if a steamid has a reply associated with it print it to chat after the player has joined the server. Then I suppose the plugin would need to mark the reply as 'sent' somehow.

Trouble is I don't know where to start! Can anyone show me any other plugins that do something like this, or give me some example code to work from?

Cheers!
Nomarky is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 04-11-2011 , 12:40   Re: Response messages
Reply With Quote #2

When the player joins a team for the first time use a threaded query to check for a reply message, if one exists then use PrintHintText to tell the player, then make the reply field an empty field again to mark it as sent. I do something similar to let users know when the last time they were kicked/banned.
__________________
databomb is offline
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 04-11-2011 , 12:55   Re: Response messages
Reply With Quote #3

Quote:
Originally Posted by databomb View Post
When the player joins a team for the first time use a threaded query to check for a reply message, if one exists then use PrintHintText to tell the player, then make the reply field an empty field again to mark it as sent. I do something similar to let users know when the last time they were kicked/banned.
Thanks for that, do you have an example code I could have a look over? My skills are very basic...
Nomarky is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 04-14-2011 , 07:34   Re: Response messages
Reply With Quote #4

You could start off with default sql-thearded plugin. It might help I'm not sure but cssbank plugin have some valuable code too, which would help too. Good luck
MindeLT is offline
Send a message via Skype™ to MindeLT
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 04-14-2011 , 07:54   Re: Response messages
Reply With Quote #5

Thanks, I will check out those plugins
Nomarky 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 13:48.


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