Fast answer: add in section "Configs"->"Primary Aim"->"Primary"
Code:
"weapon_awp" "-1"
But I guess this is time for me to give a practictal example of how the configuration works.
When you say "default dm" I guess you are refering to configuration loaded on de_/cs_ maps. As these maps match no entry in "Maps" section of the default configuration I provided, the loaded configuration is "Maps"->"".
Lets have a look at it "Maps"->""
Code:
"Load"
{
"Maps" "fy"
}
So we can see here that this section will only load "Maps"->"fy" (and we can allready conclude that fy_ maps will have the same configuration as the default ones - This is also the case for "gg" maps).
Configuration loads4 sections here
- "Configs"->"Options Default": here stand all the standrd configuration. You can have a look at it, its just a big Cvar section.
- "Configs"->"Primary Aim": That looks like what we are searching for!
- "Configs"->"Secondary Aim": Loads the Secondary weapons
- "Configs"->"Random Spawn": Enable random spawming in the map
v0.3 - 21/01/2014
- Added dm_enable_random_menu (1 by default) to show the "Random" item in weapons menu
- Updated advertisement system
. Color tags can now be used for chat messages: {NORMAL}, {DARK_RED}, {PINK}, {DARK_GREEN}, {YELLOW}, {LIGHT_GREEN}, {LIGHT_RED}, {GRAY}, {ORANGE}, {LIGHT_BLUE}, {DARK_BLUE}, {PURPLE}
. {CARRIAGE_RETURN} can be used for Hint and Alert DisplayTarget
. Corrected wrong support of special char (removed UTF8 support for now)
. Recode and bug fixes
Yeah he ripped out the c4 removal procedure in SniperUK's version.
If you want the removal of the c4 back in:
Edit the deathmatch.sp
Find:
Spoiler
PHP Code:
if (g_bConfig_Enabled) { if (g_iConfig_GunMenuMode != old_gunMenuMode) { if (g_iConfig_GunMenuMode != 1) { menus_Close(); } } SetGrenadeState(); } }
Replace with
Spoiler
PHP Code:
if (g_bConfig_Enabled) { if (g_iConfig_GunMenuMode != old_gunMenuMode) { if (g_iConfig_GunMenuMode != 1) { menus_Close(); } } if (g_bConfig_RemoveObjectives) RemoveC4(); SetGrenadeState(); } }
Find:
Spoiler
PHP Code:
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast) { if (g_bConfig_Enabled) { if (g_bConfig_RemoveObjectives) RemoveHostages(); } return Plugin_Continue; }
Replace:
Spoiler
PHP Code:
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast) { if (g_bConfig_Enabled) { if (g_bConfig_RemoveObjectives) RemoveHostages(); if (g_bConfig_RemoveObjectives) RemoveC4(); } return Plugin_Continue; }
Spoiler
PHP Code:
RemoveC4() { for (new i = 1; i <= MaxClients; i++) { if (StripC4(i)) break; } }
bool:StripC4(clientIndex) { if (IsClientInGame(clientIndex) && (Teams:GetClientTeam(clientIndex) == TeamT) && IsPlayerAlive(clientIndex)) { new c4Index = GetPlayerWeaponSlot(clientIndex, _:SlotC4); if (c4Index != -1) { decl String:weapon[24]; GetClientWeapon(clientIndex, weapon, sizeof(weapon)); // If the player is holding C4, switch to the best weapon before removing it. if (StrEqual(weapon, "weapon_c4")) { if (GetPlayerWeaponSlot(clientIndex, _:SlotPrimary) != -1) ClientCommand(clientIndex, "slot1"); else if (GetPlayerWeaponSlot(clientIndex, _:SlotSecondary) != -1) ClientCommand(clientIndex, "slot2"); else ClientCommand(clientIndex, "slot3");