View Single Post
Author Message
Spinning Turte
Junior Member
Join Date: May 2019
Old 05-19-2019 , 08:38   [L4D2] OnClientConnected send a message to a specific player (not who is joining)
Reply With Quote #1

I was trying to send me a message for every time a player (not bot obv) join the game, this code is "OnClientConnected(client)" but I don't know how to send this message only to me and if I'm in-game

PHP Code:
public OnClientConnected(client)
{
    if (!
IsFakeClient(client) && !IsClientInGame(client/*&& if I'm in-game*/)
        {
            
PrintToChat(/*I want to put here only my name, so I'll receive it only if I'm ingame*/,pMessages[10],256);
        }        
    }

Spinning Turte is offline