Potrzebuje drobnej pomocy z kodem, który ma za zadanie zablokować daną komendę po x czasie, niestety obecnie to nie działa gdy upłynie x czasu komenda nadal jest dostępna
#include <sourcemod> bool available; public void OnPluginStart() { HookEvent("round_start", RoundStart); RegConsoleCmd("sm_knife", command); RegConsoleCmd("sm_ws", command); } public Action command(int client, int args) { if(!available) { PrintToChat(client, "Tej komendy możesz użyć tylko przez 30sekund od startu rundy"); PrintCenterText(client, "Tej komendy możesz użyć tylko przez 30sekund od startu rundy"); return Plugin_Handled; } return Plugin_Continue; } public Action RoundStart(Handle event, const char[] name, bool dontBroadcast) { available = true; CreateTimer(30.0, switch_command); } public Action switch_command(Handle timer) { available = false; }