hey someone make that script for me
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!");
PrintToChatAll(" \x05 Server \x01 have fun!");
}
the problem is everytime the round start those 2 massage flooding the server
i want to make the script work only 120 sec not when the round start
any ideas?