mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 22:35:37 +03:00
Added native filter
This commit is contained in:
parent
138b732e75
commit
120c849e4b
@ -58,6 +58,7 @@ new g_cstrike = 0
|
|||||||
public plugin_natives()
|
public plugin_natives()
|
||||||
{
|
{
|
||||||
set_module_filter("module_filter")
|
set_module_filter("module_filter")
|
||||||
|
set_native_filter("native_filter")
|
||||||
}
|
}
|
||||||
|
|
||||||
public plugin_init() {
|
public plugin_init() {
|
||||||
@ -97,6 +98,14 @@ public module_filter(const module[])
|
|||||||
return PLUGIN_CONTINUE
|
return PLUGIN_CONTINUE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public native_filter(const name[], index, trap)
|
||||||
|
{
|
||||||
|
if (!trap)
|
||||||
|
return PLUGIN_HANDLED
|
||||||
|
|
||||||
|
return PLUGIN_CONTINUE
|
||||||
|
}
|
||||||
|
|
||||||
/* Ban menu */
|
/* Ban menu */
|
||||||
|
|
||||||
public actionBanMenu(id,key) {
|
public actionBanMenu(id,key) {
|
||||||
|
Loading…
Reference in New Issue
Block a user