Raised This Month: $ Target: $400
 0% 

Replace Entity Strength


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-22-2017 , 02:49   Replace Entity Strength
Reply With Quote #1

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");
	}
}

Last edited by DarthMan; 02-22-2017 at 02:55.
DarthMan is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode