description = "Deals x amount of credits per x amount of secounds",
description = "Gives x amount for y seconds if player is on the defined Steam Group",
version = "1.2",
version = "1.0",
url = ""
url = "https://skygaming.pt/"
};
};
public void OnPluginStart()
public void OnPluginStart()
{
{
//Chat print on/off for all players
//I Don't know why he did put this
group_adverts = CreateConVar("sm_group_enable_adverts", "1", "Enables/Disables notifications for all in chat (1=On/0=Off)", FCVAR_PLUGIN|FCVAR_NOTIFY, true, 0.0, true, 1.0);
group_adverts = CreateConVar("sm_group_enable_adverts", "1", "Enables/Disables notifications for all in chat (1=On/0=Off)", FCVAR_NOTIFY, true, 0.0, true, 1.0);
//Chat print on/off Client
//If you wan't to disable the text "You received bla bla bla..."
RegConsoleCmd("sm_sgc", SgcCmd, "(On/Off) Steam Group Credits, Client Announcements");
RegConsoleCmd("sm_sgc", SgcCmd, "(On/Off) Steam Group Credits, Client Announcements");
//Configs
//Configs
iGroupID = CreateConVar("sm_groupid_add", "0000000", "Steam Group ID (Replace with yours)", FCVAR_PLUGIN|FCVAR_NOTIFY);
iGroupID = CreateConVar("sm_groupid_add", "", "Steam Group ID (Replace with yours)", FCVAR_NOTIFY);
PlayerCredits = CreateConVar("sm_group_credits", "5", "Credits to give per X time, if player is in group.", FCVAR_PLUGIN|FCVAR_NOTIFY);
PlayerCredits = CreateConVar("sm_group_credits", "20", "Credits to give per X time, if player is in group.", FCVAR_NOTIFY);
SpecCredits = CreateConVar("sm_group_spec_credits", "2", "Spectate Credits to give per X time, if player is in group and spectate.", FCVAR_PLUGIN|FCVAR_NOTIFY);
SpecCredits = CreateConVar("sm_group_spec_credits", "5", "Spectate Credits to give per X time, if player is in group and spectate.", FCVAR_NOTIFY);
CreditsTime = CreateConVar("sm_group_credits_time", "60", "Time in seconds to deal credits.", FCVAR_PLUGIN|FCVAR_NOTIFY);
CreditsTime = CreateConVar("sm_group_credits_time", "45", "Time in seconds to deal credits.", FCVAR_NOTIFY);