Allows admins to print fake item found messages to chat. For example... Now supports custom text!
This plugin fires the item_found event. If you are hooking the event for stats tracking, you will get fake entries. To prevent this, I've added an extra field to the event, you can use the following to detect fake items vs real items: PHP Code: public OnPluginStart(){ HookEvent("item_found", OnItemFound);}public Action:OnItemFound(Handle:event, const String:name[], bool:dontBroadcast){ if (GetEventBool(event, "isfake")) { //Item is fake, maybe you'd want to use return here. return; } //Item isn't fake}
public OnPluginStart(){ HookEvent("item_found", OnItemFound);}public Action:OnItemFound(Handle:event, const String:name[], bool:dontBroadcast){ if (GetEventBool(event, "isfake")) { //Item is fake, maybe you'd want to use return here. return; } //Item isn't fake}
Total downloads as prior to last update: 625