This plugin allows clients to drop Their knives and greandes with 'G' key (when default setting).
and block a bug of duplicating nade!:
Code: Select all
//CS:S iGame = 1
//CS:GO iGame = 2
new nSequence = GetEntProp(weapon, Prop_Data, "m_nSequence");
if(...)
{
if(nSequence == 0 || nSequence == 1 || (nSequence == 6 && iGame == 1) || (nSequence == 3 && iGame == 2)) // Block nade duplicating by dropping a nade when player is uping his arm (right before throwing).
or
if((nSequence != 5 && iGame == 1) || (nSequence != 2 && iGame == 2)) // Block nade duplicating by dropping a nade when player is uping his arm (right before throwing).
{
//codes of dropping a weapon...
}
}
}
}
Code: Select all
The m_nSequence values of a nade
in CS:S,
0 = Player in handling a nade.
1 = When a player gets ready to throw his nade. (pin has been pulled)
5 = When a nade has been thrown.
6 = When a player takes his nade out of his holder. (switch active weapon into a grenade)
in CS:GO,
0 = Player in handling a nade.
1 = When a player gets ready to throw his nade. (pin has been pulled)
2 = When a nade has been thrown.
3 = When a player takes his nade out of his holder. (switch active weapon into a grenade)
- sm_equipment_drop_allows_enable: Enable Equipment Drop. (Def: 1)
sm_equipment_drop_allows_knife: Plugin allows players to drop their Knives (and golden knives in CS:GO). (Def: 1)
sm_equipment_drop_allows_hegrenade: Plugin allows players to drop their HE Grenades. (Def: 1)
sm_equipment_drop_allows_flashbang: Plugin allows players to drop their Flashbangs. (Def: 1)
sm_equipment_drop_allows_smokegrenade: Plugin allows players to drop their smokegrenades. (Def: 1)
sm_equipment_drop_allows_zeus: Plugin allows players to drop their Zeus x27s (CS:GO Only) (Def: 1)
sm_equipment_drop_allows_incgrenade: Plugin allows players to drop their Incendiary Grenades (CS:GO Only) (Def: 1)
sm_equipment_drop_allows_molotov: Plugin allows players to drop their Molotov Cocktails (CS:GO Only) (Def: 1)
sm_equipment_drop_allows_decoygrenade: Plugin allows players to drop their Decoy Grenades (CS:GO Only) (Def: 1)
sm_equipment_drop_allowed_team: Team index to allow to drop. (1 = Both, 2 = Terrorists, 3 = Counter-Terrorists) (Def: 1)
sm_equipment_drop_allows_admin_only: Administrator flags to allow to drop. (leave this empty when you would NOT like to set.) (Def: )
sm_equipment_drop_allow_time: The time when players can drop their Equipments. (* Second(s) later.) (Def: 0.0)
0 = Until the time set as sm_equipment_drop_disallow_time (but it is 0, Allows Always).
sm_equipment_drop_allow_time = sm_equipment_drop_disallow_time => Allow
sm_equipment_drop_disallow_time: The time when players can NOT drop their Equipments. (* Second(s) later.) (Def: 0.0)
0 = Disable This Cvar
sm_equipment_drop_allow_time = sm_equipment_drop_disallow_time => Allow
sm_equipment_drop_notify_drop_time: Notify at the time when players can or can not drop their Equipments. (Def: 1)
0 = Disable Notifying
1 = Notify
2 = Notify + Round startup Notifying
sm_equipment_drop_notify_to_all: (Def: 0)
0 = Only allowed player can see notifications.
1 = Every player can see notifications.
Put Equipment Drop.smx in addons/sourcemod/plugins,
EquipmentDrop.cfg in cfg/sourcemod
and equipment_drop.phrases.txt in addons/sourcemod/translations. (if you need it)
(if you use Allow (or Disallow or Both) Drop Time and notifying settings, you'll need it!)
EquipmentDrop.cfg
equipment_drop.phrases.txt
Every Version of Equipment Drop.zip
Plugin / Source