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);
}
}
}