Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- new Handle:h_connectmsg = INVALID_HANDLE;
- public Plugin:myinfo =
- {
- name = "Connect MSG",
- author = "ExTacY",
- description = "Provides Info of the player when he joins",
- version = "1.0",
- url = ""
- };
- public OnPluginStart()
- {
- h_connectmsg = CreateConVar("sm_connectmsg", "1", "Shows a connect message in the chat once a player joins.", FCVAR_NOTIFY | FCVAR_DONTRECORD);
- }
- public OnClientPutInServer(client)
- {
- new Connect = GetConVarInt(h_connectmsg);
- if(Connect == 1)
- {
- new String:name[99],
- GetClientName(client, name, sizeof(name));
- }
- PrintToChatAll(" \x04[CONNECT]\x03 %s (%s) Welcon to our server!
- }
- CloseHandle(h_connectmsg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement