View Single Post
Author Message
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 11-22-2017 , 10:17   Player disconnect voluntarily or not
Reply With Quote #1

Hi. Is it possible to print on the server when player left the game by choice or not by his own desire? How?

For example prints now

PHP Code:
public client_disconnected(id)
{
            
client_print(0"Player %s has left the server"player_id)

I need

PHP Code:
public client_disconnected(id)
{
    
// if player have left the server by choice
            
client_print(0"Player %s has left the server (by choice)"player_id)
            
    
// if player have left the server by internet connection lost or other causes
            
client_print(0"Player %s has left the server (connection lost)"player_id)

LithuanianJack is offline