My function is this.
PHP Code:
public event_touch(touched,toucher)
{
if(toucher==0||touched==0)
{
return PLUGIN_HANDLED
}
new touchedcn[33]
new touchercn[33]
pev(touched,pev_classname,touchedcn,32)
pev(toucher,pev_classname,touchercn,32)
new message[201]
format(message,200,"Toucher:'%i' CN:'%s' Touched:'%i' CN:'%s'",toucher,touchercn,touched,touchedcn)
console_print(0,message)
return PLUGIN_HANDLED
}
When I try to get a weapon or an item, this function prints the message to console; but I get the weapon. How can I prevent pickup?
__________________