Quote:
Originally Posted by Franc1sco
You want to force vanilla weapons? I think that is simple like this:
PHP Code:
#include <PTaH>
public void OnPluginStart()
{
PTaH(PTaH_GiveNamedItemPre, Hook, GiveNamedItemPre);
}
public Action GiveNamedItemPre(int client, char classname[64], CEconItemView &item, bool &ignoredCEconItemView)
{
ignoredCEconItemView = true;
return Plugin_Changed;
}
Requires PTaH.
Or you can contact with me and we could see it, i dont need money.
|
Updated version for the latest PTaH (someone requested me that):
PHP Code:
#include <PTaH>
public void OnPluginStart()
{
PTaH(PTaH_GiveNamedItemPre, Hook, GiveNamedItemPre);
}
public Action GiveNamedItemPre(int iClient, char sClassname[64], CEconItemView &Item, bool &IgnoredCEconItemView, bool &OriginIsNULL, float Origin[3])
{
IgnoredCEconItemView = true;
return Plugin_Changed;
}