Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
kgns committed Jul 25, 2017
2 parents f11838e + d1e35f7 commit 6c4f55b
Show file tree
Hide file tree
Showing 7 changed files with 345 additions and 43 deletions.
Binary file modified addons/sourcemod/plugins/weapons.smx
Binary file not shown.
6 changes: 1 addition & 5 deletions addons/sourcemod/scripting/weapons.sp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Plugin myinfo =
name = "Weapons & Knives",
author = "kgns - wasdzone",
description = "All in one custom weapon management",
version = "1.0.7",
version = "1.0.8",
url = "http://www.wasdzone.com"
};

Expand Down Expand Up @@ -201,10 +201,6 @@ public void OnClientPostAdminCheck(int client)
temp[index] = '\0';
}
g_iSteam32[client] = StringToInt(temp);
CEconItemView playerItem = PTaH_GetItemInLoadout(client, CS_TEAM_T, 0);
g_iPlayerKnifeDefIndex[0][client] = playerItem.GetItemDefinition().GetDefinitionIndex();
playerItem = PTaH_GetItemInLoadout(client, CS_TEAM_CT, 0);
g_iPlayerKnifeDefIndex[1][client] = playerItem.GetItemDefinition().GetDefinitionIndex();
GetPlayerData(client);
QueryClientConVar(client, "cl_language", ConVarCallBack);
}
Expand Down
2 changes: 0 additions & 2 deletions addons/sourcemod/scripting/weapons/globals.sp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ int g_iSteam32[MAXPLAYERS+1] = { 0, ... };

int g_iKnife[MAXPLAYERS+1] = { 0, ... };

int g_iPlayerKnifeDefIndex[2][MAXPLAYERS+1];

