![]() |
player log offline
so, i have found
function onPlayerLeaves() but thats if the player leaves a level whats the function if the player logs offline? also, if someone has a full list of the functions can you post them? thank you.:D |
PHP Code:
|
Quote:
|
PlayerLogout is called for more than just players and RCs, so you may want to do something like this to make sure you're only getting players and RCs:
PHP Code:
|
Quote:
I think it's weird that findplayer allows objects as input D: Graal Script is way too.. 'soft' if you ask me :o |
Quote:
|
Quote:
|
onPlayerLogout is only called for players, it's called on the actual logout and when a player is switched to observer mode
|
Quote:
|
Quote:
But yeah, I guess it's kinda neat to have, for example when comparing: if (player.level == "osl.nw") |
Quote:
|
I have too. I think it would be best to always use .name (or .account in this case). Even if it doesn't improve the script, it makes it easier to understand, especially to new scripters.
|
All times are GMT +2. The time now is 08:30 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.