Hi there
I'm a beginner. I have found this code and trying to learn it. I have just imported colors to it and made it according to my needs. I was thinking how can i make a config file like Advertisement 2.0
Can anyone could help me out with this please!
Code :
Code:
#include <sourcemod>
#include <colorvariables>
#pragma semicolon 1
public Plugin myinfo = {
name = "AutoResponder 1.0.0",
author = "sAmI",
description = "Chat Responder",
version = "1.0",
url = "http://steamcommunity.com/id/--sAmI"
};
public OnPluginStart()
{
RegConsoleCmd("sm_losers", losers);
AddCommandListener(OnSay, "say");
AddCommandListener(OnSay, "say_team");
}
public Action:Hi(client, args)
{
ReplyToCommand(client, "losers");
}
public Action:OnSay(client, const String:command[], args)
{
char text[4096];
GetCmdArgString(text, sizeof(text));
StripQuotes(text);
if (StrEqual(text, "!vips")) {
CPrintToChat(client, "{green}[LosersGaming] {gold}Server VIPS : Zam , AintisAm");
}
else if (StrEqual(text, "!rules")) {
CPrintToChat(client, "{green}[LosersGaming] {gold}Rules : https://losersgaming.pw/rules.php");
}
else if (StrEqual(text, "!getvip")) {
CPrintToChat(client, "{green}[LosersGaming] {gold}To get VIP you should be in Top 3 or you can buy VIP for 2 Keys Per Month.");
}
else if (StrEqual(text, "!staff?")) {
CPrintToChat(client, "{green}[LosersGaming] {gold}Check out the Staff List at : https://losersgaming.pw/showteam.php");
}
}