hlmod.hu
https://hlmod.hu/

PHP-bol Rcon?
https://hlmod.hu/viewtopic.php?f=13&t=21381
Oldal: 1 / 1

Szerző:  JohanCorn [2015.07.06. 18:45 ]
Hozzászólás témája:  PHP-bol Rcon?

Tiszteletem!

Valaki, aki többet ért php-hoz, mint én az tudna küldeni egy kód részt, amivel rcon-on keresztül parancsot tudok lefuttatni egy 1.6-os szerveren?
Teszem aszt, teszt.php végrehajtja az "rcon say Hello Vilag!" parancsot egy megadott szerveren.


Köszönöm! :)

Szerző:  kiki [2015.07.06. 18:48 ]
Hozzászólás témája:  Re: PHP-bol Rcon?

https://github.com/gaf09/Counter-Strike-1.6-Panel-php

example.phpba ott a példa.

Szerző:  JohanCorn [2015.07.06. 19:05 ]
Hozzászólás témája:  Re: PHP-bol Rcon?

Köszönöm, de ennek így működnie kellene nem?

Kód:
require "class.rcon.php";
require "class.counterstrike.php";
$counterstrike = new counterstrike("37.221.210.31:x", "x");

if($counterstrike->Connect() === true)
{
     $counterstrike->Command("changelevel cs_alpin");
}
$counterstrike->Disconnect();


Kipróbáltam ezt is: https://github.com/xPaw/PHP-Source-Query-Class, de egy ilyen üzenettel köszöntött:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@main-hosting.eu to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/