Quote:
Originally Posted by SpirT
PHP Code:
public void OnClientPutInServer(int client) { if(!IsFakeClient(client) && client == 1) { char steam[32]; GetClientAuthId(client, AuthId_Steam2, steam, sizeof(steam)); PrintToChatAll("[SM] \x04%N \x01(\05 %s \x01) has joined", client, steam); } }
|
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)
__________________