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

Get MOTD cookie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
foon
Member
Join Date: Dec 2018
Old 12-30-2018 , 06:50   Get MOTD cookie
Reply With Quote #1

Is there any way to get a cookie from the MOTD and read it?

GetClientCookie is all serverside (I think?), so im not sure it its even possible.

Last edited by foon; 12-30-2018 at 06:51.
foon is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-30-2018 , 11:29   Re: Get MOTD cookie
Reply With Quote #2

Quote:
Originally Posted by foon View Post
Is there any way to get a cookie from the MOTD and read it?

GetClientCookie is all serverside (I think?), so im not sure it its even possible.
Directly from SouceMod? No.

You can make some scripting on your web site (that the MOTD is pointing at), so that the web site is sending the desired information to your server, so you can eventually use the information in RCON commands or similar things.

In short words, you will need to make some sort of "communication interface" between your game server ("SourceMod Plugin") and the web site.

Also note that since the MOTD (and obviously, the sending of information) is handled client side, they can easily be intercepted and altered / manipulated, so players are actually misinforming your servers.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL 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 16:57.


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