Raised This Month: $ Target: $400
 0% 

Remove a block in a map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 04-10-2009 , 04:09   Remove a block in a map
Reply With Quote #1

Hi i remember there was a topic about copyrighting maps and they said the only way was adding a block at the spawn points so that they couldnt play and to play it you could make a plugin that removes this block anyone have a visual example on this would be helpful thanks
micke1101 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-10-2009 , 08:26   Re: Remove a block in a map
Reply With Quote #2

To keep people from playing a map on a different server you can remove the spawn entities from the downloaded version of the map.
__________________
fysiks is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-10-2009 , 09:29   Re: Remove a block in a map
Reply With Quote #3

Or you could make the map with a solid block like you said on the spawn points and set it to a func_wall entity and give it a name, then in an ammx plugin search for those entites and remove them... easy...

but, for experienced mappers and/or scripters other people can remove that block too... they can get the name of the block and all that :}
__________________
Hunter-Digital is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 04-10-2009 , 09:49   Re: Remove a block in a map
Reply With Quote #4

Yea but can atleast try
Do you know how to do it? and if so could you show me the code with maybe small notes to understand?
micke1101 is offline
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
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 04-10-2009 , 11:48   Re: Remove a block in a map
Reply With Quote #6

Yes i know how to do the map
But it didnt compile at least not in the webcompiler

Last edited by micke1101; 04-10-2009 at 12:04.
micke1101 is offline
Reply


Thread Tools
Display Modes

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