Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Player Disconnect? (https://forums.graalonline.com/forums/showthread.php?t=87436)

Sage_Shadowbane 08-17-2009 03:13 AM

Player Disconnect?
 
I'm sure curious if there is any way to check when a player disconnects from the server? I know there is function onActionPlayeronline() for players logging on to the server, but is there a function onActionPlayerdisconnect() or something of that sort?? Would be much appreciated if one of you script guru's could help me out. ^^

cbk1994 08-17-2009 03:19 AM

PHP Code:

function onPlayerLogout(pl) {
  
// ...


The first parameter is the player object, but it is read only, so you cannot make changes to it.


All times are GMT +2. The time now is 12:36 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.