![]() |
onRCPlayerLogin and onRCPlayerLogout
We already have onPlayerLogin and onPlayerLogout.
It would be really handy to have these functions. |
Is this really necessary? You can already pretty much reproduce this behaviour when RCs log on by checking if the player.level.name == "", and I don't really know why your scripts should care if an RC logs off.
|
I have one which exports the servers playercount to a external server and would like to be able to check when an RC logs off.
Checking onPlayerLogoff doesn't work for RC's as far as I'm aware. |
Quote:
|
Quote:
|
It shows both.
But it updates when players log on or off but not when RC's log on or off. And Emera did you even read my post -.-? |
Why not just have a timeout update the count every few minutes? You don't need an exact count on your website.
|
You could also GET the xml file from statistic.graal.us and not have to setup a system at all.
|
I know I could do that, but I wanted to make this as a challenge for myself.
Not just use an already existing system. |
PHP Code:
|
Quote:
|
Jerret just because you are better than someone at something doesn't mean you should be a smart arse.
It was a challenge to make the PHP script to do it. The GS2 was easy. :P |
Quote:
PHP Code:
|
Why would I want to save it in a text file?
I chose to write text to a template image and save it as an image so I can just display it in a signature or anything. |
Quote:
|
Quote:
|
For someone who has never experimented with it before it is.
|
Quote:
|
It was a challenge to me to make this whole system is what I meant.
I'm starting to ease off of GS2 as it will not help my career. I would like to get into web development that's why I'm learning PHP. Well some may consider it a project idk but it was fun making it. |
Quote:
When I learnt PHP I challenged myself to make basic shop scripts and a basic CMS blog system. |
| All times are GMT +2. The time now is 08:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.