-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCR_Chat.sp
More file actions
50 lines (41 loc) · 1.33 KB
/
CR_Chat.sp
File metadata and controls
50 lines (41 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma semicolon 1
#pragma newdecls required
#include <custom_rounds>
public Plugin myinfo =
{
name = "[CR] Chat",
author = "Someone",
version = "2.1",
url = "http://hlmod.ru | https://discord.gg/UfD3dSa | https://dev-source.ru/user/61"
};
#define Plugin_PrintToChatAll PrintToChatAll
public void OnPluginStart()
{
LoadTranslations("custom_rounds.phrases");
}
public void CR_OnRoundStart(KeyValues Kv)
{
if(Kv)
{
char sName[MAX_ROUND_NAME_LENGTH];
Kv.GetSectionName(sName, sizeof(sName));
Plugin_PrintToChatAll("%t%t", "Prefix", "CR_CHAT_Round_Start", sName);
}
}
public void CR_OnCancelCurrentRoundPost(int iClient, const char[] sName)
{
Plugin_PrintToChatAll("%t%t", "Prefix", "CR_CHAT_Force_Round_End", iClient);
}
public void CR_OnCancelNextRoundPost(int iClient, const char[] sName)
{
Plugin_PrintToChatAll("%t%t", "Prefix", "CR_CHAT_Next_Round_Cancel", iClient);
}
public void CR_OnSetNextRoundPost(int iClient, const char[] sName)
{
if(CR_IsNextRoundCustom()) Plugin_PrintToChatAll("%t%t", "Prefix", "CR_CHAT_Change_Next_Round", iClient, sName);
else Plugin_PrintToChatAll("%t%t", "Prefix", "CR_CHAT_Set_Next_Round", iClient, sName);
}
public void CR_OnForceRoundStartPost(int iClient, const char[] sName)
{
Plugin_PrintToChatAll("%t%t", "Prefix", "CR_CHAT_Set_Current_Round", iClient, sName);
}