Raised This Month: $ Target: $400
 0% 

Remove a block in a map


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-10-2009 , 11:28   Re: Remove a block in a map
Reply With Quote #5

You know how to do the map ?

As for the code...
PHP Code:
#include <amxmodx>
#include <engine>
 
#define SECURENAME "map_block_name"
 
// ...
 
public plugin_precache()
{
         new 
ententName[32]
 
         while((
ent find_ent_by_class(ent"func_wall")) != 0// search through all func_wall entities
         
{
                  
pev(entpev_targetnameentName31// get it's name
 
                  
if(!equal(entNameSECURENAME)) // if it's not your block name, continue to the next one
                           
continue
 
                  
remove_entity(ent// if it is, remove it...
         
}

Don't really know if this works but it's a starting point
__________________
Hunter-Digital 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 02:16.


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