-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewplayer.sp
More file actions
45 lines (36 loc) · 1.16 KB
/
newplayer.sp
File metadata and controls
45 lines (36 loc) · 1.16 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
#include <clientprefs>
#include <sdktools>
#include <sourcemod>
#include <shavit>
#pragma semicolon 1
#pragma newdecls required
#define PLUGIN_VERSION "1337"
chatstrings_t gS_ChatStrings;
public Plugin myinfo =
{
name = "welcome",
author = "may",
description = "i love kaworu",
version = PLUGIN_VERSION,
url = "Your website URL/AlliedModders profile URL"
};
public void OnPluginStart()
{
RegConsoleCmd("sm_tutorial", Command_Tutorial, "bhop tutorial");
}
public void Shavit_OnChatConfigLoaded()
{
Shavit_GetChatStringsStruct(gS_ChatStrings);
}
public Action OnClientCommandKeyValues(int client)
{
if (Shavit_GetPoints(client) < 1.0)
{
Shavit_PrintToChat(client, "Welcome to %sCuteHops%s, if this is your first time playing bhop check out %s!tutorial", gS_ChatStrings.sVariable, gS_ChatStrings.sText, gS_ChatStrings.sStyle);
}
}
// https://www.youtube.com/watch?v=_0g4yq3eEUo&list=PLRpPuTzNftfjj4cIeyQ8JkSn855XZN56R
public Action Command_Tutorial(int client, int args)
{
ShowMOTDPanel(client, "Bhop Tutorial", "https://www.youtube.com/watch?v=_0g4yq3eEUo&list=PLRpPuTzNftfjj4cIeyQ8JkSn855XZN56R", 2);
}