View Full Version : Pro-Servers VCO Hosting
Hey all.
Just a quick post to let you know that Pro-Servers is online and ready to host VCO! We're running a special offer right now - if you order a server for Vice City Online before next Saturday (11th April - one week from now) you'll pay just 10p/slot for your first month.
Try it and see if you like it - we know that you will! After your first month pay 20p/slot a month for the duration of your server!
Why us? We're a small company dedicated to being the best, from providing fast and helpful support to giving our customers the fastest and most powerful control panel around!
Come visit us at Pro-Servers.net (http://www.pro-servers.net/) to take a look at what we do!
See you soon.
Alec
Toiletduck
04-05-2009, 02:45 AM
I have used pro-servers for hosting a vc-mp server and service is great. I really recommend them. Things that I should mention: Very easy, friendly people and a powerful control panel.
Ghost Dog 13
04-05-2009, 04:20 PM
alec = Joseph? :P
Toiletduck
04-05-2009, 04:34 PM
No. Joseph = Joseph.
Alec = Alec.
youlikethaaaat
04-05-2009, 07:10 PM
alec = Joseph? :P
No, both me(Joseph) and Alec are making Pro-servers together
FYI: Pro-Servers is up-to-date with the new server patch.
Thijn
04-11-2009, 03:55 AM
Maybe i should post this somewere else, But i just ask it here:
Can u tell me how u can get the server status, players etc in php?
I think with sockets, but how??
Hope someone can help me
Thijn
DECEiFER
04-11-2009, 06:06 PM
Maybe i should post this somewere else, But i just ask it here:
Can u tell me how u can get the server status, players etc in php?
I think with sockets, but how??
Hope someone can help me
Thijn
http://www.vicecityonline.com/page.php?id=3
There, made it easy for ya.
Thijn
04-12-2009, 02:01 AM
Thanks for that, Can u maybe provide any source code?
Thanks for that, Can u maybe provide any source code?
If it helps, I made something similar in mIRC a few days ago
http://vco.pastebin.com/m4e9da729
Thijn
04-13-2009, 01:56 AM
Thanks mex, I will try to convert it to PHP.:wink2:
EDIT:
Sorry, but i didnt get it to work for PHP. Maybe someone can help me?
Thijn
04-14-2009, 09:13 AM
Can someone please help me :(
I donnu how I did it, But with the base of Mex, I converted it to PHP.
For the people who need it, Here it is:
<?php
Function readinfo($ip, $port) {
/*
____________________________________
| -------------------- VCO Query Script ------------------|
| ---------------------- Made by Thijn ---------------------|
| --------- Based on Mex's mIRC query Script --------|
| ____________________________________|
*/
$ascPacket = chr(1) . chr(54) . chr(99) . chr(34) . chr(0) . chr(0) . chr(255) . chr(0) . chr(255) . chr(254) . chr(254) . chr(254) . chr(254) . chr(253) . chr(253) . chr(253) . chr(253) . chr(120) . chr(86) . chr(52) . chr(18);
$s_con = fsockopen("udp://".$ip, $port);
fwrite($s_con, $ascPacket);
$a = fread($s_con, 4096);
$commaOnePos = strpos($a, chr(44), 1);
$commaTwoPos = strpos($a, chr(44), $commaOnePos + 1);
$commaThreePos = strpos($a, chr(44), $commaTwoPos + 1);
$commaFourPos = strpos($a, chr(44), $commaThreePos + 1);
$commaFivePos = strpos($a, chr(44), $commaFourPos + 1);
//Get Servername
$serverNameStartPos = $commaOnePos + 1;
$serverNameEndPos = $commaTwoPos - 1;
$serverNameLength = $serverNameEndPos - $serverNameStartPos + 1;
$serverName = substr($a, $serverNameStartPos, $serverNameLength);
//Get current amount of players
$currentAmountStartPos = $commaTwoPos + 1;
$currentAmountEndPos = $commaThreePos - 1;
$currentAmountLength = $currentAmountEndPos - $currentAmountStartPos + 1;
$currentAmountOfPlayers = substr($a, $currentAmountStartPos, $currentAmountLength);
//Get max players
$maxPlayersStartPos = $commaThreePos + 1;
$maxPlayersEndPos = $commaFourPos - 1;
$maxPlayersLength = $maxPlayersEndPos - $maxPlayersStartPos + 1;
$maxPlayers = substr($a, $maxPlayersStartPos, $maxPlayersLength);
//Get GameMode
$gameModeStartPos = $commaFourPos + 1;
$gameModeEndPos = $commaFivePos - 1;
$gameModeLength = $gameModeEndPos - $gameModeStartPos + 1;
$gameMode = substr($a, $gameModeStartPos, $gameModeLength);
echo "-------------------<br>";
echo "Server Name: $serverName<br>";
echo "Current Amount Of Players: $currentAmountOfPlayers<br>";
echo "Max Players: $maxPlayers<br>";
echo "Game Mode: $gameMode<br>";
fclose($s_con);
}
readinfo('Here the IP',Here the Port);
?>
I only didnt get the Player List working :P
youlikethaaaat
04-15-2009, 06:51 AM
quite messily and slowly done... ^^
$a = fread($s_con, 4096);
would probaly make php wait abit, and if that method was used... you could have used explode() to split it :p, instead of all that strpos mess, etc ^^
my method is to loop through every bit in the packet and append it onto the correct variable.. by counting the ,'s. and then in the player list part you can check for chr(0)... which means the end of packet... which you break on
oh, and why havn't you finished ordering your server(payment) ^^. if you need any help contact either me or Alec at: joe/alec |at| pro-servers |dot| net
Thijn
04-15-2009, 09:08 AM
Well, Because I didnt find a page were i can see the payment methods, So i just tried it. But I can't pay with PayPal (don't ask why, Just stupid parents :P) So i asked ServerFFS if they could host VCO, Because I know that they support Wallie (a dutch pay method) and such. That's why...
youlikethaaaat
04-15-2009, 10:14 AM
ah, okay
Just a bit of a bump/announcement. The Pro-Servers website (http://pro-servers.net) and control panel has been overhauled to look and work even better. Take a look around. (http://pro-servers.net)
[NoN]Bruno
06-21-2009, 01:46 PM
This is highly recommended by me, as i tested it yesterday and its very easy to control your own server!. ;)
Thanks Bruno, for helping test it and for that nice little plug you just gave :).