Quote:
Originally Posted by Woodi5
Hello everyone! Please help me. How to make sure that the player can't throw the shield out of his hands? I have a gg server (cs1.6 by Avalance), the player is given a shield, but he can throw it on the ground. And if it resets, the shield does not disappear after its death. Sometimes there are 20 shields on the ground  . How can I ban it? Or how to make the shield disappear after the player dies? Thanks. And excuse my English 
|
HTML Code:
#include <amxmodx>
#include <cstrike>
new const VERSION[] = "1.0"
public plugin_init()
{
register_plugin("DropGun",VERSION,"[CSMods]");
register_clcmd("drop","HookDropitems");
register_clcmd("123","z");
}
public z(id)
cs_set_user_money(id,16000);
public HookDropitems(const id)
{
new iWeapon = get_user_weapon(id);
if(cs_get_user_shield(id) || iWeapon == CSW_C4 || iWeapon == CSW_GLOCK18)
{
client_print(id,print_center,"You can't throw this item away");
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}