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

qServerinfo [MYSQL] - (v 0.6 / 26-01-2014)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical       
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-31-2013 , 12:12   qServerinfo [MYSQL] - (v 0.6 / 26-01-2014)
Reply With Quote #1

qServerinfo [MYSQL]
v 0.6 by quark

-> Description

This plugin will insert into a MYSQL Database server information as hostname, map, players/maxplayers and ip.


-> Changelog

< Plugin >
*0.1 - First release.
*0.2 - Fixed bug when change map.
*0.3 - Added server IP Saving.
- Removed Ignore HLTV/BOTS.
- Fixed Player Count. ( I guess. )
* 0.4 - Removed Server ID.
- Set Server IP as Primary key.
- Changed way to get Server IP.
- Added maxplayers.
- Fixed Player count. ( Testing. )
* 0.5 - Added log to amx.
- Fixed server IP.
* 0.6 - Fixed Player count. (Finnaly )

< Php Script >
*0.1 - First release.
*0.2 - Added auto-refresh.
*0.3 - Added "connect" button. (steam).
- Fixed split servers by id.
- Removed auto-refresh.
- Removed unnecessary code (style).
*0.4 - Added IP/MaxPlayers.
- Edited button style.
*0.5 - Changed from mysql to mysqli.
- Added Total Servers.
- Small change in style.


-> Cvars

PHP Code:
    /* SQL CONFIGURATION */

qSi_host "localhost" // Host
qSi_user "user" // db username
qSi_pass "password" // db password
qSi_db "db" // db name
qSi_sid "1" // Server ID 

-> Configuration

You can insert the cvars in amxx.cfg or just edit it in plugin.

PHP Code:
//#define IGNORE 
If you uncomment that line, the player counting will ignore HLTV / BOTS.


-> Requirements

PHP Code:
#include <amxmodx>
#include <sqlx> 

-> PHP Script

>>>> Live Preview <<<<

To make it work, you have to edit the following lines:
PHP Code:
$host="localhost"// Host
$username="user"// Mysql username
$password="password"// Mysql password
$db_name="db"// Database name
$tbl_name="qserverinfo"// Table name 
Download qserverinfo.zip in attachments.


-> To-Do
  • Waiting for suggestions.


-> Contacts

* Steam: CANDY
* Mail: [email protected]
* Website: www.joserodrigues.in


Attached Files
File Type: sma Get Plugin or Get Source (qServerinfo.sma - 1543 views - 7.1 KB)
File Type: zip qserverinfo.zip (57.1 KB, 628 views)
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 01-31-2014 at 12:45. Reason: Version 0.5 WEB released.
quark is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-31-2013 , 12:13   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #2

cool. will test now.


EDIT1: qSi_sid "1" // Server ID

what is that?


EDIT2: When you add a php page, i ill test.

Last edited by sami_spt; 08-31-2013 at 12:14.
sami_spt is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-31-2013 , 12:16   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #3

Quote:
Originally Posted by sami_spt View Post
EDIT1: qSi_sid "1" // Server ID
If you want to add like 10 servers. You make like serverid 1 , serverid 2 , serverid 3, =D
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-31-2013 , 12:37   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #4

You don't need any addon on server to query server information from website...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-31-2013 , 12:46   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
You don't need any addon on server to query server information from website...
Yeah , but some hosts doesn't allow queries.
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-31-2013 , 13:04   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #6

Please give1 IP example.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-31-2013 , 13:05   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Please give1 IP example.
i don't get it

UPDATED Php script.
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 08-31-2013 at 13:34. Reason: Php script uploaded.
quark is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-31-2013 , 14:00   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #8

I mean, you can query any servers, else you wouldn't be able to collect IPs in steam browser, or you wouldn't able to see servers in HLSW.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-31-2013 , 14:04   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #9

Quote:
Originally Posted by ConnorMcLeod View Post
I mean, you can query any servers, else you wouldn't be able to collect IPs in steam browser, or you wouldn't able to see servers in HLSW.
What i mean is, in my VPS the query script working fine, but in my website, it doesn't.

That's why i made this.

UPDATED Live Preview Link.
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 08-31-2013 at 15:41. Reason: UPDATED Live Preview Link.
quark is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-31-2013 , 21:46   Re: qServerinfo [MYSQL] - (v 0.1 / 31-08-2013)
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
I mean, you can query any servers, else you wouldn't be able to collect IPs in steam browser, or you wouldn't able to see servers in HLSW.
He is talking about socket protocol used to query the servers, in same hosts is not allowed to send packets using php sockets like gamequery or other scripts.

Nice idea, is a alternative solution to do this.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 08-31-2013 at 21:47.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 17:25.


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