Hello. There is a problem with this script. I want to change the strength to 1000 for all entities named glass_votemap . Any help will be appreciated. Thanks !
Code:
//* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#include <fun>
#define PLUGIN "VoteMap"
#define VERSION "0.1"
#define AUTHOR "DarthMan"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
new entity = -1
while((entity = fm_find_ent_by_tname(entity, "func_breakable")))
{
DispatchKeyValue(entity,"Strength", "1000");
}
}