Skip to content

Commit

Permalink
Removed forced space in chat banner
Browse files Browse the repository at this point in the history
Also reverted the gamedesc tag to Hosties/Jailbreak
  • Loading branch information
azalty committed Jul 30, 2023
1 parent 0e7413c commit 17dfdf2
Show file tree
Hide file tree
Showing 10 changed files with 170 additions and 170 deletions.
Binary file modified addons/sourcemod/plugins/sm_hosties_e.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/hosties/checkplayers.sp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Action Command_CheckPlayers(int client, int args)

if (realrebelscount < 1)
{
CPrintToChat(client, "%s %t", gShadow_Hosties_ChatBanner, "No Rebels ATM");
CPrintToChat(client, "%s%t", gShadow_Hosties_ChatBanner, "No Rebels ATM");
}
else
{
Expand All @@ -77,7 +77,7 @@ public Action Command_CheckPlayers(int client, int args)
}
else
{
CReplyToCommand(client, "%s %t", gShadow_Hosties_ChatBanner, "CheckPlayers CMD Disabled");
CReplyToCommand(client, "%s%t", gShadow_Hosties_ChatBanner, "CheckPlayers CMD Disabled");
}

return Plugin_Handled;
Expand Down
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/hosties/freekillers.sp
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ void TakeActionOnFreekiller(int attacker)
case FP_Slay:
{
ForcePlayerSuicide(attacker);
LOOP_CLIENTS(TargetForLang, CLIENTFILTER_NOBOTS|CLIENTFILTER_INGAMEAUTH) CPrintToChat(TargetForLang, "%s %t", gShadow_Hosties_ChatBanner, "Freekill Slay", attacker);
LOOP_CLIENTS(TargetForLang, CLIENTFILTER_NOBOTS|CLIENTFILTER_INGAMEAUTH) CPrintToChat(TargetForLang, "%s%t", gShadow_Hosties_ChatBanner, "Freekill Slay", attacker);
gA_FreekillsOfCT[attacker] = 0;
}
case FP_Kick:
{
KickClient(attacker, "%t", "Freekill Kick Reason");
LOOP_CLIENTS(TargetForLang, CLIENTFILTER_NOBOTS|CLIENTFILTER_INGAMEAUTH) CPrintToChat(TargetForLang, "%s %t", gShadow_Hosties_ChatBanner, "Freekill Kick", attacker);
LOOP_CLIENTS(TargetForLang, CLIENTFILTER_NOBOTS|CLIENTFILTER_INGAMEAUTH) CPrintToChat(TargetForLang, "%s%t", gShadow_Hosties_ChatBanner, "Freekill Kick", attacker);
LogMessage("%N was kicked for killing too many non-rebelling terrorists.", attacker);
}
case FP_Ban:
Expand All @@ -227,7 +227,7 @@ void TakeActionOnFreekiller(int attacker)
char ban_message[128];
Format(ban_message, sizeof(ban_message), "%T", "Freekill Ban Reason", attacker);
BanClient(attacker, gH_Cvar_Freekill_BanLength.IntValue, BANFLAG_AUTO, "SM_Hosties: Freekilling", ban_message);
LOOP_CLIENTS(TargetForLang, CLIENTFILTER_NOBOTS|CLIENTFILTER_INGAMEAUTH) CPrintToChat(TargetForLang, "%s %t", gShadow_Hosties_ChatBanner, "Freekill Ban", attacker);
LOOP_CLIENTS(TargetForLang, CLIENTFILTER_NOBOTS|CLIENTFILTER_INGAMEAUTH) CPrintToChat(TargetForLang, "%s%t", gShadow_Hosties_ChatBanner, "Freekill Ban", attacker);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/hosties/gamedescription.sp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ bool g_bSTAvailable = false; // SteamTools