char g_Language[MAX_LANG][32];
int g_iClientLanguage[MAXPLAYERS+1];
Menu menuWeapons[MAX_LANG][sizeof(g_WeaponClasses)];
Expand Down
5 changes: 3 additions & 2 deletions addons/sourcemod/scripting/weapons/hooks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public void GiveNamedItem(int client, const char[] classname, const CEconItemVie
g_smWeaponDefIndex.GetValue(g_WeaponClasses[g_iKnife[client]], defIndex);
char knifeClassName[32];
GetWeaponClass(entity, knifeClassName, sizeof(knifeClassName));
int playerTeam = GetClientTeam(client);
if(!StrEqual(knifeClassName, g_WeaponClasses[g_iKnife[client]]) || (CS_TEAM_T <= playerTeam <= CS_TEAM_CT && defIndex == g_iPlayerKnifeDefIndex[playerTeam - 2][client]))
CEconItemView playerItem = PTaH_GetItemInLoadout(client, GetClientTeam(client), 0);
int playerKnifeDefIndex = playerItem.GetItemDefinition().GetDefinitionIndex();
if(!StrEqual(knifeClassName, g_WeaponClasses[g_iKnife[client]]) || defIndex == playerKnifeDefIndex)
{
float origin[3], angles[3];
GetClientAbsOrigin(client, origin);
Expand Down
4 changes: 4 additions & 0 deletions addons/sourcemod/translations/hu/weapons.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
{
"hu" "Névcédula használata le van tiltva."
}
"DontSpamNameTag"
{
"hu" "Várnod kell mi előtt újra használnád a !nametag -et."
}
"NameTagNeedsParams"
{
"hu" "Használat: !nametag <név>"
Expand Down
68 changes: 34 additions & 34 deletions addons/sourcemod/translations/pt/weapons.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,79 +6,79 @@
}
"ChooseKnife"
{
"pt" "★ Escolhe a tua faca ★"
"pt" "★ Mudar Suas Facas ★"
}
"ConfigAllWeapons"
{
"pt" "Configurar todas as armas"
"pt" "Configurar Todas As Armas"
}
"KnifeMenuTitle"
{
"pt" "★ Escolha a sua faca ★"
"pt" "★ Seleção De Facas ★"
}
"AllWeaponsMenuTitle"
{
"pt" "Todas as armas"
"pt" "Todas As Armas"
}
"Increase"
{
"pt" "Aumentar em %d%%"
"pt" "Aumentar %d%%"
}
"Decrease"
{
"pt" "Diminuir em %d%%"
"pt" "Diminuir %d%%"
}
"NameTagInfo"
{
"pt" "Usa !nametag <nome> para dares uma nametag na tua arma atual."
"pt" "Use !nametag <tag> para escolher uma name tag para sua arma atual!"
}
"NameTagColor"
{
"pt" "Escolhe a cor da tua nametag"
"pt" "Escolher cor da name tag"
}
"NameTagDisabled"
{
"pt" "Uso de nametags desativado de momento."
"pt" "O uso da name tag está desabilitado no momento."
}
"DontSpamNameTag"
{
"pt" "Aguarde um pouco mais antes de usar !nametag novamente."
"pt" "Aguarde um pouco até usar !nametag."
}
"NameTagNeedsParams"
{
"pt" "Uso: !nametag <nome>"
"pt" "Use: !nametag <tag>"
}
"ChooseLanguage"
{
"pt" "Seleciona a linguagem das skins:"
"pt" "Escolha uma linguagem para as suas skins:"
}
"ChooseColor"
{
"pt" "Escolhe uma cor:"
"pt" "Escolha uma cor:"
}
"DefaultColor"
{
"pt" "Default"
"pt" "Padrão"
}
"DefaultSkin"
{
"pt" "Default"
"pt" "Padrão"
}
"RandomSkin"
{
"pt" "Aleatorio"
"pt" "Aleatório"
}
"Black"
{
"pt" "Preto"
}
"Grey"
{
"pt" "Cinzento"
"pt" "Cinza"
}
"Red"
{
"pt" "Vermelho"
"pt" "Encarnado"
}
"Green"
{
Expand All @@ -90,19 +90,19 @@
}
"DeleteNameTag"
{
"pt" "Apagar nametag"
"pt" "Apagar Name Tag"
}
"OwnKnife"
{
"pt" "★ A tua propria faca"
"pt" "★ Sua própia faca"
}
"SetSkin"
{
"pt" "Escolher skin"
"pt" "Escolha uma skin"
}
"SetFloat"
{
"pt" "Estado da arma: "
"pt" "Condição da arma: "
}
"StatTrak"
{
Expand Down Expand Up @@ -142,7 +142,7 @@
}
"weapon_revolver"
{
"pt" "Revolver"
"pt" "Revólver R8"
}
"weapon_deagle"
{
Expand All @@ -158,7 +158,7 @@
}
"weapon_sawedoff"
{
"pt" "Sawed-Off"
"pt" "Cano curto"
}
"weapon_negev"
{
Expand Down Expand Up @@ -198,7 +198,7 @@
}
"weapon_elite"
{
"pt" "Dual Berettas"
"pt" "Berettas Duplas"
}
"weapon_m249"
{
Expand Down Expand Up @@ -254,43 +254,43 @@
}
"weapon_bayonet"
{
"pt" "★ Bayonet"
"pt" "★ Baioneta"
}
"weapon_knife_gut"
{
"pt" "★ Gut Knife"
"pt" "★ Gut Hook"
}
"weapon_knife_flip"
{
"pt" "★ Flip Knife"
"pt" "★ Canivete"
}
"weapon_knife_m9_bayonet"
{
"pt" "★ M9 Bayonet"
"pt" "★ Baioneta M9"
}
"weapon_knife_karambit"
{
"pt" "★ Karambit"
}
"weapon_knife_tactical"
{
"pt" "★ Huntsman Knife"
"pt" "★ Faca de caçador"
}
"weapon_knife_butterfly"
{
"pt" "★ Butterfly Knife"
"pt" "★ Canivete borboleta"
}
"weapon_knife_falchion"
{
"pt" "★ Falchion Knife"
"pt" "★ Canivete Falchion"
}
"weapon_knife_push"
{
"pt" "★ Shadow Daggers"
"pt" "★ Adagas Sombrias"
}
"weapon_knife_survival_bowie"
{
"pt" "★ Bowie Knife"
"pt" "★ Faca Bowie"
}
"weapon_knife_t"
{
Expand Down
Loading

0 comments on commit 6c4f55b

Please sign in to comment.