View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 10-05-2019 , 12:21   Re: Simple message on user connect help
Reply With Quote #4

Quote:
Originally Posted by SpirT View Post
PHP Code:
public void OnClientPutInServer(int client)
{
    if(!
IsFakeClient(client) && client == 1)
    {
           
char steam[32];
           
GetClientAuthId(clientAuthId_Steam2steamsizeof(steam));
           
           
PrintToChatAll("[SM] \x04%N \x01(\05 %s \x01) has joined"clientsteam);
       }

You should check why OnClientPutInServer is bad for what he's asking (clients might not have steamids in this event and it's triggered too early).
Why are you checking if the client is 1?
You should check if the steamid is valid (if getclientauthid returns true)
__________________

Last edited by Ilusion9; 10-05-2019 at 12:22.
Ilusion9 is offline