Raised This Month: $ Target: $400
 0% 

Redirect Sql


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alexandru
Junior Member
Join Date: Aug 2012
Old 08-20-2012 , 10:51   Redirect Sql
Reply With Quote #1

is there any redirect for cs servers that can choose the ip from the database?

example:
(SELECT 'ip', 'port' FROM redirect WHERE server_name = `%s`, cvar_server_name );
alexandru is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-20-2012 , 12:55   Re: Redirect Sql
Reply With Quote #2

Something like this:
Spoiler


Let the plugin run once so the configuration file is generated.
Set your SQL settings in addons/amxmodx/configs/redirect.cfg
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 08-22-2012 at 10:41.
Exolent[jNr] is offline
alexandru
Junior Member
Join Date: Aug 2012
Old 08-20-2012 , 13:06   Re: Redirect Sql
Reply With Quote #3

i'm looking for something like this:

(SELECT 'ip', 'port' FROM redirect WHERE server_name = `%s`, cvar_server_name );
alexandru is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-20-2012 , 13:11   Re: Redirect Sql
Reply With Quote #4

It uses the server's "hostname" cvar. Would you rather use a different one?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
alexandru
Junior Member
Join Date: Aug 2012
Old 08-20-2012 , 13:21   Re: Redirect Sql
Reply With Quote #5

No, but I want to be:

(SELECT 'ip', 'port' FROM redirect WHERE server_name = `%s`, cvar_server_name );
client_cmd( iPlayer, ";Connect %s:%s", ip, port );

Sorry for my bad english

Last edited by alexandru; 08-20-2012 at 13:25.
alexandru is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-20-2012 , 14:07   Re: Redirect Sql
Reply With Quote #6

Quote:
Originally Posted by alexandru View Post
No, but I want to be:

(SELECT 'ip', 'port' FROM redirect WHERE server_name = `%s`, cvar_server_name );
client_cmd( iPlayer, ";Connect %s:%s", ip, port );

Sorry for my bad english
Why? It does the same thing.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
alexandru
Junior Member
Join Date: Aug 2012
Old 08-20-2012 , 15:18   Re: Redirect Sql
Reply With Quote #7

it's hard to explain

for redirect stats...

Last edited by alexandru; 08-21-2012 at 11:00.
alexandru is offline
alexandru
Junior Member
Join Date: Aug 2012
Old 08-22-2012 , 10:20   Re: Redirect Sql
Reply With Quote #8

on the plugin above:
how do i make the connection to the db from the plugin?

not in addons/amxmodx/configs/sql.cfg

sorry for my bad english
alexandru is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-22-2012 , 10:41   Re: Redirect Sql
Reply With Quote #9

Plugin updated.
Quote:
Originally Posted by Exolent[jNr] View Post
Let the plugin run once so the configuration file is generated.
Set your SQL settings in addons/amxmodx/configs/redirect.cfg
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
alexandru
Junior Member
Join Date: Aug 2012
Old 08-22-2012 , 10:48   Re: Redirect Sql
Reply With Quote #10

thank you
alexandru 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:45.


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