Raised This Month: $32 Target: $400
 8% 

Block Weapon Pickup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cirovic
Senior Member
Join Date: Sep 2019
Old 03-25-2020 , 11:32   Block Weapon Pickup
Reply With Quote #1

Can someone make me plugin that will block terror from pickip up weapons, i have deathrun server and i want to block terror pickup weapon
Cirovic is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 03-26-2020 , 08:43   Re: Block Weapon Pickup
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

public plugin_init()
{
  
RegisterHam(Ham_Touch"weaponbox""hamweapon_touch"0)
  
RegisterHam(Ham_Touch"armoury_entity""hamweapon_touch"0)
}

public 
hamweapon_touch(entityclient)
{
    return (
is_user_alive(client) && cs_get_user_team(client) == CS_TEAM_T) ? HAM_SUPERCEDE HAM_IGNORED

__________________
Retired.

Last edited by Xalus; 03-29-2020 at 09:33.
Xalus is offline
Cirovic
Senior Member
Join Date: Sep 2019
Old 03-29-2020 , 09:02   Re: Block Weapon Pickup
Reply With Quote #3

does not work.
Cirovic is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 03-29-2020 , 09:33   Re: Block Weapon Pickup
Reply With Quote #4

Fixed, made a typo with function name.
__________________
Retired.

Last edited by Xalus; 03-29-2020 at 09:33.
Xalus is offline
Carrion
Member
Join Date: Mar 2020
Old 03-29-2020 , 11:50   Re: Block Weapon Pickup
Reply With Quote #5

mp_item_staytime ?

mp_weaponstay ?
Carrion is offline
Reply



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 23:40.


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