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

How to remove buy command from cs 1.6 server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Akash Thakur
Junior Member
Join Date: Mar 2019
Old 05-13-2019 , 05:18   How to remove buy command from cs 1.6 server
Reply With Quote #1

Can anyone tell me how to remove "buy" command from Counter Strike 1.6 server.
Thanks for helping me
Akash Thakur is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 05-13-2019 , 05:51   Re: How to remove buy command from cs 1.6 server
Reply With Quote #2

Before asking please search.

@Arkshine's solution
PHP Code:
    #include <amxmodx>
    #include <engine>

    
public plugin_precache() 
    { 
        new 
Entity create_entity"info_map_parameters" );
        
        
DispatchKeyValueEntity"buying""3" );
        
DispatchSpawnEntity );
    } 
    
    public 
plugin_init()
    {
        
register_plugin"Remove Buy Zone""1.0.0""Arkshine" );
    }

    public 
pfn_keyvalueEntity )  
    { 
        new 
ClassName20 ], Dummy];
        
copy_keyvalueClassNamecharsmaxClassName ), DummycharsmaxDummy ), DummycharsmaxDummy ) );
        
        if( 
equalClassName"info_map_parameters" ) ) 
        { 
            
remove_entityEntity );
            return 
PLUGIN_HANDLED ;
        } 
        
        return 
PLUGIN_CONTINUE;
    } 
@VEN's approved plugin
https://forums.alliedmods.net/showth...58059?p=358059
__________________
Airkish is offline
Akash Thakur
Junior Member
Join Date: Mar 2019
Old 05-13-2019 , 06:22   Re: How to remove buy command from cs 1.6 server
Reply With Quote #3

Thanks bro
Its working
Akash Thakur 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 10:58.


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