Raised This Month: $32 Target: $400
 8% 

[Solved] Remove entity for SS2 map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 10-06-2011 , 13:22   [Solved] Remove entity for SS2 map
Reply With Quote #1

Hi everyone, I need plugin for surf_ski_2 :

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

Last edited by Lolz0r; 06-15-2012 at 12:29.
Lolz0r is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 10-06-2011 , 17:18   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #2

I'm not sure but I think you could remove all this with exolents entity remover plugin.
Erox902 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 10-06-2011 , 17:32   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #3

Quote:
Originally Posted by Erox902 View Post
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
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 10-07-2011 , 08:15   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #4

Thanks, but can code specifically for this?
Lolz0r is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 10-07-2011 , 10:41   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #5

You do it in the map itself.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 10-07-2011 , 17:48   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #6

Quote:
Originally Posted by Lolz0r View Post
Thanks, but can code specifically for this?
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.
Erox902 is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 10-08-2011 , 05:08   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #7

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 ?

Last edited by Lolz0r; 10-08-2011 at 07:11.
Lolz0r is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 10-09-2011 , 10:02   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #8

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
Erox902 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 10-09-2011 , 10:28   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #9

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

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 10-09-2011 , 12:43   Re: [REQ] Surf_ski_2 Plugin
Reply With Quote #10

Thanks guys.
Lolz0r 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 11:54.


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