Permalink
Browse files

Make sure we doesn't want innocent knife and remove it

  • Loading branch information...
Bara committed Jun 22, 2018
1 parent e8d9c31 commit 0ac8c0251c0135fe35b43f6f3f5c405dacf8ccfc
Showing with 2 additions and 2 deletions.
  1. +1 −1 addons/sourcemod/scripting/ttt/core/config.sp
  2. +1 −1 addons/sourcemod/scripting/ttt/ttt.sp
@@ -111,7 +111,7 @@ void SetupConfig()
g_cPrimaryWeaponUpdate = AutoExecConfig_CreateConVar("ttt_primary_weapon_update", "0", "What should happen on round start with the primary weapon? 0 - nothing, 1 - drop old weapon, 2 - remove old weapon", _, true, 0.0, true, 2.0);
g_cSecondaryWeaponUpdate = AutoExecConfig_CreateConVar("ttt_secondary_weapon_update", "0", "What should happen on round start with the secondary weapon? 0 - nothing, 1 - drop old weapon, 2 - remove old weapon", _, true, 0.0, true, 2.0);
g_cAdvert = AutoExecConfig_CreateConVar("ttt_show_advert_message", "1", "Print a message on player spawn with some ttt details (like \"Trouble in Terrorist Town Version X.X.XXXX\")", _, true, 0.0, true, 1.0);
g_cInnocentKnife = AutoExecConfig_CreateConVar("ttt_give_innocent_knife", "1", "Give innocent a knife?", _, true, 0.0, true, 1.0);
g_cInnocentKnife = AutoExecConfig_CreateConVar("ttt_give_innocent_knife", "1", "Give innocent a knife? (0 - Remove Knife; 1 - Give Knife)", _, true, 0.0, true, 1.0);
g_cEnableDamageKarma = AutoExecConfig_CreateConVar("ttt_damage_karma_enable", "0", "Add/Del karma on damage?", _, true, 0.0, true, 1.0);
g_cDamageKarmaII = AutoExecConfig_CreateConVar("ttt_damage_karma_attacker_innocent_victim_innocent_subtract", "1", "The amount of karma an innocent will lose for damage an innocent.");
g_cDamageKarmaIT = AutoExecConfig_CreateConVar("ttt_damage_karma_attacker_innocent_victim_traitor_add", "1", "The amount of karma an innocent will recieve for damage a traitor.");
@@ -1330,7 +1330,7 @@ stock void TeamInitialize(int client)
{
GivePlayerItem(client, "weapon_knife");
}
else
else if (!g_cInnocentKnife.BoolValue && GetPlayerWeaponSlot(client, CS_SLOT_KNIFE) != -1)
{
/* char sBuffer[32];
int iEnt = -1;

0 comments on commit 0ac8c02

Please sign in to comment.