07.01.2015, 17:53
Quick somebody make an api to monitor the api!
But on topic.. Seems like a neat idea. I personally don't think many would use this unless they would have a gaming community with multiple servers and they would like to show status's of all their servers, on each server.
And as for not wanting direct access to the api i am sure you could look into http headers as i am fairly certain the samp server has a different header compared to regular browsers. Just tested myself....
That's what is shown in my access log. So you can get this same info in php and use it to only allow access with requests containing certain things like SAMP/0.3
Also audio streams for clients show the same except the ip is the users ip.
But on topic.. Seems like a neat idea. I personally don't think many would use this unless they would have a gaming community with multiple servers and they would like to show status's of all their servers, on each server.
And as for not wanting direct access to the api i am sure you could look into http headers as i am fairly certain the samp server has a different header compared to regular browsers. Just tested myself....
Код:
[07/Jan/2015:18:27:32 +0000] "HEAD /test/test.php HTTP/1.1" 200 "http://sa-mp.com" "SAMP/0.3" "192.***.**.***"
Also audio streams for clients show the same except the ip is the users ip.