Raised This Month: $ Target: $400
 0% 

How to use the Web management cs1.6 server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wwzw
Member
Join Date: Feb 2009
Old 12-25-2011 , 05:04   How to use the Web management cs1.6 server
Reply With Quote #1

I want to use the Web management cs1.6 server.
But I do not know how to do.
Web site use PHP.
I can get the server response.But do not know how to read online players.
PHP Code:
 $fp1 fsockopen("udp://".$serv,$port,$errno,$errstr,2);
 
stream_set_timeout($fp12);
 if (!
$fp1){
  
//Server not Start
 
}else{
  
fwrite($fp1"\xFF\xFF\xFF\xFFping\x00");
  
$data1 .= fread($fp1128);
  
fclose($fp1);
 }
 if (
$data1 == '' || $data1 == 'err'){
 
//Server not Start
 
}else{
 
//Server is runing
 

Next. How to send a command to server? I use AMXX1.8.2.
Need Help!
wwzw is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 12-25-2011 , 11:43   Re: How to use the Web management cs1.6 server
Reply With Quote #2

https://developer.valvesoftware.com/wiki/Server_queries
Nyuszy is offline
wwzw
Member
Join Date: Feb 2009
Old 12-25-2011 , 21:05   Re: How to use the Web management cs1.6 server
Reply With Quote #3

Thank you !
But how to send a command to server? Use AMXX run ?
wwzw is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 12-26-2011 , 19:03   Re: How to use the Web management cs1.6 server
Reply With Quote #4

I will send you full source code . Pm me . or go to snippets section and search for server query API.
its quite simple. use sq_query "IP : PORT" than Use if <maxplayers > 21 . and DO something
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 12-26-2011 at 19:07.
avril-lavigne is offline
Reply


Thread Tools
Display Modes

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 12:09.


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