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

Solved Execute servercommand via website


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xice1337
AlliedModders Donor
Join Date: Dec 2015
Old 02-28-2017 , 06:36   Execute servercommand via website
Reply With Quote #1

Hello,
is it possible to execute a command on my server when i click a button on my website?
For example: I click on my button(website) and ingame (csgo) my character says "hello" in the chat.
I already have the steamID when someone clicked that button, but i dont know how to connect that with sourcepawn. (maybe through a DB?)

thanks in advance
Xice

Last edited by xice1337; 03-03-2017 at 12:11.
xice1337 is offline
good_live
AlliedModders Donor
Join Date: Oct 2013
Old 02-28-2017 , 06:54   Re: Execute servercommand via website
Reply With Quote #2

You could use a rcon command. There should be some libaries for php (or whatever you are using).
For exampel this one:
https://github.com/xPaw/PHP-Source-Query

Another possible option would be a socket that you connect to:
https://forums.alliedmods.net/showthread.php?t=67640

Or even a websocket:
https://forums.alliedmods.net/showthread.php?t=182615

Last edited by good_live; 02-28-2017 at 06:54.
good_live 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 07:39.


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