Raised This Month: $51 Target: $400
 12% 

Add entity in map


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-25-2010 , 15:18   Re: Add entity in map
Reply With Quote #21

Look at message_const.inc, you will find the message to use.
__________________
Arkshine is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-22-2017 , 17:43   Re: Add entity in map
Reply With Quote #22

Quote:
Originally Posted by Phant View Post
I successfully delete env_rain entity from de_aztec:
Code:
public plugin_init(){
   
   new mapid[32];
   get_mapname(mapid, charsmax(mapid))
   
   if(equal(mapid, "de_aztec"))
   {
      remove_entity_name("env_rain")
   }
}

But how to delete 5 ambient_generic from this map?
I try:
remove_entity_name("ambient_generic") — fail .
For example before plugin_init add a line : new ent and then on plugin_init :

Code:
    while( ( ent = find_ent_by_class( ent, "ambient_generic" ) ) )   
	{
	remove_entity_name("ent")
	}

Last edited by DarthMan; 02-22-2017 at 17:59.
DarthMan is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-23-2017 , 06:46   Re: Add entity in map
Reply With Quote #23

Quote:
Originally Posted by DarthMan View Post
For example before plugin_init add a line : new ent and then on plugin_init :

Code:
    while( ( ent = find_ent_by_class( ent, "ambient_generic" ) ) )   
	{
	remove_entity_name("ent")
	}
I don't know if you've realised out that the last post was 7 years ago.
__________________

Last edited by edon1337; 02-23-2017 at 06:47.
edon1337 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-23-2017 , 09:51   Re: Add entity in map
Reply With Quote #24

Quote:
Originally Posted by edon1337 View Post
I don't know if you've realised out that the last post was 7 years ago.
Ah sorry, I did not look at the post date.
DarthMan is offline
Reply



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 07:45.


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