Raised This Month: $32 Target: $400
 8% 

PHP Graph with GameTracker.rs Api


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
goranristic123
Zero Posts
Join Date: Jul 2014
Old 07-15-2014 , 04:50   PHP Graph with GameTracker.rs Api
Reply With Quote #1

Hello guys, a lot of people search on internet how to create graph players on your own server, and thats script isn't upload on some forum/website, so I decided create and published script. This script have anything else besides graph, first things first.

1) Graph
Generally: Graph takse number players from GameTracker.rs Api, but if you had your script for scans your server info, you can easy change graph with your info.

You can see correctness graph:
http://prntscr.com/42ktbj
http://prntscr.com/42ktgq

2) I made here one more function to see on Gao map where is your server hosted.

http://prntscr.com/42idsq

3) And you have here one more simple class to see image of map which is on server.

I will explain where you put your ip and how to call function for some of these things

1) IP of your server you write in includes.php file

PHP Code:
$gtapi = new GTApi('176.57.128.40''27056'); 
instead of 176.57.128.40 you write your server ip and instead of 27056 you write your port

2) If you wanna see your graph of players on server, you must in index.php add:

PHP Code:
$gtapi->GTBigGraficonPlayer(); 
2) If you wanna see where is your server hosted you must in index.php add:
PHP Code:
echo $gtapi->GetServerHostedMap(); 
3) If you wanna see image of map which is currently on server, you must in index.php add:

PHP Code:
echo $gtapi->GetCurrentMapImage(); 
=========================================== [ UPDATE ] ==========================================

4) I Create banner, image:
http://prntscr.com/436ttl

If you wanna see banner you must in index.php add:
PHP Code:
echo $gtapi->GraficonInBanner(); 
Download: https://github.com/goranristic123/PHP-Grafikon

Last edited by goranristic123; 07-16-2014 at 05:23.
goranristic123 is offline
goranristic123
Zero Posts
Join Date: Jul 2014
Old 07-16-2014 , 05:23   Re: PHP Graph with GameTracker.rs Api
Reply With Quote #2

UPDATE,
Created banners
goranristic123 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-16-2014 , 08:07   Re: PHP Graph with GameTracker.rs Api
Reply With Quote #3

So this becomes more and more an advertisement thread for your non-steam server?
__________________

Mordekay is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 07-16-2014 , 08:18   Re: PHP Graph with GameTracker.rs Api
Reply With Quote #4

Quote:
Originally Posted by Mordekay View Post
So this becomes more and more an advertisement thread for your non-steam server?
Why do you say that?
Maybe he used random server as example.

@thread
This can be very useful. Thanks for sharing ;)
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-16-2014 , 08:23   Re: PHP Graph with GameTracker.rs Api
Reply With Quote #5

Noone chooses a random server if he got an own server to test.
__________________

Mordekay is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 07-16-2014 , 08:26   Re: PHP Graph with GameTracker.rs Api
Reply With Quote #6

Quote:
Originally Posted by Mordekay View Post
Noone chooses a random server if he got an own server to test.
Well i assumed it's not his because that server is ranked as first one. And server owner doesn't have same username as author of the thread.
Anyway we are going offtopic. Let's wait for author of thread.
ps. I hope he will change ip in first post ;)

Last edited by OvidiuS; 07-16-2014 at 08:29.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Mitchell
~lick~
Join Date: Mar 2010
Old 07-17-2014 , 09:38   Re: PHP Graph with GameTracker.rs Api
Reply With Quote #7

You could also mention that you could just use crontab to update the image and save it, instead of generating a new one every time some on looks at it.
Mitchell is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode