Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Added death chat for L4D, global skin for HG
Browse files Browse the repository at this point in the history
  • Loading branch information
Kxnrl committed May 13, 2023
1 parent b043dcd commit 4953b9f
Show file tree
Hide file tree
Showing 24 changed files with 395 additions and 395 deletions.
2 changes: 1 addition & 1 deletion include/store.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define STORE_VERSION "2.6.1" ... "." ... STORE_AUTO_VERSION
#define STORE_URL "https://www.kxnrl.com"

public SharedPlugin __pl_store =
public SharedPlugin __pl_store =
{
name = "store",
file = "store.smx",
Expand Down
10 changes: 5 additions & 5 deletions include/store_stock.inc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ stock void tPrintToChatAll(const char[] szMessage, any ...)
VFormat(STRING(szBuffer), szMessage, 2);
Format(STRING(szBuffer), "[{green}Store{white}] %s", szBuffer);
ReplaceColorsCode(STRING(szBuffer));
SayText2(client, szBuffer);
SayText2(client, szBuffer);
}
}
}
Expand Down Expand Up @@ -333,7 +333,7 @@ stock void RemoveAllColors(char[] message, int maxLen)
stock int SpawnSpeakerEntity(float fPos[3], float fAgl[3], float removeDelay = 0.1)
{
int speaker = CreateEntityByName("info_target");

if(speaker == -1)
return -1;

Expand Down Expand Up @@ -372,10 +372,10 @@ static Action Timer_RemoveSpeaker(Handle timer, int ref)
stock void PrecacheParticleEffect(const char[] effect)
{
static int table = INVALID_STRING_TABLE;

if (table == INVALID_STRING_TABLE)
table = FindStringTable("ParticleEffectNames");

bool save = LockStringTables(false);
AddToStringTable(table, effect);
LockStringTables(save);
Expand All @@ -397,7 +397,7 @@ stock void PrecacheEffect(const char[] name)
stock int UTIL_GetRandomInt(int min, int max)
{
int random = GetURandomInt();

if(random == 0)
random++;

Expand Down
6 changes: 3 additions & 3 deletions modules/store_defaultskin.sp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <sdktools>
#include <store>

public Plugin myinfo =
public Plugin myinfo =
{
name = "Store - Default player skins",
author = STORE_AUTHOR,
Expand All @@ -14,14 +14,14 @@ public Plugin myinfo =
url = STORE_URL
};

char g_szDefaultSkin[2][192] =
char g_szDefaultSkin[2][192] =
{
"models/player/custom_player/legacy/tm_leet_variant_classic.mdl",
"models/player/custom_player/legacy/ctm_sas_variant_classic.mdl"
};
bool g_bSkinLoaded[2];

char g_szDefaultArms[2][192] =
char g_szDefaultArms[2][192] =
{
"models/weapons/t_arms.mdl",
"models/weapons/ct_arms.mdl"
Expand Down
8 changes: 4 additions & 4 deletions modules/store_givecreditscommand.sp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <store>
#include <store_stock>

public Plugin myinfo =
public Plugin myinfo =
{
name = "Store - Give credits command",
author = STORE_AUTHOR,
Expand All @@ -27,12 +27,12 @@ public Action CommandCredits(int client, int args)
if(args < 2)
{
ReplyToCommand(client, "[Store] Usage: sm_givecredits <target> <amount>");
return Plugin_Handled;
return Plugin_Handled;
}

char arg[32];
GetCmdArg(2, STRING(arg));

int credits = 0;
if(StringToIntEx(arg, credits) == 0 || credits <= 0)
{
Expand All @@ -58,7 +58,7 @@ public Action CommandCredits(int client, int args)
ReplyToTargetError(client, target_count);
return Plugin_Handled;
}

char reason[128];
FormatEx(STRING(reason), "Give command by \"%L\"", client);

Expand Down
Loading

0 comments on commit 4953b9f

Please sign in to comment.