View Single Post
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 10-05-2019 , 12:18   Re: Simple message on user connect help
Reply With Quote #3

Hello!

I've done here a try, see if it works.
PHP Code:
#include <sourcemod>

public Plugin myinfo = {
    
name "Tutorial",
    
author "Tim",
    
version "1.0"
    
description "This is a simple tutorial",
    
url ""
};

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

If you need any help click down bellow and contact me on steam, It apears that I am offline, but it's just to avoid spamming!

Here is some stuff that can help u

All the colors suported! with X code:
Code:
default (white): \x01
darkred: \x02
purple: \x03
green: \x04
lightgreen: \x05
lime: \x06
red: \x07
grey: \x08
yellow: \x09
gold: \x10
Best regards and hope I could help,

SpirT.
__________________
SpirT is offline