rehlds / ReAPI

AMXModX module providing APIs for ReHLDS, ReGameDLL, and Metamod plugins (e.g., ReUnion, ReVoice).
GNU General Public License v3.0
160 stars 105 forks source link

ReAPI func(RG_CBasePlayer_HasRestrictItem) #80

Closed ish12321 closed 7 years ago

ish12321 commented 7 years ago

This function doesn't runs on c4 getting of player I want block c4 also what to do ? Please reply urgent #UrgentlyNeeded

s1lentq commented 7 years ago

try this

#include <amxmodx>
#include <reapi>

public plugin_init()
{
    RegisterHookChain(RG_CBasePlayer_MakeBomber, "CBasePlayer_MakeBomber");
}

public CBasePlayer_MakeBomber(const this)
{
    SetHookChainReturn(ATYPE_INTEGER, 0);
    return HC_SUPERCEDE;
}