Hello guys first of all sorry for my bad english i need help this this script
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#pragma newdecls required
#pragma semicolon 1
public void OnPluginStart()
{
RegConsoleCmd("sm_pause", Command_Pause, "Start a Team timeout");
RegConsoleCmd("sm_unpause", Command_UnPause, "End a Team timeout");
}
public Action Command_Pause(int client, int args)
{
if(GetClientTeam(client) == CS_TEAM_T)
{
ServerCommand("timeout_terrorist_start");
PrintToChatAll("\x01[\x05ServerName\x01]\x04 %N\x01 has called for a pause.", client);
return Plugin_Handled;
}
else if(GetClientTeam(client) == CS_TEAM_CT)
{
ServerCommand("timeout_ct_start");
PrintToChatAll("\x01[\x05ServerName\x01]\x04 %N\x01 has called for a pause.", client);
return Plugin_Handled;
}
return Plugin_Continue;
}
public Action Command_UnPause(int client, int args)
{
}
#define ChatAlias(%1,%2) \
if (StrEqual(sArgs[0], %1, false)) { \
%2 (client, 0); \
}
public Action OnClientSayCommand(int client, const char[]command, const char[]sArgs)
{
ChatAlias(".pause", Command_Pause)
ChatAlias(".unpause", Command_UnPause)
}
i need script to delete team timeout or kill the remainig time and when any team ask for timeout again will count as new timeout 1/4 , 2/4 ...etc
i mean the team only have 4 pauses per game
with time 3 min per pause
An example of what I mean
this is the Section i need help with
PHP Code:
public Action Command_UnPause(int client, int args)
{
}
Thanks