PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public void OnPluginStart()
{
RegConsoleCmd("sm_sa", CMD_sa, "Welcome message");
HookEvent("round_start", Hook_roundstart);
}
public Action CMD_sa(int client, int args)
{
PrintToChat(client, " \x05 Welcome to my Server \x01 GL&HF");
}
public Action Hook_roundstart(Event event, const char[] name, bool dontBroadcast)
{
CreateTimer(120.0, welcome_timer, TIMER_REPEAT);
}
public Action welcome_timer(Handle timer)
{
PrintToChatAll(" \x05 Welcome to my Server \x01 have fun!");
}