View Single Post
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 12-09-2013 , 03:38   Re: Block recive weapons from buttons
Reply With Quote #18

My way:
PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init() {
    
register_plugin("Block Use""1.0""OnePL");

    
RegisterHam(Ham_Use"game_player_equip""BlockUse");
    
RegisterHam(Ham_Use"player_weaponstrip""BlockUse");
}

public 
BlockUse(entidactivatoriTypeFloat:fValue) {
    if(!
is_user_alive(id) || id == activator) return 1;

    if(
get_user_team(id) == 1) return 4// who has a block 1 - terrorists, 2 - cts

    
return 1;

OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL