Author Topic: PHP Query  (Read 7654 times)

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
PHP Query
« on: October 25, 2010, 09:16:21 pm »
Liberty Unleashed PHP Query

Description
This is an Query script written in PHP to query your server and display the information (for example) on your website.
It comes with an basic example which displays the hostname, players, max players, game mode.
I've also added an example which will display an Live Map and the players positions.

For an Live Example click here for the normal Query, and here for the Live Map.

Features
- Query anything you need, and from any server you want!
- Display an Map showing players and their position

Download
Latest version: PHP Query 1.0
Skin Files: Skins

niCe

  • Newbie
  • *
  • Posts: 42
  • Karma: +7/-5
    • View Profile
    • GTA-Multiplayer.cz
Re: PHP Query
« Reply #1 on: October 26, 2010, 12:24:22 am »
Seems like TeamID, Kills, Deaths and Score is always returned as 0.


GTA-Multiplayer.cz - game servers for SA-MP, VC:MP, IV-MP and Liberty Unleashed.

play.gta-multiplayer.cz:2301

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: PHP Query
« Reply #2 on: October 26, 2010, 08:45:12 am »
Seems like TeamID, Kills, Deaths and Score is always returned as 0.
Yeh thats an scripting issue I thought

xxxMDjxxx

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • SS-division*game hosting
    • View Profile
Re: PHP Query
« Reply #3 on: March 25, 2011, 10:14:41 am »
Yea this is great!
Im running it on www.anticefur-kamera.tk
Ive added refresh on 1 second and now you can see the dots moving :D
Only thing i couldnt achieve is when you point at a dot to se data, the data dissapears since the whole page is refreshing...
I tryed to add it to frames to only refresh the map but i had no sucsess...
Im actualy good at php but this one was giving me problems for a few hours :p
could you try making that.....?

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: PHP Query
« Reply #4 on: March 25, 2011, 01:04:21 pm »
You could do that using ajax, since it only updates the coordinates of the blips.
I'll make it when I have some time.
Also, I would recommend to put down the refresh to 5 seconds or something like that to avoid lagg or your hoster blaming you for high bandwidth usage ;P

Orpheus

  • Newbie
  • *
  • Posts: 49
  • Karma: +1/-0
  • Music is a way of life.
    • View Profile
    • Orphtown UK
Re: PHP Query
« Reply #5 on: March 25, 2011, 05:19:25 pm »
Or set a variable when a player is highlighted fr data, and pause or don't fire the refresh.
so if the variable isn't set then refresh, otherwise display data, it would stop the map updating whilst the user is highlighting a players dot and then make it fire and deset the variable when you scroll off the player dot.

Regards Orph

Windows: A 64-bit/32-bit extension to a 16-bit GUI on an 8-bit OS written for a 4-bit architecture by a 2-bit company who can not stand 1-bit of competition.

xxxMDjxxx

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • SS-division*game hosting
    • View Profile
Re: PHP Query
« Reply #6 on: March 25, 2011, 09:06:24 pm »
You could do that using ajax, since it only updates the coordinates of the blips.
I'll make it when I have some time.
Also, I would recommend to put down the refresh to 5 seconds or something like that to avoid lagg or your hoster blaming you for high bandwidth usage ;P

I found about that on google i tryed some ajax codes but... its been about 2 years since i last even looked at php :p
And i wont have problems with my hoster, since i have my own server, so im the hoster ...

Ankris

  • Full Member
  • ***
  • Posts: 110
  • Karma: +29/-44
    • View Profile
Re: PHP Query
« Reply #7 on: October 29, 2015, 09:49:34 pm »
*epic bump*

Link/subdomain down.

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: PHP Query
« Reply #8 on: November 09, 2015, 07:25:09 pm »


 

© Liberty Unleashed Team.