есть ли аналог плагина на RE
Хочу избавится от amxmisc и engine
C++:
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init()
{
new filepath[256], mapfile[256], mapname[256]
get_mapname(mapname, sizeof(mapname) -1)
get_configsdir(filepath, sizeof(filepath) -1)
format(filepath, sizeof(filepath) -1, "%s/WeaponRemover", filepath)
format(mapfile, sizeof(mapfile) -1, "%s/%s.txt", filepath, mapname)
new filepointer = fopen(mapfile, "r")
if (filepointer == 0) return PLUGIN_HANDLED
new mapfiledata[681], weapon[13]
while (fgets(filepointer, mapfiledata, sizeof(mapfiledata) -1))
{
trim (mapfiledata); parse(mapfiledata, weapon, sizeof(weapon) -1)
new WeaponModel[26]; format(WeaponModel, sizeof(weapon) + 13, "models/w_%s.mdl", weapon)
new WepID = -1
while((WepID = find_ent_by_model(WepID, "armoury_entity", WeaponModel)) != 0)
{
remove_entity(WepID)
}
}
fclose(filepointer)
return PLUGIN_HANDLED
}