void GameDescription_OnPluginStart()
{
gH_Cvar_GameDescriptionOn = AutoExecConfig_CreateConVar("sm_hosties_override_gamedesc", "1", "Enable or disable an override of the game description (standard Counter-Strike: Source, override to Hosties/jailbreak): 0 - disable, 1 - enable", 0, true, 0.0, true, 1.0);
gH_Cvar_GameDescriptionTag = AutoExecConfig_CreateConVar("sm_hosties_gamedesc_tag", "ENT Hosties/Jailbreak v3", "Sets the game description tag.", 0);
gH_Cvar_GameDescriptionOn = AutoExecConfig_CreateConVar("sm_hosties_override_gamedesc", "1", "Enable or disable an override of the game description (standard Counter-Strike: Source, override to Hosties/Jailbreak): 0 - disable, 1 - enable", 0, true, 0.0, true, 1.0);
gH_Cvar_GameDescriptionTag = AutoExecConfig_CreateConVar("sm_hosties_gamedesc_tag", "Hosties/Jailbreak", "Sets the game description tag.", 0);
gH_Cvar_GameDescriptionTag.GetString(gShadow_GameDescriptionTag, sizeof(gShadow_GameDescriptionTag));

// check for SteamTools
Expand Down
18 changes: 9 additions & 9 deletions addons/sourcemod/scripting/hosties/gunsafety.sp
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ int MenuHandler_Slay(Handle menu, MenuAction action, int param1, int param2)

if ((target = GetClientOfUserId(userid)) == 0)
{
CPrintToChat(param1, "%s %t", gShadow_Hosties_ChatBanner, "Player no longer available");
CPrintToChat(param1, "%s%t", gShadow_Hosties_ChatBanner, "Player no longer available");
}
else if (!CanUserTarget(param1, target))
{
CPrintToChat(param1, "%s %t", gShadow_Hosties_ChatBanner, "Unable to target");
CPrintToChat(param1, "%s%t", gShadow_Hosties_ChatBanner, "Unable to target");
}
else if (!IsPlayerAlive(target))
{
CReplyToCommand(param1, "%s %t", gShadow_Hosties_ChatBanner, "Player has since died");
CReplyToCommand(param1, "%s%t", gShadow_Hosties_ChatBanner, "Player has since died");
}
else
{
Expand Down Expand Up @@ -306,11 +306,11 @@ int MenuHandler_Kick(Handle menu, MenuAction action, int param1, int param2)

if ((target = GetClientOfUserId(userid)) == 0)
{
CPrintToChat(param1, "%s %t", gShadow_Hosties_ChatBanner, "Player no longer available");
CPrintToChat(param1, "%s%t", gShadow_Hosties_ChatBanner, "Player no longer available");
}
else if (!CanUserTarget(param1, target))
{
CPrintToChat(param1, "%s %t", gShadow_Hosties_ChatBanner, "Unable to target");
CPrintToChat(param1, "%s%t", gShadow_Hosties_ChatBanner, "Unable to target");
}
else
{
Expand Down Expand Up @@ -338,11 +338,11 @@ void PrepareBan(int client, int target, int time, const char[] reason)
{
if (client == 0)
{
CPrintToServer("%s %t", gShadow_Hosties_ChatBanner, "Player no longer available");
CPrintToServer("%s%t", gShadow_Hosties_ChatBanner, "Player no longer available");
}
else
{
CPrintToChat(client, "%s %t", gShadow_Hosties_ChatBanner, "Player no longer available");
CPrintToChat(client, "%s%t", gShadow_Hosties_ChatBanner, "Player no longer available");
}

return;
Expand Down Expand Up @@ -525,11 +525,11 @@ int MenuHandler_BanPlayerList(Handle menu, MenuAction action, int param1, int pa

if ((target = GetClientOfUserId(userid)) == 0)
{
CPrintToChat(param1, "%s %t", gShadow_Hosties_ChatBanner, "Player no longer available");
CPrintToChat(param1, "%s%t", gShadow_Hosties_ChatBanner, "Player no longer available");
}
else if (!CanUserTarget(param1, target))
{
CPrintToChat(param1, "%s %t", gShadow_Hosties_ChatBanner, "Unable to target");
CPrintToChat(param1, "%s%t", gShadow_Hosties_ChatBanner, "Unable to target");
}
else
{
Expand Down
Loading

0 comments on commit 17dfdf2

Please sign in to comment.