Raised This Month: $ Target: $400
 0% 

Prohibition of throwing the shield from the hands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Woodi5
Junior Member
Join Date: Nov 2020
Location: Russia
Old 12-07-2020 , 07:46   Re: Prohibition of throwing the shield from the hands
Reply With Quote #2

Quote:
Originally Posted by Woodi5 View Post
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;
}
Woodi5 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode