AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Solved] Remove entity for SS2 map (https://forums.alliedmods.net/showthread.php?t=168958)

Lolz0r 10-06-2011 13:22

[Solved] Remove entity for SS2 map
 
Hi everyone, I need plugin for surf_ski_2 :) :

1. Block J teleport
2. Block T1 teleport
3. Remove J button

Erox902 10-06-2011 17:18

Re: [REQ] Surf_ski_2 Plugin
 
I'm not sure but I think you could remove all this with exolents entity remover plugin.

joshknifer 10-06-2011 17:32

Re: [REQ] Surf_ski_2 Plugin
 
Quote:

Originally Posted by Erox902 (Post 1569711)
I'm not sure but I think you could remove all this with exolents entity remover plugin.

I think you are right. Here is the link: Entity Remover

Lolz0r 10-07-2011 08:15

Re: [REQ] Surf_ski_2 Plugin
 
Thanks, but can code specifically for this? :twisted:

joshknifer 10-07-2011 10:41

Re: [REQ] Surf_ski_2 Plugin
 
You do it in the map itself.

Erox902 10-07-2011 17:48

Re: [REQ] Surf_ski_2 Plugin
 
Quote:

Originally Posted by Lolz0r (Post 1569936)
Thanks, but can code specifically for this? :twisted:

Yes you could probably code it but I guess you should look into other plugins witch removes specific entities in specific maps.

Can't help you there.

Lolz0r 10-08-2011 05:08

Re: [REQ] Surf_ski_2 Plugin
 
I found this:

PHP Code:

#include <amxmodx>
#include <engine>

public plugin_init()
{
        
register_plugin"Remove SS2 Functions""0.1""kostov & god_of_cs" )

        
remove_entityfind_ent_by_model( -1"trigger_teleport""*23" ) );
    
        new 
Map32 ];
        
get_mapnameMap31 );

        if( 
equaliMap"surf_ski_2" ) )
        { 
                new 
Entity = -1;
 
            while( ( 
Entity find_ent_by_classEntity"func_button" ) ) )
            {
                          
remove_entityEntity );
            }
        }


This code, block only J teleport, but no and T1, can you add ?

Erox902 10-09-2011 10:02

Re: [REQ] Surf_ski_2 Plugin
 
PHP Code:

#include <amxmodx>
#include <engine>

public plugin_init()
{
        
register_plugin"Remove SS2 Functions""0.1""kostov & god_of_cs" )

        
remove_entityfind_ent_by_model( -1"trigger_teleport""*23" ) );
        
remove_entityfind_ent_by_model( -1"trigger_teleport""*22" ) );
    
        new 
Map32 ];
        
get_mapnameMap31 );

        if( 
equaliMap"surf_ski_2" ) )
        { 
                new 
Entity = -1;
 
            while( ( 
Entity find_ent_by_classEntity"func_button" ) ) )
            {
                          
remove_entityEntity );
            }
        }


22 was the number of the jail teleport :)

drekes 10-09-2011 10:28

Re: [REQ] Surf_ski_2 Plugin
 
Try this:

PHP Code:

#include <amxmodx>
#include <engine>

#pragma semicolon    1
#define VERSION        "1.0.0"


public plugin_init()
{
    
register_plugin("surf_ski2 teleport & j button remover"VERSION"Drekes");
    
    new 
szMapname[32];
    
get_mapname(szMapnamecharsmax(szMapname));
    
    if(
equali(szMapname"surf_ski_2"))
    {
        new const 
szClassnames[][] = 
        {
            
"func_button"
            
"trigger_teleport"
            
"trigger_teleport"
        
};
        
        new const 
szModels[][] = 
        {
            
"*20"
            
"*22"
            
"*23"
        
};
        
        for(new 
iiEntsizeof(szClassnames); i++)
        {
            if((
iEnt find_ent_by_model(-1szClassnames[i], szModels[i])))
                
remove_entity(iEnt);
        }
    }



Lolz0r 10-09-2011 12:43

Re: [REQ] Surf_ski_2 Plugin
 
Thanks guys. :)


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

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