AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sql and web (https://forums.alliedmods.net/showthread.php?t=89314)

asd13 04-04-2009 19:09

Sql and web
 
This is more like question.
Is it possible to do a sql plugin what is connected to a web and say there is a litle insert box. If i enter in the box like mp_freezetime 0 then server changes the cvar throu this plugin instantly the cvar what i have selected.
If it is possible somehow can someone to it ?

Sorry for my bad englis :mrgreen:
+karma for any helper :)

DaxProxy 04-04-2009 19:48

Re: Sql and web
 
Google.com - WebMod

asd13 04-04-2009 20:23

Re: Sql and web
 
Webmod sucks and as i have read it is a security risk.
But thantks anyway :)

OldWolf 04-04-2009 22:26

Re: Sql and web
 
This actually was a plugin I'm looking at creating, keep an eye out for it. Funny that you asked for it, because the reason I'm on right now is that I'm doing research for it. :P

asd13 04-05-2009 06:59

Re: Sql and web
 
Oh nice to hear :)

Hunter-Digital 04-07-2009 04:52

Re: Sql and web
 
You can connect using PHP to the server via RCON ... and you can send whatever commands you like to the server directly without any plugins...

asd13 04-07-2009 08:54

Re: Sql and web
 
like i know any php?

Hunter-Digital 04-07-2009 16:43

Re: Sql and web
 
Then learn something... either php or amxx, they have *relatively* the same scripting style, you can find scripts in php to send commands to a hlds server...

in amxx with sql it's more complicated... you need to reload the tables each X seconds... and also you need php knowledge (unless you manage your db another way...)
it's easy to say, you just add cvars in a two colum table (variable and value as colum names for example), the server gets the cvars added and then deletes them (because it loaded them and you need them there no more...)

but this method only gives you commands executed every X seconds (depending on plugin configuration, the task you set on what delay) rather than just sending a RCON command via php :)

Like I said, just search on google for some scripts, you might find one already made by someone, strip some useless code out and you got yourself a command line web page :)

so... bottom line... you must learn :) there aren't any "simple to use" things in scripting or programing :)

OldWolf 04-07-2009 20:28

Re: Sql and web
 
Quote:

Originally Posted by Hunter-Digital (Post 799582)
You can connect using PHP to the server via RCON ... and you can send whatever commands you like to the server directly without any plugins...

Do you happened to know how that's done? I'm very fluent with PHP, and I think that would be a great piece to the panel I'm making.

Hunter-Digital 04-08-2009 15:58

Re: Sql and web
 
no, I don't... that's why I said:
Quote:

Originally Posted by Hunter-Digital (Post 800157)
Like I said, just search on google for some scripts, you might find one already made by someone, strip some useless code out and you got yourself a command line web page :)



All times are GMT -4. The time now is 02:24.

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