01.09.2008, 20:58
I'm currently writing a script that basically acts as a registry for filterscripts and commands. It allows other filterscripts to see details on scripts that are currently loaded, and allows for it to create and view commands. See below for a current list of functions:
It also allows for unlimited filterscripts. I'm open to suggestions.
pawn Код:
// List of functions CURRENTLY implemented.
FSMS_RegisterFilterscript(name[], filepath[], author[], version[], delay=0)
FSMS_UnregisterFilterscript(fs_id)
FSMS_GetFilterScriptName(fs_id)
FSMS_GetFilterScriptFilepath(fs_id, store_in[], count)
FSMS_GetFilterScriptAuthor(fs_id, store_in[], count)
FSMS_GetFilterScriptVersion(fs_id, store_in[], count)
FSMS_RegisterCommand(fs_id, command[], handler[], description[], bool:arguments)
FSMS_UnregisterCommand(cmd_id)