[Tool/Web/Other] [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010)
#21

Sorry, I was changing from FastCGI to PHP-FPM. Downloads should be fixed.
Reply
#22

Amazing release. Good work
Reply
#23

Very nice
We need more of these php stuff on the forum
Reply
#24

I've updated both the SampQueryAPI and SampRconAPI files, with added functionality.
Reply
#25

Nice!
Reply
#26

Ok i got my DDZH81$ on my post this is LUX
Reply
#27

Nice class. Will be using RCON API for a server control panel script.
Reply
#28

this is my php file:

<?
require "SampRconAPI.php";

class CustomRcon extends SampRconAPI
{
public function someFunctionName()
{
parent::Call('fc '.'[Forum Chat] '.$_POST['nome'].' dice:'.$_POST['testo']);
}
}

$rcon = new CustomRcon('ip', 7777, 'rcon');
$rcon->someFunctionName();

header("location: form.html");
?>

Using this with a form nothing happen (the script doesn't send rcon command to the server), but when i write in the server "/rcon fc text" the script work... can you help me?
Reply
#29

Oh, the online version was borked. It must of not uploaded properly. It's fixed now though.
Reply
#30

Why there is a limit of 100 players when I use getBasicPlayers or getDetailedPlayers?
Reply
#31

Because Kye said so.

He added it as a measure to protect against attacks against users - who might have their connections killed by the mass spam of packets 500 players (that's at least 15000 characters).
Reply
#32

http://forum.sa-mp.com/showpost.php?...3&postcount=60
up up up
Reply
#33

PHP Code:

$rcon 
= new SampRconAPI('192.168.4.1'7777'lolarcon');
$rcon->Call('your_custom_func_here'); 
is not working, nothing happens ,am I missing something ? ... help please
Reply
#34

Yeah, you're missing something.

Common sense mainly. You need to insert the server's IP and port, as well as password, if you haven't already.

What are you trying to use the script for?
Reply
#35

No need for gibes offcours I replace ip port pass with my own , the rest of the functions work`s ok only call() dosen`t seem to work.

I want to call 2 function from my control panel.
Reply
#36

Thanks a lot for this!!
Reply
#37

I dont unsterdand how to use this fine...
Reply
#38

Quote:
Originally Posted by epic.matrix
Посмотреть сообщение
Useless, no downloads, i say delete the thread if he dosent fix the downloads
Personally I think the topic creator should be hung, drawn and quartered because the download links weren't working for at least three days.

Quote:
Originally Posted by sabretur
Посмотреть сообщение
Download link not working.
Fixed. I had a problem with my server, so they should work now.
Reply
#39

Lol, you finaly fixed it ima try it ty :3
Reply
#40

It doenst work...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)