View Single Post
Author Message
abdulsami34
Member
Join Date: Oct 2017
Old 03-31-2019 , 18:53   CSGO Auto Chat Responder Config File?
Reply With Quote #1

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"); 
} 
}

Last edited by abdulsami34; 03-31-2019 at 18:58. Reason: code
abdulsami34 is offline